Heroku stworzył stół, ale kiedy będę migrować, mówi, że nie stworzył
Zrobiłem syncdb (aplikację Python / Django) w Heroku i stworzył tabelę south_migrationhistory,
(venv-project)username@username:~/projectapp$ heroku run python manage.py syncdb
Running `python manage.py syncdb` attached to terminal... up, run.5529
Syncing...
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Creating table south_migrationhistory
(...)
Synced:
> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.sessions
> django.contrib.sites
> django.contrib.messages
> django.contrib.staticfiles
> django.contrib.admin
> south
Not synced (use migrations):
- core
- galeria
(use ./manage.py migrate to migrate these)
ale kiedy przeprowadzę migrację aplikacji, mówi, że tabela nie została utworzona:
(venv-project)username@username:~/projectapp$ heroku run python manage.py migrate core
Running `python manage.py migrate core` attached to terminal... up, run.7542
(... monstruous log ...)
File "/app/.heroku/python/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 337, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.DatabaseError: no such table: south_migrationhistory
Co może być? Dzięki.
EDYTOWAĆ: Rozwiązany, umieściłem gitignore w settings_local i tym samym rozpoznałem heroku bazy danych Postgres.