Answer the question
In order to leave comments, you need to log in
Django: how to change app_label on models?
The application has the following structure:
django_project
-- twitter
---- sub_app1
------ models.py
------ ...
---- sub_app2
------ models.py
---- -- ...
INSALLED_APPS is the following:
INSTALLED_APPS = (
'twitter.sub_app1',
'twitter.sub_app2'
)
class Model(models.Model):
....
class Meta:
app_label = 'twitter.sub_app1'
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
pass
def backwards(self, orm):
pass
models = {
}
complete_apps = ['sub_app1']
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question