Tuesday, May 5, 2015

Re: Two projects fail to import the same main app when I turn on both in Apache

On Tue, May 5, 2015 at 10:32 AM, Thomas Levine <_@thomaslevine.com> wrote:
> Hi,
>
> For like the first time ever I want to make complicated websites,
> so using Django finally seems like a good idea. And it is! All the
> small building blocks that I had never thought of are already here.
> Anyway, the part that's relevant to my present concern is that I
> haven't deployed Django many times before and thus don't really know
> what I'm doing.
>
> I have two sites that I want to host on the same computer.
> I have root access on this computer. The two sites are called
> "dadaportal", which is on https://thomaslevine.com, and "scott",
> which is on http://scott.dada.pink.
>
> I also have a bunch of other sites configured in Apache, but
> none of those uses wsgi or even Python.
>
> Both sites work fine if I disable the other. Here is what its
> configuration looks like.
> http://big.dada.pink/010-dadaportal.conf
> http://dada.pink/dadaportal/dadaportal/wsgi.py
> http://dada.pink/dadaportal/dadaportal/settings.py
>
> And here is the other.
> http://big.dada.pink/015-scott.conf
> http://dada.pink/scott2/scott2/wsgi.py
> http://dada.pink/scott2/scott2/settings.py
>
> I have problem when I try to run both at the same time.

You're missing the process-group argument from WSGIScriptAlias so it
tries to run both of them in the default process group.

https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/modwsgi/#using-mod-wsgi-daemon-mode

Cheers

Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1%2B7ag9RiJrQ6dUPzADOss5dN2zWxrmpH3zHkF%2BsCP-eNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment