Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Russell Keith-Magee authored August 25, 2007
4  django/core/management/commands/runserver.py
@@ -30,7 +30,7 @@ def handle(self, addrport='', *args, **options):
30 30
             raise CommandError("%r is not a valid port number." % port)
31 31
 
32 32
         use_reloader = options.get('use_reloader', True)
33  
-        admin_media_dir = options.get('admin_media_dir', '')
  33
+        admin_media_path = options.get('admin_media_path', '')
34 34
         shutdown_message = options.get('shutdown_message', '')
35 35
         quit_command = (sys.platform == 'win32') and 'CTRL-BREAK' or 'CONTROL-C'
36 36
 
@@ -42,7 +42,7 @@ def inner_run():
42 42
             print "Development server is running at http://%s:%s/" % (addr, port)
43 43
             print "Quit the server with %s." % quit_command
44 44
             try:
45  
-                path = admin_media_dir or django.__path__[0] + '/contrib/admin/media'
  45
+                path = admin_media_path or django.__path__[0] + '/contrib/admin/media'
46 46
                 handler = AdminMediaHandler(WSGIHandler(), path)
47 47
                 run(addr, int(port), handler)
48 48
             except WSGIServerException, e:

0 notes on commit de64e0d

Please sign in to comment.
Something went wrong with that request. Please try again.