Django Production Deployment : Should We Not Remove Source Files ?
Hi I am a newbie to Django AND Python. Working currently on a dummy project using Django 1.9. So following the excellent Django Documentation I could complete the deployment using
Solution 1:
It is typical to deploy source files with Django. As long as the project is set properly (__init__.py
included for all project/app directories) then Django will compile .py
files to .pyc
.
To answer your questions -
1. Don't serve your production files directly; use a good VCS to push files to your production server or, if quick and dirty, copy your project to your production server. But uncompiled .py
files are standard for most Django projects.
2. Yes.
For more insight, this question may help.
Post a Comment for "Django Production Deployment : Should We Not Remove Source Files ?"