django (production) deployment cheatsheet
- Django comes with a lightweight web server (e.g., in this example). Do not use it in production environment, ref
- Security reasons
- It is single thread
Solution
- Setting up Django with uWSGI and nginx
Other tips
ref
Don't put virtualenv directory into git repo,- Use
requirements.txt
migrations
folder to git
Commit - it will create conflicts
- just run
python manage.py makemigrations
andpython manage.py migrate
on the server