Commits

Docta Jay  committed a324ab9

repaired DIR_BIN_NEW error

  • Participants
  • Parent commits 19f8393

Comments (0)

Files changed (1)

File djaboto/management/commands/checkmix.py

 
             # Update the database and link all media files
             fab_api.run('python manage.py syncdb --noinput --verbosity=0')
-            fab_api.local('python manage.py migrate --verbosity=0')
+                fab_api.local('python manage.py migrate --verbosity=0')
+
+        DIR_BIN_NEW = os.path.join(DIR_PROJECT, 'bin')
+        print DIR_BIN_NEW
+        check_call(['mv', DIR_BIN_OLD, DIR_BIN_NEW])
     else:
+        DIR_BIN_NEW = os.path.join(DIR_PROJECT, 'bin')
+        print DIR_BIN_NEW
+        check_call(['mv', DIR_BIN_OLD, DIR_BIN_NEW])
         raise Exception("Create a local database config file for the site at %s/%s_data" % (DIR_BIN_NEW, gethostname()))
 
-    DIR_BIN_NEW = os.path.join(DIR_PROJECT, 'bin')
-    print DIR_BIN_NEW
-    check_call(['mv', DIR_BIN_OLD, DIR_BIN_NEW])
-
     with fab_api.settings(
             fab_api.cd('~/django/%s' % args.site_name),
             fab_api.prefix('source ~/django/python/bin/activate'),