Skip to content

Commit 58a6dc0

Browse files
committed
Adding the south schema migration app (http://south.aeracode.org/).
- Legacy-Id: 2118
1 parent b95fe43 commit 58a6dc0

60 files changed

Lines changed: 6003 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ietf/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
'django.contrib.sitemaps',
124124
'django.contrib.admin',
125125
'django.contrib.humanize',
126+
'south',
126127
'ietf.announcements',
127128
'ietf.idindex',
128129
'ietf.idtracker',

south/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*.pyc

south/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""
2+
South - Useable migrations for Django apps
3+
"""
4+
5+
__version__ = "0.6.2"
6+
__authors__ = ["Andrew Godwin <andrew@aeracode.org>", "Andy McCurdy <andy@andymccurdy.com>"]

south/db/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*.pyc

south/db/__init__.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
# Establish the common DatabaseOperations instance, which we call 'db'.
3+
# This code somewhat lifted from django evolution
4+
from django.conf import settings
5+
import sys
6+
if hasattr(settings, "SOUTH_DATABASE_ADAPTER"):
7+
module_name = settings.SOUTH_DATABASE_ADAPTER
8+
else:
9+
module_name = '.'.join(['south.db', settings.DATABASE_ENGINE])
10+
11+
try:
12+
module = __import__(module_name,{},{},[''])
13+
except ImportError:
14+
sys.stderr.write("There is no South database module for the engine '%s' (tried with %s). Please either choose a supported one, or check for SOUTH_DATABASE_ADAPTER settings, or remove South from INSTALLED_APPS.\n"
15+
% (settings.DATABASE_ENGINE, module_name))
16+
sys.exit(1)
17+
db = module.DatabaseOperations()

0 commit comments

Comments
 (0)