diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-07-20 17:42:36 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-07-20 17:42:36 +0000 |
| commit | ec31445c527a22a736cc769d35791f3fea9b477b (patch) | |
| tree | f2e3e6955604cba5248ed54778513a7f86ddb7d5 /docs/tutorial03.txt | |
| parent | 1b8c4c455682e6fcc747ae2dfc0133862dd0d1a3 (diff) | |
Added '--settings' option to django-admin. This specifies which settings module to use, if you don't want to deal with setting the DJANGO_SETTINGS_MODULE environment variable. Refactored django-admin to use optparse. Updated the tutorials to use '--settings' instead of environment variables, which can be confusing.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial03.txt')
| -rw-r--r-- | docs/tutorial03.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/tutorial03.txt b/docs/tutorial03.txt index ea1851c407..87a5f38f21 100644 --- a/docs/tutorial03.txt +++ b/docs/tutorial03.txt @@ -113,11 +113,9 @@ Write your first view Well, we haven't created any views yet -- we just have the URLconf. But let's make sure Django is following the URLconf properly. -Set your ``DJANGO_SETTINGS_MODULE`` environment variable to your main settings -(``myproject.settings.main``), as we did with the admin settings in Tutorial 2. -Then, fire up the Django development Web server, as we also did in Tutorial 2:: +Fire up the Django development Web server, as we did in Tutorial 2:: - django-admin.py runserver + django-admin.py runserver --settings="myproject.settings.admin" Now go to "http://localhost:8000/polls/" on your domain in your Web browser. You should get a Python traceback with the following error message:: |
