getting started problem

425 views
Skip to first unread message

brian

unread,
Jan 23, 2012, 6:33:40 PM1/23/12
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

brian

unread,
Jan 30, 2012, 5:58:51 PM1/30/12
to South Users

Thomas Guettler

unread,
Feb 3, 2012, 3:49:41 AM2/3/12
to south...@googlegroups.com
Hi,

I guess you use 'southtut' somewhere, but it can't be imported, or maybe it is missing in settings.py INSTALLED_APPS.

check your source where you use southtut (if on linux)

find mysource-directory -name '*.py'|xargs grep southtut

.... now I see a mistake: you use southtutApp first, but later just "southtut". Try "southtutApp".

Thomas Güttler

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

Reply all
Reply to author
Forward
0 new messages