Revision 33818d21 cloudcms/synnefo_settings.py

b/cloudcms/synnefo_settings.py
69 69
]
70 70

  
71 71

  
72
# Django settings
73
SOUTH_MIGRATION_MODULES = {
74
    'page': 'cloudcms.migrate.page',
75
    'medialibrary': 'cloudcms.migrate.medialibrary',
76
    'cloudcmsblog': 'cloudcms.migrate.cloudcmsblog',
77
}
72
# Required additions in Django project settings
73

  
74
# keep compatibility with south v0.7.0 (available in debian squeeze)
75
try:
76
    from south import __version__
77
    if __version__ == "0.7":
78
        # south 0.7.0 requires full module name as keys while 0.7.3
79
        # uses the app names
80
        SOUTH_MIGRATION_MODULES = {
81
            'cloudcmsblog': 'cloudcms.migrate.cloudcmsblog',
82
            'feincms.module.page': 'cloudcms.migrate.page',
83
            'feincms.module.medialibrary': 'cloudcms.migrate.medialibrary',
84
        }
85
    else:
86
        SOUTH_MIGRATION_MODULES = {
87
            'cloudcmsblog': 'cloudcms.migrate.cloudcmsblog',
88
            'page': 'cloudcms.migrate.page',
89
            'medialibrary': 'cloudcms.migrate.medialibrary',
90
        }
91
except:
92
    pass
93

  
78 94

  
79 95
CLOUDBAR_URL = '/static/im/cloudbar/cloudbar.js'
80 96
CLOUDBAR_ACTIVE_SERVICE = 'okeanos_cms'

Also available in: Unified diff