[Django]-Django project โ€“ development and production

3๐Ÿ‘

โœ…

If you are creating your app on development using a certain version of a python package then those same versions should be used on production. You can use virtualenv to achieve this. http://www.doughellmann.com/projects/virtualenvwrapper/

Using a virtualenv will allow you to seperate all the packages dependencies for your application and their versions. You will be able to create a text file with a list of all packages and versions and install them easily into a virtual environment on any server. This assures that packages on production are the exact same as on development.

Your development environment and production environment should be the exact same EXCEPT you will probably want to use the built in development server. It is leightweight and single threaded making debugging applications a breeze. This means you will most likely want a staging envrionment as well where you can test your app on the same server you will be using for production.

Deployment is difficult. Luckily python has some very great tools that make it pretty easy to replicate environments. These include virtualenv and fabric

๐Ÿ‘คdm03514

Leave a comment