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/tutorial02.txt | |
parent | 1b8c4c455682e6fcc747ae2dfc0133862dd0d1a3 (diff) | |
download | django-ec31445c527a22a736cc769d35791f3fea9b477b.tar.gz |
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/tutorial02.txt')
-rw-r--r-- | docs/tutorial02.txt | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/docs/tutorial02.txt b/docs/tutorial02.txt index e3115eb4ad..8a760b1a1d 100644 --- a/docs/tutorial02.txt +++ b/docs/tutorial02.txt @@ -30,19 +30,16 @@ Start the development server To make things easy, Django comes with a pure-Python Web server that builds on the BaseHTTPServer included in Python's standard library. Let's start the -server and explore the admin site. First, set the ``DJANGO_SETTINGS_MODULE`` -environment variable to the location of your admin settings:: +server and explore the admin site. - export DJANGO_SETTINGS_MODULE=myproject.settings.admin +Just run the following command to start the server:: -Then, run this command to start the server:: - - django-admin.py runserver + django-admin.py runserver --settings="myproject.settings.admin" It'll start a Web server running locally -- on port 8000, by default. If you want to change the server's port, pass it as a command-line argument:: - django-admin.py runserver 8080 + django-admin.py runserver 8080 --settings="myproject.settings.admin" DON'T use this server in anything resembling a production environment. It's intended only for use while developing. |