Re: url config problem

2007-09-27 Thread Dushyant Sharma


i think you are using windows.
try adding "MaxRequestsPerChild 1"  (without quotes)  to
httpd.conf,
you can change this setting later after reading how apache handles
requests. i think that wouldn't be required for you now.
also put your application to the python path (you can try initial
application at "site-packages" folder inside python folder)
check your files for sample application
urls.py
(r'^mysite/admin/', include('django.contrib.admin.urls')),
notice "mysite/admin/"
where mysite is url you have defined at httpd.conf
   notice "/mysite"you can
read further on it
 SetEnv DJANGO_SETTINGS_MODULE mysite.settings


i have seen same problem on windows and following these steps, i have
eliminated the problem.



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: url config problem

2007-09-27 Thread Dushyant Sharma

which os you are using??
is your site-packages directory under system path??
and can you paste lines from httpd.conf, urls.py and settings.py where
you have made modifications.

On Sep 26, 6:49 pm, swati <[EMAIL PROTECTED]> wrote:
> I have configured httpd.conf, you can look at it 
> athttp://82.165.180.35:8088/djproject/
> I can see the first django page. Could not run any application when I
> try to do that by editing urls.py file.
>
> Thanks,
> Swati
>
> On Sep 26, 1:27 pm, Dushyant Sharma <[EMAIL PROTECTED]> wrote:
>
> > i think you have not configured httpd.conf and this is why apache can
> > not identify the request.
>
> > read this pagehttp://www.djangoproject.com/documentation/modpython/
>
> > also make entry in httpd.conf
> > LoadModule python_module /usr/local/apache2/modules/mod_python.so (for
> > linux)
> > for windows use your windows installation path


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: url config problem

2007-09-26 Thread swati

I have configured httpd.conf, you can look at it at 
http://82.165.180.35:8088/djproject/
I can see the first django page. Could not run any application when I
try to do that by editing urls.py file.

Thanks,
Swati

On Sep 26, 1:27 pm, Dushyant Sharma <[EMAIL PROTECTED]> wrote:
> i think you have not configured httpd.conf and this is why apache can
> not identify the request.
>
> read this pagehttp://www.djangoproject.com/documentation/modpython/
>
> also make entry in httpd.conf
> LoadModule python_module /usr/local/apache2/modules/mod_python.so (for
> linux)
> for windows use your windows installation path


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: url config problem

2007-09-26 Thread Dushyant Sharma


i think you have not configured httpd.conf and this is why apache can
not identify the request.

read this page
http://www.djangoproject.com/documentation/modpython/

also make entry in httpd.conf
LoadModule python_module /usr/local/apache2/modules/mod_python.so (for
linux)
for windows use your windows installation path


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: url config problem

2007-09-25 Thread qwerty
"I have set up django with mod_python on apache successfully"

What do you mind by set up django inside Apache?

You mean that mod_python read and works ok with your Python files, or that a
Django project you've made is already working in that Apache server.

In any case, I'll look for what settings.py file is the vhost running the
django site is reading, and if it's poiting to the rigth URLConf

Greets,
Angel

2007/9/25, swati <[EMAIL PROTECTED]>:
>
>
> Hi All,
>
> I am very much new in django. I am facing some problem when editing
> the urls.py. I have tried modifying the url pattern to run a simple
> application to display current date and time. When I test the
> application through the django development server, its giving me
> expected result, but when I am running it through apache (I have set
> up django with mod_python on apache successfully) its displaying 404
> error. Can anyone please help?
>
> Many Thanks,
> Swati
>
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: url config problem

2007-09-25 Thread [EMAIL PROTECTED]

Swati,

Whatever location apache is using for handling django won't be given
to django's root url config. I can post more about this tonight.

Lucy
http://www.ThoughtAndMemory.org

On Sep 25, 12:21 pm, swati <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am very much new in django. I am facing some problem when editing
> the urls.py. I have tried modifying the url pattern to run a simple
> application to display current date and time. When I test the
> application through the django development server, its giving me
> expected result, but when I am running it through apache (I have set
> up django with mod_python on apache successfully) its displaying 404
> error. Can anyone please help?
>
> Many Thanks,
> Swati


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---