Django-based blog site
Create .env file in the root of the project where manage.py is located and set the following variables:
(Without DJANGO_DEBUG=True static files will not be loaded)
EMAIL_SYSTEM_EMAIL="your@email.com"
EMAIL_SYSTEM_PASSWORD="your_password"
SECRET_KEY="secret_key"
DJANGO_DEBUG=TrueThese variables are optional, but EMAIL_SYSTEM_EMAIL and EMAIL_SYSTEM_PASSWORD is required for password restore functionality. Email system would work only for GMail with created password for specific app.
Copy .env.sample as .env:
cp .env.sample .envCreate python virtual environment:
python -m venv .venvActivate python virtual environment:
source ./.venv/bin/activateInstall python requirements:
pip install -r requirements.txtMigrate database
python manage.py migrateAnd finally, run the server.
python manage.py runserver




