i am new to Django and web-faction.
I am trying to deploy a django
project to production on webfaction
i performed all settings as per django
tuts .
syncdb
did not gave me any error on the terminal.
navigate to the site it gives this error
200 Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
i found that there were logs in Apache folder . also there were logs in folders called user and fronted in my username directory at top level. which logs do i see.
what is the meaning of access logs in user directory ? error logs in user directory ? access logs in front end directory ? error logs in front end directory ? logs folder in Apache ?
also what is the error i am getting and how can i solve it best ?
Did you set DEBUG=False
in your settings? If so, you must add a SECRET_KEY
value and ALLOWED_HOSTS
setting. Check the Django docs for more info about these settings.
Apart from that, the logs at ~/log/user/error_yourapp.log
is what you need to check.
However, a 200 error is not a server error (500), and therefore might not end up in that error log, if I am not mistaken.
A last resort might be to create a custom app listening to a port (and a hook it up to a website). Then SSH into your account and start ./manage.py runserver localhost:YOURPORT
and open yourproject.webfactional.com:YOURPORT
. If the server crashes, you should see the traceback right there in the terminal.