Commits

Anonymous committed f77459e

also fixed deploy (use PROJECT_DIR)

  • Participants
  • Parent commits b2594fb

Comments (0)

Files changed (2)

File management/commands/deploy.py

 # CHANGED: show warning if profiler is enabled, so you don't mistakenly upload
 # with non-production settings. Also, added --nosyncdb switch.
 
+from ...boot import PROJECT_DIR
 from django.conf import settings
 from django.core.management import call_command
 from django.core.management.base import BaseCommand
 
     new_args = argv[:]
     new_args[1] = 'update'
-    new_args.append('.')
+    new_args.append(PROJECT_DIR)
     syncdb = True
     if '--nosyncdb' in new_args:
         syncdb = False

File management/commands/runserver.py

 
 
 import logging
-import os
 import sys
 
 from django.db import connections