Forums

WSGI COnfiguration for Django 1.5

Hello everybody !

So here I am, in the situation every Django developper must have been: my first deployement of the project. And I must say, if it was a delight coding the project, compared to PHP (where I come from) deploying is a bit more difficult.

I followed this page (https://www.pythonanywhere.com/wiki/VirtualEnvForNewerDjango) about setting up my environment for Django 1.5, except obviously for the actual coding of the project, which have already done. (Here, under the dev branch: https://github.com/seba-1511/PersHo) Instead of creating the app with django-admin.py, I just cloned the repo. However, even after configuring the wsgi, I get a page saying "Unhandled Exception". When I look at the log it says that the settings file was not found.

So my question: Do you have an idea of where it can come from ? The path I put in the WSGI is :'/home/seba1511/PersHo/PersHo', as I added one folder-level to have everything nicely put on the github repo. My guess would be that if it doesn't come from the WSGI, then it is somewhere in my project. But as the settings is not found, this looks strange.

Any thoughts/lecture about my issue ?

Thanks for the help and have a nice day, Seba1511

PS, for the "staff": I really like the "easy to use" interface you have here. It kind of seems the perfect place to put your project and let them live, without the hassle of having to configure everything for python. I guess you don't do students prices, right ?

The settings file is not found, that's usually an indication that you're setting the sys.path in your WSGI file either one directory too high or one directory too low.

Thanks for the quick answer. So, just to be sure: the path should be one level higher then the settings.py right ?

Yes, Thanks a lot it worked !

Excellent :-)