python3 -m venv venv
# or virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
SECRET_KEY=your_secret_key
DEBUG=True
python manage.py runserver
python manage.py createsuperuser
http://localhost:8000/admin
Go to settings.py and add the following
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static')
]
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
# for carzone project
STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / 'static'
STATICFILES_DIRS = [
BASE_DIR / 'carzone/static',
]
python manage.py collectstatic