Django tutorial - a fix to an error I was getting

This post is for my future reference and for those searching for a solution.

In Chapter 4 of the Django book, I was getting a DJANGO_SETTINGS_MODULE error when trying to run:

from django.template import Template from the interpreter

To fix (in Cygwin), I used this command from the bash command line of Cygwin:

export DJANGO_SETTINGS_MODULE=settings

My home directory is “home/username” and the project lived underneath that in “mysite”. “home/username/mysite” is in both the PATH and PYTHONPATH environment variable.

0 Responses to “Django tutorial - a fix to an error I was getting”


  1. No Comments

Leave a Reply