# HG changeset patch # User durandn # Date 1429872822 -7200 # Node ID 53931ed55bc9e312436a28ec6a5345c386b3a692 # Parent 6888d282b4ccf9b07b49e5ad219a5adaf7e8dbd0 Upgrade to django 1.7: migrations + wsgi init change diff -r 6888d282b4cc -r 53931ed55bc9 src/ldtplatform/django_wsgi.py --- a/src/ldtplatform/django_wsgi.py Fri Mar 27 18:11:26 2015 +0100 +++ b/src/ldtplatform/django_wsgi.py Fri Apr 24 12:53:42 2015 +0200 @@ -2,9 +2,9 @@ os.environ['DJANGO_SETTINGS_MODULE'] = 'ldtplatform.settings' -import django.core.handlers.wsgi +from django.core.wsgi import get_wsgi_application -application = django.core.handlers.wsgi.WSGIHandler() +application = get_wsgi_application() if os.environ.get('PYDEV_DEBUG', "False").lower() in ["true", "1", "t"]: import pydevd #@UnresolvedImport diff -r 6888d282b4cc -r 53931ed55bc9 src/ldtplatform/migrations/0001_initial.py --- a/src/ldtplatform/migrations/0001_initial.py Fri Mar 27 18:11:26 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -# -*- coding: utf-8 -*- -from south.v2 import SchemaMigration - - -class Migration(SchemaMigration): - - def forwards(self, orm): - pass - - def backwards(self, orm): - pass - - models = { - - } - - complete_apps = ['ldtplatform'] \ No newline at end of file diff -r 6888d282b4cc -r 53931ed55bc9 src/ldtplatform/migrations/0002_iri_url_update.py --- a/src/ldtplatform/migrations/0002_iri_url_update.py Fri Mar 27 18:11:26 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from django.core.management import call_command -from south.v2 import DataMigration - -class Migration(DataMigration): - - def forwards(self, orm): - # Call the command from ldt_utils app - call_command('updateiriurlinprojects') - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - - } - - complete_apps = ['ldtplatform'] - symmetrical = True diff -r 6888d282b4cc -r 53931ed55bc9 src/ldtplatform/migrations/0003_recalculate_contentstat.py --- a/src/ldtplatform/migrations/0003_recalculate_contentstat.py Fri Mar 27 18:11:26 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from django.core.management import call_command -from south.v2 import DataMigration - -class Migration(DataMigration): - - def forwards(self, orm): - # Call the command from ldt_utils app - call_command('statannotation') - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - - } - - complete_apps = ['ldtplatform'] - symmetrical = True diff -r 6888d282b4cc -r 53931ed55bc9 src/ldtplatform/settings.py --- a/src/ldtplatform/settings.py Fri Mar 27 18:11:26 2015 +0100 +++ b/src/ldtplatform/settings.py Fri Apr 24 12:53:42 2015 +0200 @@ -139,7 +139,7 @@ 'oauth_provider', #'django_openid_consumer', 'social.apps.django_app.default', - 'south', + #'south', 'sorl.thumbnail', 'ldt', 'ldt.core',