On May 10, 9:31 pm, "ah...@cs.ucla.edu" <ahowe...@gmail.com> wrote:
> Hi,
>
> I don't know very much about django, except that a piece of software
> that one of my colleagues developed requires it to function properly.
>
> My problem is as follows : I have inherited responsibility for
> installing the aforementioned software on a pre-existing webserver
> which already hosts more than one site.  The server has been installed
> and maintained by an ad-hoc group of researchers, insofar as I can
> determine.  I need to install deploy Django for the piece of software
> on this server without clobbering any pre-existing websites.
>
> I have successfully* installed and configured** Django with Apache and
> mod_wsgi and Python2.6 on a CentOS machine.  However, when I enable
> django in the apache configuration file, one of two things happens :
> (1) the congratulations you installed django page appears on all or
> most webpages on the server (2) the congratulations you installed
> Django page is inaccessible.
>
> Neither of these outcomes solves my problems...
>
> What would be the recommended way to allow django and the rest of the
> sites to coexist?  Do I need virtual hosts and a separate URL?
>
> 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-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

You'll want a vhost setup (most likely).  Slicehost has some great
articles on Apache Virtual Hosts and CentOS (http://
articles.slicehost.com/2008/12/12/centos-apache-virtual-hosts-1).
You'll either want a brand spanking new domain name, or subdomain your
existing domain name.

You may want to look into running the application in virtualenv
(http://pypi.python.org/pypi/virtualenv).  Perhaps with the --no-site-
packages flag for more isolation from the global system.  It sounds
like your issue has more to do with how your handling your Apache
configuration than anything though, so perhaps running your Django app
in a virtualenv may not be necessary.  If you do go this route, you'll
need to spend some time with the WSGI docs (which are excellent) and
WSGI's support for Python virtual environments (http://code.google.com/
p/modwsgi/wiki/VirtualEnvironments).

Good luck!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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