Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
DEBUG=False running via mod_wsgi on Apache2 gives 500 error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
xyz69  
View profile  
 More options Oct 1 2009, 8:08 pm
From: xyz69 <pawelszc...@gmail.com>
Date: Thu, 1 Oct 2009 17:08:14 -0700 (PDT)
Local: Thurs, Oct 1 2009 8:08 pm
Subject: DEBUG=False running via mod_wsgi on Apache2 gives 500 error
Hello,

I set up a apache(2.2.11) and mod_wsgi(2.3), python2.6. Everything was
fine untill I changed DEBUG variable in settings.py to False. Then
server starts to fail.

I make little investigation and found that if I turn off
django.contrib.admin everythings works correct. Also find that
probably the problem is admin.autodiscover() function.

Probably the error is:
"You need to register at least one template for Page before the admin
code is included."
But, with DEBUG=True, everything was fine. And on developer server (./
manage.py runserver) with both works fine.

Pawel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
xyz69  
View profile  
 More options Oct 1 2009, 8:17 pm
From: xyz69 <pawelszc...@gmail.com>
Date: Thu, 1 Oct 2009 17:17:42 -0700 (PDT)
Local: Thurs, Oct 1 2009 8:17 pm
Subject: Re: DEBUG=False running via mod_wsgi on Apache2 gives 500 error
Maybe it would sounds funny, but I play with this problem almost a
week, and find a solution just now:)

Before: I have special app named "utils" included in INSTALLLED_APPS
(as suggested in docs) and in model.py was configured
feincms.module.page. The problem was, that django in DEBUG=False on
wsgi, probably process urls.py before loading models from
INSTALLED_APPS(?).

After: I remove utils from INSTALLED_APPS and add in urls.py:

from feintest.utils import models # add this line BEFORE autodiscover
()
admin.autodiscover()

And that's all :)
Maybe it will be helpfull for someone:)

Paweł


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »