awesto / django-shop

A Django based shop system
http://www.django-shop.org
BSD 3-Clause "New" or "Revised" License
3.2k stars 1.04k forks source link

Error while creating database dump (with quick and dirty solution) #831

Open snake-soft opened 4 years ago

snake-soft commented 4 years ago

While i create a new shop and trying to create a dump with...

python manage.py dumpdata --traceback > db_dump1.json

i get this error and some following errors:

psycopg2.errors.UndefinedTable: FEHLER:  Relation »cmsplugin_cascade_segmentation« existiert nicht
(psycopg2.errors.UndefinedTable: ERROR:  Relation »cmsplugin_cascade_segmentation« does not exist)

It seems that something changed with https://github.com/jrief/djangocms-cascade but i couldn't find exact cause of the error.


Solution: I created the table "cmsplugin_cascade_segmentation" with just one field "id" (PK not Null) and then it worked for me in both directions - from development (sqlite) to productive (postgres) server and vice versa.