Steps to deploy a Django application on Windows

I had some trouble while deploying Django for the information portal that I designed for Kurukshetra 2008. These are the final steps that I came up with:

  1. Install xampp
  2. Install python and mysqldb
  3. Install mod_python
  4. Add ‘LoadModule python_module modules/mod_python.so’ to httpd.conf in apache/bin
  5. Copy django folder inside ‘C:\Python25\Lib\site-packages’
  6. Rem to add python25,its scripts folders to system path
  7. Configure Apache
  8. Copy files from coding2 to dprojects folder
  9. create new user in phpmyadmin
  10. download and setup PIL
  11. python manage.py syncdb

Code to configure Apache:

SetHandler python-program PythonPath "['C:\django'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE testproject.settings PythonDebug On SetHandler None SetHandler None

I`m aware most of this can be found on the web with a little googling. Just to save myself some effort when I lose my files and begin to google again πŸ˜›

Advertisements

2 thoughts on “Steps to deploy a Django application on Windows

So what do you think?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s