django wamp

41 views
Skip to first unread message

thebob...@gmail.com

unread,
Jul 7, 2018, 11:07:29 PM7/7/18
to Django users

Hi,
I'm a novice with django but have been setting up django on a Win7 Wamp stack.  We have several small non-django websites running on wamp.
Those projects are in c:/wamp/www/myproject for ex. and are accessed as localhost/myproject or myipxxx/myproject.

Under wamp I have tried putting the django project in c:/wamp/apps, in c:/wamp/www, and just in c:/wamp too.  They all work fine with apache and mod_wsgi.
At least I get a sample "helloworld" message in the webpage when I access the django site as localhost/mydjangosite or myipxxx/mydjangosite.  This is basically the simple tut01 or polls app kindof django project.

But the django project, wherever I put it in wamp, buggers our other non-django websites.  I get a message back from urls.py saying it's been thru all the urls listed and it cannot access our regular (non django sites) in c:/wamp/www when I try to access one as localhost/myproject or myipxxx/myproject from the browser.

I'm a bit stuck on how to get these two to play together nicely.  I'm not sure if it's a django project configuration, an apache httpd.conf problem, or a wamp issue.  I'm wondering if someone has experience with this issue and could point me in the right direction for how to use django, but continue to use localhost or myipxxx/ to access our non-django wamp sites.

Thank you,
Bob

m1chael

unread,
Jul 8, 2018, 1:10:07 AM7/8/18
to django...@googlegroups.com
best not to fight Apache and just use nginx for django

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f9e69bf3-5192-41b9-9b80-d80617c9f5d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gerald Brown

unread,
Jul 8, 2018, 2:24:44 AM7/8/18
to django...@googlegroups.com

Is it possible to run 2 servers (Apache & Nginx) on the same system?

Maybe if they listen on different ports i.e. 80 & 81

Avraham Serour

unread,
Jul 8, 2018, 3:40:02 AM7/8/18
to django-users
yes, it is possible.

You are correct, they need to listen to a different port

Bob Bobsled

unread,
Jul 8, 2018, 8:06:12 PM7/8/18
to django...@googlegroups.com
Hi,
Thanks for the direction.  It seems that running mod_wsgi on a different port thru a virutal host conf for apache is the way to move forward.  I'll see if I can figure out how to do that.  
Regards,


On Sat, Jul 7, 2018 at 9:39 PM, Avraham Serour <tov...@gmail.com> wrote:
yes, it is possible.

You are correct, they need to listen to a different port

On Sun, Jul 8, 2018 at 9:24 AM Gerald Brown <gsbr...@gmail.com> wrote:

Is it possible to run 2 servers (Apache & Nginx) on the same system?

Maybe if they listen on different ports i.e. 80 & 81


On Sunday, 08 July, 2018 01:09 PM, m1chael wrote:
best not to fight Apache and just use nginx for django

On Sat, Jul 7, 2018, 11:07 PM <thebob...@gmail.com> wrote:

Hi,
I'm a novice with django but have been setting up django on a Win7 Wamp stack.  We have several small non-django websites running on wamp.
Those projects are in c:/wamp/www/myproject for ex. and are accessed as localhost/myproject or myipxxx/myproject.

Under wamp I have tried putting the django project in c:/wamp/apps, in c:/wamp/www, and just in c:/wamp too.  They all work fine with apache and mod_wsgi.
At least I get a sample "helloworld" message in the webpage when I access the django site as localhost/mydjangosite or myipxxx/mydjangosite.  This is basically the simple tut01 or polls app kindof django project.

But the django project, wherever I put it in wamp, buggers our other non-django websites.  I get a message back from urls.py saying it's been thru all the urls listed and it cannot access our regular (non django sites) in c:/wamp/www when I try to access one as localhost/myproject or myipxxx/myproject from the browser.

I'm a bit stuck on how to get these two to play together nicely.  I'm not sure if it's a django project configuration, an apache httpd.conf problem, or a wamp issue.  I'm wondering if someone has experience with this issue and could point me in the right direction for how to use django, but continue to use localhost or myipxxx/ to access our non-django wamp sites.

Thank you,
Bob
--
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.
--
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.

--
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...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/irthcNB1_-E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages