Re: How to setup the django progject to apache2

2011-05-01 Thread Steven Han
under the /etc/apache2/sites-available ,there are two files "default" and "default-ssl". when I modify it as the httpd.conf, and the file "000-default" under the /etc/apache2/sites-enables is updated automatically, and same as "default" under the sites-available. then empty the httpd.conf file。 t

Re: How to setup the django progject to apache2

2011-05-01 Thread George Ajam
Did you tried to put your configuration in a file similar to default inside /etc/apache2/sites-available then try to make an enable to the site using a2ensite follwed by the name of your file, and I guess you should leave httpd.conf blank. Regards, George On May 1, 1:41 pm, Steven Han wrote: > Hi

Re: How to setup the django progject to apache2

2011-05-01 Thread Steven Han
I got the error like this: Forbidden You don't have permission to access / on this server. -- Apache/2.2.16 (Ubuntu) Server at 127.0.0.1 Port 9000 when I modify the httpd.conf: Listen 9000 Ser

Re: How to setup the django progject to apache2

2011-05-01 Thread Gianluca Sforna
On Sun, May 1, 2011 at 12:41 PM, Steven Han wrote: > But every time I run the URL http://127.0.0.1:9000 > it always displays: > > "Oops! Google Chrome could not connect to 127.0.0.1:9000 " > > :( > Do you know what I missed ? This is more an apache question than a django question, however I think

Re: How to setup the django progject to apache2

2011-05-01 Thread Robbington
Fair enough, But if you are in the stages of development then its best to use the development server due to the way apache caches data, as changes to your code may not always show straight away leaving you scratching your head as to what is causing any unforeseen errors. Anyways, if you are reall

Re: How to setup the django progject to apache2

2011-05-01 Thread Steven Han
no , I don't And I can use pythom manage.py runserver to run the project. But I just want to use the apache server. After installing the apache. I didn't modify any files except the httpd.conf file. 2011/5/1 Robbington > Bit confused matey, > > Do you have a domain name to serve those pages t

Re: How to setup the django progject to apache2

2011-05-01 Thread Robbington
Bit confused matey, Do you have a domain name to serve those pages to? If you are just trying to run it from localhost, 127.0.0.1: why not just use the Django development server? Rob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: How to setup the django progject to apache2

2011-05-01 Thread Steven Han
Btw, the url.py is like this: from django.conf.urls.defaults import patterns, include, url from django.views.generic import DetailView,ListView from polls.models import Poll # Uncomment the next two lines to enable the admin: #zik

How to setup the django progject to apache2

2011-05-01 Thread Steven Han
Hi, I want to develop Django on the Apache2 server. And I have follow the some instruction about how to setup django app on the apache2 server. but allows failed. My system is Ubuntu 10.10. what my step as below: (1) sudo apt-get install apache2 (2) sudo apt-get install libapache2-mod-wsgi whe