I have been working on a django application and have successfully used the South. For some reason, I can no longer access the southern commands via manage.py:
$ python manage.py schemamigration appname Unknown command: 'schemamigration' Type 'manage.py help' for usage.
In addition, "manage.py help" does not display southern commands.
I can still import South only through "manage.py shell", and the south is still in my INSTALLED_APPS. I am running South 0.7.6, Django 1.4.1 and Python 2.7.3 in virtualenv, and I also tried to recreate virtualenv with no luck. Any ideas?
SOLVED: After some attempts, I noticed that when I uninstalled my application from settings.py> INSTALLED_APPS South, the function returned. So, I explored a few more ...
I have LOGIN_REDIRECT_URL set in my settings.py that uses reverse () search. The reverse () search did not work because admin.py was trying to import the model I just deleted. This became the source of my southern problem. To solve my problem, I removed the abusive import in admin.py, but I also tested moving my global variables to settings.py with try / except, which also worked.
It seems strange to me that manage.py fails when it throttles when importing settings.py. Is there any way to change this behavior? Also, is there a best practice for setting global variables in settings.py?
source share