I have complete application working on localhost and now I want to
deploy that so other of my teammates can use it.

I have centos,
apache,
python 2.5
django 1.1.1


I have my django project at /var/www/html/ipwn/carbon_chaos
inside carbon_chaos folder I created apache folder and inside apache
folder I created file called django.wsgi
Inside django.wsgi I have


import os
import sys
sys.path.append('/var/www/html/ipwn/carbon_chaos')
sys.path.append('/usr/lib/python2.5/site-packages/django')
os.environ['DJANGO_SETTINGS_MODULE'] = 'carbon_chaos.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()


I have little idea what to do next as I have done deployment once
before

I remember using this code and creating some sort of file out of it
and enabling it

WSGIRestrictStdout Off
<VirtualHost *:80>
        LimitInternalRecursion 1000
        ServerAdmin webmas...@localhost
        ServerName localhost
        DocumentRoot /home/user/django/
        ErrorLog /home/user/django/apache.log
        LogLevel warn
        AddHandler wsgi-script .wsgi
        <Directory "/home/user/django">
                AllowOverride FileInfo
                Options ExecCGI MultiViews FollowSymLinks
                MultiviewsMatch Handlers
                Order deny,allow
                Allow from all
        </Directory>
        Alias /media/ "/home/user/django/myproject/media/"
        <Directory "/home/user/django/myproject/media/">
                Options Indexes MultiViews FollowSymLinks
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

I had made appropriate changes and did some enabling stuff and running
apachectl start command and it showed up.
I read the following doc
http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango

But it didnt say what name should I be saving that file with and where
should be saving it. Also enabling part is something I am looking for.

Can somebody just briefly walk me through the steps?

Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to