WebFaction
Community site: login faq

I am trying to get a Django CMS project working. I was working through issues and finally got to the point where I'm getting a 500 internal server error, but I'm not seeing anything in the log to show what the error is and I'm at a bit of a loss as to what might be happening.

httpd.conf:

ServerRoot "/home/projectvote/webapps/electionary/apache2"

LoadModule dir_module        modules/mod_dir.so
LoadModule env_module        modules/mod_env.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module       modules/mod_mime.so
LoadModule rewrite_module    modules/mod_rewrite.so
LoadModule setenvif_module   modules/mod_setenvif.so
LoadModule wsgi_module       modules/mod_wsgi.so

LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog /home/projectvote/logs/user/access_electionary.log combined
ErrorLog /home/projectvote/logs/user/error_electionary.log
KeepAlive Off
Listen 22733
MaxSpareThreads 3
MinSpareThreads 1
ServerLimit 1
SetEnvIf X-Forwarded-SSL on HTTPS=1
ThreadsPerChild 5
WSGIPythonPath /home/projectvote/webapps/electionary:/home/projectvote/webapps/electionary/ogea-2.0:/home/projectvote/webapps/electionary/lib/python2.7
WSGIDaemonProcess electionary processes=2 threads=12 python-path=/home/projectvote/webapps/electionary:/home/projectvote/webapps/electionary/ogea-2.0:/home/projectvote/webapps/electionary/lib/python2.7
WSGIProcessGroup electionary
WSGIRestrictEmbedded On
WSGILazyInitialization On
WSGIScriptAlias / /home/projectvote/webapps/electionary/ogea-2.0/ogea/wsgi.py

wsgi.py

import os
import sys

os.environ['DJANGO_SETTINGS_MODULE'] = 'ogea.settings'

from django.core.handlers.wsgi import WSGIHandler

application = WSGIHandler()

asked 02 Jun '15, 18:54

projectvote
1324
accept rate: 0%


Enable DEBUG = True to get a complete Trackback in real time to see what the issue is.

permanent link

answered 02 Jun '15, 21:39

johns
5.3k312
accept rate: 23%

I have DEBUG=True in settings.py. It actually shows up in the access log, but only shows where I accessed from. On the website, I'm getting a 500 error, which I would assume would show up in the error log, but the error log is empty.

permanent link

answered 02 Jun '15, 21:45

projectvote
1324
accept rate: 0%

Please check your user application error logs, in:

/home/<user>/logs/user/error_<app name="">.log

That's where you would find the related error.

(02 Jun '15, 22:08) NickR ♦♦

Ah, I had been looking in ./logs/frontend/

Thanks, I will look through the logs and see what I find.

(03 Jun '15, 14:07) projectvote
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×108
×97
×19
×8
×1

question asked: 02 Jun '15, 18:54

question was seen: 2,507 times

last updated: 03 Jun '15, 14:07

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM