From ec31445c527a22a736cc769d35791f3fea9b477b Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 20 Jul 2005 17:42:36 +0000 Subject: 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 --- docs/tutorial03.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'docs/tutorial03.txt') 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:: -- cgit v1.3