Commits

Anonymous committed b2594fb

use PROJECT_DIR instead of working dir for runserver

Comments (0)

Files changed (1)

management/commands/runserver.py

 import sys
 
 from django.db import connections
+from ...boot import PROJECT_DIR
 from ...db.base import DatabaseWrapper
 from django.core.management.base import BaseCommand
 from django.core.exceptions import ImproperlyConfigured
     logging.getLogger().setLevel(logging.INFO)
 
     # Append the current working directory to the arguments.
-    dev_appserver_main.main([progname] + args + [os.getcwdu()])
+    dev_appserver_main.main([progname] + args + [PROJECT_DIR])
 
 class Command(BaseCommand):
     """Overrides the default Django runserver command.