mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	'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
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user