These are the steps I’ve done:
- Create a virtual env
- Create a new Django project
- Enable the admin
When I had this ready, I successfully saw the admin login screen. No problems here.
But when I did:
- Start application
- Add this application in the installed applications tuple (settings.py)
- Run syncdb or not (I’ve tried both)
I get internal server error every time I try to access the admin.
Do you have any idea why it’s happening?
PS: I’m sorry if there is some configuration information missing, but I’m not a server expert.
Just ask and put them here.
For some strange reason the Apache log didn’t show me any error.
The workaround was adding two lines to a shell script that executes the CGI that actually runs Django in production version:
echo Content-type: text/plain
echo
Now I can see the error. (it was a missing cgitb module)