How to fix this Django error? Exception Type: OperationalError Exception Value: No such table? "

I finally installed all the requirements (so I think!) Of the Django project, and I'm trying to install a local installation on my Mac (OSX 10.4).

I get the following error:

Blockquote OperationalError at /
no such table: django_content_type
Request method: GET Request
URL: http://127.0.0.1:8000/
Type of exception: OperationalError
Exception:
no such table: django_content_type
Exception Location: / Users / Diesel / Desktop / DjangoWork / pinax-ev / lib / python2.5 / site-packages / django / db / backends / sqlite3 / base.py
executed, line 170
Python executable: / Users / Diesel / Desktop / DjangoWork / pinax -ev / bin / python
Python Version: 2.5.1

+3
source share
2 answers
  • ./manage.py syncdb ?
  • django.contrib.contenttypes INSTALLED_APPS settings.py?

:

  • / Django ""? , ./manage.py migrate, , .

, () ContentType .

+9

django version 1.10, :

python manage.py migrate --run-syncdb
+4

Source: https://habr.com/ru/post/1745674/


All Articles