Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…g when it starts up

git-svn-id: http://code.djangoproject.com/svn/django/trunk@240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2012f7df63a6c087792b7afa7e9cb1d26731005e 1 parent 45c334d
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/bin/django-admin.py
View
4 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:
Please sign in to comment.
Something went wrong with that request. Please try again.