Changeset 2309 for branches


Ignore:
Timestamp:
Aug 29, 2012, 1:23:58 PM (10 years ago)
Author:
achernya
Message:
Fix the Django autoinstaller for 1.4
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/locker-dev/locker/deploy/bin/django

    r2076 r2309  
    1717#!/usr/bin/env python
    1818import sys, os, time, threading, django.utils.autoreload
    19 sys.path.insert(0, "/mit/$USER/Scripts/django")
     19sys.path.insert(0, "/mit/$USER/Scripts/django/$name")
    2020os.chdir("/mit/$USER/Scripts/django/$name")
    2121os.environ['DJANGO_SETTINGS_MODULE'] = "$name.settings"
     
    5151chdir "/mit/$USER/Scripts/django/";
    5252system(qw{django-admin startproject}, $name)==0 or die "\nFailed to create app.\n\n";
    53 chdir "$name";
     53chdir "$name/$name";
    5454
    5555open SETTINGS, "settings.py";
     
    106106rename "urls.py.new", "urls.py";
    107107
     108chdir "..";
     109
    108110print "Initializing your project's SQL database schema...\n";
    109111system qw{./manage.py syncdb --noinput};
Note: See TracChangeset for help on using the changeset viewer.