The template is minimally loaded and has already some settings for easy deployment to the server It implements user registration and all sorts of little thing
Django
PostgreSQL \ Sqlite
First, clone the repository and navigate to its directory:
git clone https://github.com/devvsima/django-tamplate.git
cd app
Install dependencies and activate the virtual environment:
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
Similar steps for Windows:
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
💡 Note: The name
.venv
can be changed to anything else you wish.
First, copy the .env.dist
file and rename it to .env
:
cp .env.dist .env
Then edit the environment variables file:
vim .env
# or
nano .env
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py createsuperuser
$ python manage.py runserver
# or
$ python manage.py runserver 0.0.0.0:8000