Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #5224 -- Corrected name of admin media option in management run…

…server command. Thanks for the report, alberto@ingparo.it.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6001 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit de64e0d57076882e6bafd414424e1cf889e319fb 1 parent 4652c96
@freakboy3742 freakboy3742 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/management/commands/runserver.py
View
4 django/core/management/commands/runserver.py
@@ -30,7 +30,7 @@ def handle(self, addrport='', *args, **options):
raise CommandError("%r is not a valid port number." % port)
use_reloader = options.get('use_reloader', True)
- admin_media_dir = options.get('admin_media_dir', '')
+ admin_media_path = options.get('admin_media_path', '')
shutdown_message = options.get('shutdown_message', '')
quit_command = (sys.platform == 'win32') and 'CTRL-BREAK' or 'CONTROL-C'
@@ -42,7 +42,7 @@ def inner_run():
print "Development server is running at http://%s:%s/" % (addr, port)
print "Quit the server with %s." % quit_command
try:
- path = admin_media_dir or django.__path__[0] + '/contrib/admin/media'
+ path = admin_media_path or django.__path__[0] + '/contrib/admin/media'
handler = AdminMediaHandler(WSGIHandler(), path)
run(addr, int(port), handler)
except WSGIServerException, e:
Please sign in to comment.
Something went wrong with that request. Please try again.