Skip to content

Commit

Permalink
Changed tutorial01 to clarify how to set an environment variable in W…
Browse files Browse the repository at this point in the history
…indows. Thanks, JZ!

git-svn-id: http://code.djangoproject.com/svn/django/trunk@146 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Jul 17, 2005
1 parent 136d78b commit 7e951c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/tutorial01.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -62,9 +62,13 @@ interactive prompt.)


Once you've done that, you need to tell Django which settings module you're Once you've done that, you need to tell Django which settings module you're
currently using. Do that by setting an environment variable, currently using. Do that by setting an environment variable,
``DJANGO_SETTINGS_MODULE``:: ``DJANGO_SETTINGS_MODULE``. Here's how you do that in the Bash shell on Unix::


export DJANGO_SETTINGS_MODULE='myproject.settings.main' export DJANGO_SETTINGS_MODULE=myproject.settings.main

On Windows, you'd use ``set`` instead::

set DJANGO_SETTINGS_MODULE=myproject.settings.main


Note this path is in Python package syntax. Your project has to be somewhere on Note this path is in Python package syntax. Your project has to be somewhere on
your `Python path`_ -- so that the Python statement ``import myproject.settings.main`` your `Python path`_ -- so that the Python statement ``import myproject.settings.main``
Expand Down

0 comments on commit 7e951c9

Please sign in to comment.