Browse files

'django-admin runserver' now displays the settings module you're usin…

…g when it starts up

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 45c334d commit 2012f7df63a6c087792b7afa7e9cb1d26731005e @adrianholovaty adrianholovaty committed Jul 20, 2005
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/bin/
@@ -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)
- print "Starting server on port %s. Go to for Django." % (port, port)
+ print "Starting server on port %s with settings module %r." % (port, SETTINGS_MODULE)
+ print "Go to for Django." % port
run(int(port), AdminMediaHandler(WSGIHandler()))
except WSGIServerException, e:

0 comments on commit 2012f7d

Please sign in to comment.