Versuchen, das Tutorial bei Django project zu folgen.Django CommandError: App 'fragt ab' hat Migrationen
Das Problem, das mir begegnet ist, ist, dass, wenn Sie den Befehl ausführen: python manage.py sql polls
ich den Fehler gegeben habe:
CommandError: App 'polls' has migrations. only the sqlmigrate and sqlflush commands can be used when an app has migrations
Bisher kann ich nicht scheinen, jede Anleitung im Internet zu finden, oder diese Website für eine Lösung des Programms.
Sind Sie sicher, dass Sie verwenden Django 1.6? Was ist der Wert von 'INSTALLED_APPS' Einstellungen? Vielen Dank. – alecxe
Im mit Django 1.8 im Moment ist 1,6, die benötigt? INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', \t 'Umfragen' ) – sneexz
Ich habe diesen Fehler beim Ausführen der [PyCharm Django Tutorial] (https://www.jetbrains.com/pymarch/quickstart/django_guide.html) mit Django 1.7. 2, wo das Tutorial derzeit Django 1.6.5 annimmt. –