summaryrefslogtreecommitdiff
path: root/django/bin
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-20 06:08:39 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-20 06:08:39 +0000
commit2012f7df63a6c087792b7afa7e9cb1d26731005e (patch)
tree15c23319d1fdc5a8e48336b568864f16981b1d2b /django/bin
parent45c334dd8bf9945e745a68b1199c2e536a3274d3 (diff)
'django-admin runserver' now displays the settings module you're using when it starts up
git-svn-id: http://code.djangoproject.com/svn/django/trunk@240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/bin')
-rwxr-xr-xdjango/bin/django-admin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/django/bin/django-admin.py b/django/bin/django-admin.py
index 347b4322c8..f610cd2393 100755
--- a/django/bin/django-admin.py
+++ b/django/bin/django-admin.py
@@ -375,10 +375,12 @@ def runserver(port):
"Starts a lightweight Web server for development."
from django.core.servers.basehttp import run, WSGIServerException
from django.core.handlers.wsgi import AdminMediaHandler, WSGIHandler
+ from django.conf.settings import SETTINGS_MODULE
if not port.isdigit():
sys.stderr.write("Error: %r is not a valid port number.\n" % port)
sys.exit(1)
- print "Starting server on port %s. Go to http://127.0.0.1:%s/ for Django." % (port, port)
+ print "Starting server on port %s with settings module %r." % (port, SETTINGS_MODULE)
+ print "Go to http://127.0.0.1:%s/ for Django." % port
try:
run(int(port), AdminMediaHandler(WSGIHandler()))
except WSGIServerException, e: