8👍
You are probably using some old South version, 0.6.x or even 0.5.x. If you type that “./manage.py help” you should see startmigration
(iirc) on the list of available commands.
35👍
You probably haven’t added ‘south’ into the list of INSTALLED_APPS of your settings.py file.
Here’s a quote from http://south.aeracode.org/docs/installation.html#installation-configure
Now you’ve installed South system-wide, you’ll need to configure
Django to use it. Doing so is simple; just edit your settings.py and
add ‘south’ to the end of INSTALLED_APPS.If Django doesn’t seem to pick this up, check that you’re not
overriding INSTALLED_APPS elsewhere, and that you can run import south
from inside ./manage.py shell with no errors.Once South is added in, you’ll need to run ./manage.py syncdb to make
the South migration-tracking tables (South doesn’t use migrations for
its own models, for various reasons).
- Django: Faking a field in the admin interface?
- Python and sqlite3 – importing and exporting databases
- How to insert a row of data to a table using Django's ORM
4👍
Instead of using the Ubuntu package, use easy_install
or pip
to install South. This will ensure you have the most recent version.
- Django Pandas to http response (download file)
- Clean Up HTML in Python
- Multiple Forms and Formsets in CreateView
3👍
I think this problem can be very elusive. I spent considerable time and I then figured out that I was overriding INSTALLED_APPS
for some testing. Doh! So this is key. Be sure to add south
at the end of your INSTALLED_APPS
and if you override it, check that too.
- Django Admin inline for recursive ManyToMany
- Error loading MySQLdb module: libmysqlclient.so.20: cannot open shared object file: No such file or directory
2👍
check, which settings.py file you use:
./manage.py shell
import settings
settings.__file__
you may see in manage.py, which settings file Django use by defaul:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
or you may use:
$./manage.py schemamigration junk_app --settings=settings --initial
instead of:
$./manage.py schemamigration junk_app --initial
- Django Pandas to http response (download file)
- How to give initial value in modelform
- Python/Django: Adding custom model methods?
- Django: Natural Sort QuerySet
- How can I easily convert a Django app from mySQL to PostgreSQL?
2👍
If you have your settings in a settings folder, make sure you use a . and not / in the path.
Example: ./manage.py schemamigration secretballot --initial --settings=settings.jacob
- Django: Password reset email subject line contains 'example.com
- How to test (using unittest) the HTML output of a Django view?
- Django: how to change values for nullbooleanfield in a modelform?
- Error installing mysqlclient for python on Ubuntu 18.04
- Error "Could not load Boto's S3 bindings."