Django 1.7 running tests with south in installed_apps: AttributeError: 'module' object has no attribute '_commands

720 views
Skip to first unread message

Piotr

unread,
Aug 6, 2014, 8:07:48 AM8/6/14
to south...@googlegroups.com
Hey,

I've updated my project to django 1.7 rc2 and south 1.0 and I tried to run tests and got this error:

  File "C:\Users\My Documents\Aptana Studio 3 Workspace\ba\lib\site-packages\south\management\commands\__init__.py", line 34, in patch_for_test_db_setup
    management._commands['syncdb'] = MigrateAndSyncCommand()
AttributeError: 'module' object has no attribute '_commands'

Without south in installed_apps tests run correctly.

Any ideas how to get around this problem?

Andrew Godwin

unread,
Aug 6, 2014, 8:14:11 AM8/6/14
to south...@googlegroups.com
Hi Piotr,

South does not support Django 1.7. Please use the built-in Django migrations instead.

Andrew


--
You received this message because you are subscribed to the Google Groups "South Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to south-users...@googlegroups.com.
To post to this group, send email to south...@googlegroups.com.
Visit this group at http://groups.google.com/group/south-users.
For more options, visit https://groups.google.com/d/optout.

Piotr

unread,
Aug 6, 2014, 9:16:52 AM8/6/14
to south...@googlegroups.com
I thought at first that it's possible to use both at the same time :)

Could you by any chance leave a note in south docs that south won't run on 1.7 and it's not possible to use both :)?

Andrew Godwin

unread,
Aug 6, 2014, 9:19:55 AM8/6/14
to south...@googlegroups.com
I've put that clearly on the homepage: http://south.aeracode.org/

Andrew

Piotr

unread,
Aug 6, 2014, 9:32:26 AM8/6/14
to south...@googlegroups.com
I did not notice that, thanks :)

Andrew Godwin

unread,
Aug 6, 2014, 10:06:20 AM8/6/14
to south...@googlegroups.com
Sorry, I meant to say, "I have now put that on the homepage". It wasn't there before!

When I release 1.0.1 to fix python 3 issues I will also give it a much more explicit error message that 1.7 isn't supported.

Andrew
Reply all
Reply to author
Forward
0 new messages