initialize south migrations
This commit is contained in:
parent
12576e17de
commit
b013620f6e
|
@ -1,2 +1,3 @@
|
|||
django < 1.6
|
||||
south>=0.8,<0.9
|
||||
http://pypi.python.org/packages/source/d/django-jsonresponse/django-jsonresponse-0.5.tar.gz
|
||||
|
|
|
@ -109,6 +109,7 @@ TEMPLATE_DIRS = (
|
|||
)
|
||||
|
||||
INSTALLED_APPS = (
|
||||
'south',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import datetime
|
||||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(SchemaMigration):
|
||||
|
||||
def forwards(self, orm):
|
||||
# Adding model 'WcsInstance'
|
||||
db.create_table(u'wcsinst_wcsinstance', (
|
||||
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||
('title', self.gf('django.db.models.fields.CharField')(max_length=50)),
|
||||
('domain', self.gf('django.db.models.fields.CharField')(max_length=100)),
|
||||
))
|
||||
db.send_create_signal(u'wcsinst', ['WcsInstance'])
|
||||
|
||||
|
||||
def backwards(self, orm):
|
||||
# Deleting model 'WcsInstance'
|
||||
db.delete_table(u'wcsinst_wcsinstance')
|
||||
|
||||
|
||||
models = {
|
||||
u'wcsinst.wcsinstance': {
|
||||
'Meta': {'object_name': 'WcsInstance'},
|
||||
'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||
'title': ('django.db.models.fields.CharField', [], {'max_length': '50'})
|
||||
}
|
||||
}
|
||||
|
||||
complete_apps = ['wcsinst']
|
Reference in New Issue