Having Trouble Creating a Test Database

44 views
Skip to first unread message

Mark Phillips

unread,
Jun 7, 2022, 11:02:58 AM6/7/22
to django users
I can't seem to be able to create a test database for my django project. I get this error:

django.db.utils.ProgrammingError: (1146, "Table 'test_hopi_django.CurrentArticle' doesn't exist")


Thanks!

Mark

Sebastian Jung

unread,
Jun 7, 2022, 12:01:28 PM6/7/22
to django...@googlegroups.com
Do you have make manage.py migrate and afzer this manage.py makemigrations?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEqej2Mucd0G9%3DRfS4df26HbgVAPvuPMRgisPVvy3otowamVPQ%40mail.gmail.com.

atoosa Keshavarz

unread,
Jun 7, 2022, 8:28:37 PM6/7/22
to django...@googlegroups.com
Hi
Why do not you use mock for data base 
?
If you use mock data base you do not need test data base and your data base will not be change

--

Mark Phillips

unread,
Jun 8, 2022, 1:30:24 AM6/8/22
to django users
Yes. All migrations have been done. 




Reply all
Reply to author
Forward
0 new messages