1. Waldemar Kornewald
  2. djangoappengine


Xianyi Lin  committed c8f21b2

Fixed a bug where progname is not initialised if runserver
is called via the handle() method.

  • Participants
  • Parent commits 2be4bf8
  • Branches default

Comments (0)

Files changed (1)

File management/commands/runserver.py

View file
  • Ignore whitespace
         if self.port:
             args.extend(["--port", self.port])
+        # If runserver is called using handle(), progname will not be set
+        if not hasattr(self, 'progname'):
+            self.progname = "manage.py"
         # Add email settings
         from django.conf import settings
         if not options.get('smtp_host', None) and not options.get('enable_sendmail', None):