brian
unread,Jan 23, 2012, 6:33:40 PM1/23/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to South Users
I'm trying to work the the tutorial but with an existing app. I get
an exception.
Here are the steps I'm doing:
1. Create Knight model in application southtutApp
2. Create instance: p1 = Knight(name='knight 1',
of_the_round_table=True)
p1.save()
3. enable south in settings.py
4. manage.py syncdb
5. manage.py convert_to_south southtutApp
6. manage.py schemamigration southtutApp –auto
7. manage.py migrate southtut
When I do step #7 I get the exception:
Traceback (most recent call last):
File "manage.py", line 14, in <module>
execute_manager(settings)
File "C:\Python27\lib\site-packages\django\core\management
\__init__.py", line
438, in execute_manager
utility.execute()
File "C:\Python27\lib\site-packages\django\core\management
\__init__.py", line
379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Python27\lib\site-packages\django\core\management\base.py",
line 191,
in run_from_argv
self.execute(*args, **options.__dict__)
File "C:\Python27\lib\site-packages\django\core\management\base.py",
line 220,
in execute
output = self.handle(*args, **options)
File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south
\management\com
mands\migrate.py", line 78, in handle
apps = [Migrations(app)]
File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south
\migration\base
.py", line 60, in __call__
self.instances[app_label] = super(MigrationsMetaclass,
self).__call__(app_la
bel_to_app_module(app_label), **kwds)
File "C:\Python27\lib\site-packages\south-0.7.3-py2.7.egg\south
\migration\util
s.py", line 41, in app_label_to_app_module
app = models.get_app(app_label)
File "C:\Python27\lib\site-packages\django\db\models\loading.py",
line 140, in
get_app
raise ImproperlyConfigured("App with label %s could not be found"
% app_labe
l)
django.core.exceptions.ImproperlyConfigured: App with label southtut
could not b
e found