Forums

Django install tutorial and startup notes

Hi,

I worked through getting Django started up on PythonAnywhere and hit a couple of issues that I'll document here in case this would benefit anyone else.

The PythonAnywhere info with respect to setting up virtualenvironments was good.

As of Sept 18 2015, Django 1.8.4 and Python 3.4 don't work together (multiple exceptions thrown). Django 1.8.4 and Python 3.3 did work successfully.

I found the directions about which WSGI file to edit to be confusing. I was getting this webpage:

<html> <br> <head> <title>Python Anywhere hosted web application</title> </head> <body> <h1>Hello, World!</h1> <p> This is the default welcome page for a <a href="https://www.pythonanywhere.com/">PythonAnywhere</a> hosted web application. </p> <p> Find out more about how to configure your own web application by visiting the <a href="https://www.pythonanywhere.com/web_app_setup/">web app setup</a> page </p> </body> <br> </html>

The instructions to get to the default Django page "It worked!" etc, were not clear and led to me editing the WSGI file in the mysite directory. This was not correct. You have to edit the WSGI file shown in the image below:

enter image description here

Thanks for the feedback! Which instructions were you following where it didn't tell you clearly which WSGI file to edit? It sounds like they need updating.