Project

General

Profile

« Previous | Next » 

Revision b013620f

Added by Benjamin Dauvergne about 11 years ago

initialize south migrations

View differences:

requirements.txt
1 1
django < 1.6
2
south>=0.8,<0.9
2 3
http://pypi.python.org/packages/source/d/django-jsonresponse/django-jsonresponse-0.5.tar.gz
wcsinst/settings.py
109 109
)
110 110

  
111 111
INSTALLED_APPS = (
112
    'south',
112 113
    'django.contrib.auth',
113 114
    'django.contrib.contenttypes',
114 115
    'django.contrib.sessions',
wcsinst/wcsinst/migrations/0001_initial.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Adding model 'WcsInstance'
12
        db.create_table(u'wcsinst_wcsinstance', (
13
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14
            ('title', self.gf('django.db.models.fields.CharField')(max_length=50)),
15
            ('domain', self.gf('django.db.models.fields.CharField')(max_length=100)),
16
        ))
17
        db.send_create_signal(u'wcsinst', ['WcsInstance'])
18

  
19

  
20
    def backwards(self, orm):
21
        # Deleting model 'WcsInstance'
22
        db.delete_table(u'wcsinst_wcsinstance')
23

  
24

  
25
    models = {
26
        u'wcsinst.wcsinstance': {
27
            'Meta': {'object_name': 'WcsInstance'},
28
            'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
29
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30
            'title': ('django.db.models.fields.CharField', [], {'max_length': '50'})
31
        }
32
    }
33

  
34
    complete_apps = ['wcsinst']

Also available in: Unified diff