Я устанавливаю новое приложение (социальное) в проект django.Как удалить модель в django?
Когда я вхожу python manage.py runserver 0.0.0.0:8000
я получаю следующее сообщение об ошибке
Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x971d56c>>
Traceback (most recent call last):
...
django.core.management.base.CommandError: One or more models did not validate:
social.socialall: "client_name": CharFields require a "max_length"
attribute that is a positive integer.
social.socialall: "customer_name": CharFields require a "max_length" attribute that is a positive integer.
social.socialall: "publisher_id": CharFields require a "max_length" attribute that is a positive integer.
social.socialall: "currency": CharFields require a "max_length" attribute that is a positive integer.
Я создал социальную модель некоторое время назад, но никогда не использовал его так удалил его из кода.
Я пытаюсь выяснить, где находится social.socialall
. Я предполагаю django.db.models, но я запрашиваю базу данных SQL и ничего не могу найти.
Я получаю это сообщение об ошибке, когда я включаю social в установленные_apps.
Ваша база данных не имеет значения на данный момент. Исключение возникает потому, что где-то в вашем коде вы определяете этот класс модели. Удалите его, и все будет в порядке. –