B
B
blazer052015-11-02 10:57:57
Django
blazer05, 2015-11-02 10:57:57

Flatpages static pages, can't add tables to database?

I'm trying to set up flatpages, following the instructions djbook.ru/ch14s03.html
Adding 'django.contrib.sites', 'django.contrib.flatpages' to INSTALLED_APPS,
Adding 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware' to
MIDDLEWARE_CLASSES, Doing it. python manage.py makemigrations and migrate
Getting error?

django.db.utils.ProgrammingError: (1146, "Table 'sharelink-ru-55.django_site' doesn't exist")

If I understand correctly, then Django is trying to create a table in the 'sharelink-ru-55.django_site' database, but there is no such database, there is a sharelink-ru-55 database. How to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question