(venv)website.com $ mkdir apps media static templates
/project/settings.py
TEMPLATES = [
{
...
'DIRS': [os.path.join(BASE_DIR, 'templates')],
...
},
]
# Static files (CSS, JavaScript, Images)
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
MEDIA_URL = '/media/'
MEDIA_ROOT = 'media'
(venv)website.com $ python manage.py runserver
You have unapplied migrations; your app may not work properly until they are applied.
Run 'python manage.py migrate' to apply them.
(venv)website.com $ python manage.py migrate
(venv)website.com $ python manage.py createsuperuser
/admin/
site.(venv)website.com $ python manage.py runserver
website.com
├── apps
├── db.sqlite3
├── manage.py
├── media
├── project
│ ├── __init__.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── requirements.txt
├── static
└── templates
(venv)website.com $ git add .
(venv)website.com $ git commit -m "Configured the site settings"
Why don’t you try using PostgreSQL as your database instead of SQLite? They say it’s more predictable if you use the same type of database in your dev machine and your production server.