Before deploying Your Django app, You need to make sure security, logging and other issues are taken care. Django provides a simple deployment checklist which helps a lot. In development version Django provides --deploy option, which does some security checks. You can run it with
However this doesn't identify issues like absence of 404.html, 500.html templates, email setup, admin emails, presence of print, pdb statements. There is a Django package called django-production-ready which checks for these issues.
To the new project just created, I have added a new file, which has a print & pdb statements. I have installed django-production ready, added prodready to installed apps and ran is_it_ready management command which produced a neat log of all issues.
I have just created a new project and Django identified 6 security issues in it.
However this doesn't identify issues like absence of 404.html, 500.html templates, email setup, admin emails, presence of print, pdb statements. There is a Django package called django-production-ready which checks for these issues.
To the new project just created, I have added a new file, which has a print & pdb statements. I have installed django-production ready, added prodready to installed apps and ran is_it_ready management command which produced a neat log of all issues.
This comes in handy to quickly make sure a lot of issues are taken care and the app is ready for deployment!