Do you have multiple Django sites hosted on the same Apache?

Try alternate WSGI script as documented in:

  http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html

to see if it makes a difference.

Graham

On Jun 11, 12:44 am, Hasnain Lakhani <[email protected]>
wrote:
> I have a django site deployed on an apache2.2.14 server. It mostly
> runs fine, however at random intervals it suddenly seems to forget my
> URLconf, no matter what URL i access, i get an error message saying
> the URL is not found. The problem lasts about a minute before it goes
> away by itself, however the problem seems to popup again at random
> intervals. I have no idea what's causing it.
>
> Please let me know any other information that's needed.
>
> =================
> My URLConf:
>
> urlpatterns = patterns('',
>     # Example:
>     # (r'^regsite/', include('regsite.foo.urls')),
>
>     # Uncomment the admin/doc line below and add
> 'django.contrib.admindocs'
>     # to INSTALLED_APPS to enable admin documentation:
>     (r'^admin/doc/', include('django.contrib.admindocs.urls')),
>
>     # Uncomment the next line to enable the admin:
>     (r'^admin/', include(admin.site.urls)),
>
>     # My own views
>
>     # Home Page
>     (r'^$', psifireg.views.staticpage, {"page": "home.html"}),
>
>     # Administration Portal Pages
>
>     (r'^adminportal/$', psifireg.views.staticpage, {"page":
> "adminportal_home.html"}),
>
>     # Participant Portal Pages
>
>     (r'^partportal/$', psifireg.views.staticpage, {"page":
> "partportal_home.html"}),
>
>     # First part of first phase of registration
>
>     (r'^partportal/signup/step/1/$',
> psifireg.views.part_signup_start),
>     (r'^partportal/signup/step/2/$',
> psifireg.views.part_signup_leader_info),
>     (r'^partportal/signup/step/3/$',
> psifireg.views.part_signup_finish),
>
>     # Second part of first phase of registration
>
>     (r'^partportal/return/login/$', psifireg.views.part_return_login),
>     (r'^partportal/return/main/$', psifireg.views.part_return_main),
>     (r'^partportal/return/edit_member/(?:(?P<member>\d{1})/)?$',
> psifireg.views.part_return_edit_member),
>     (r'^partportal/return/new_member/$',
> psifireg.views.part_return_edit_member, {"member": None, "new" :
> True}),
> )
>
> ====================
> When i get the error message, it says it tried the following URL
> patterns, in order:
>
> 1. ^admin/doc/
> 2. ^admin/

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

Reply via email to