You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2021. It is now read-only.
I reopen the issue #39. Loading example_database.json seems not possible if using postgres.
Postgresql, with no database:
$ dropdb base_django01
$ python manage.py syncdb --noinput --all
...
psycopg2.OperationalError: FATAL: database "base_django01" does not exist
Postgresql, with fresh database:
$ createdb -T template0 base_django01
$ python manage.py syncdb --noinput --all
$ python manage.py loaddata example_database.json
.../python2.7/site-packages/cms/utils/plugins.py:125: DuplicatePlaceholderWarning: Duplicate placeholder found:
bodywarnings.warn("Duplicate placeholder found:
%s" % placeholder, DuplicatePlaceholderWarning)...
IntegrityError: Could not load cms.Page(pk=1): duplicate key value violates unique constraint "cms_placeholder_pkey"
DETAIL: Key (id)=(1) already exists.
trying a second loaddata, I get
DETAIL: Key (id)=(2) already exists.
$ python manage.py loaddata example_database.json
.../python2.7/site-packages/cms/utils/plugins.py:125: DuplicatePlaceholderWarning: Duplicate placeholder found:
bodywarnings.warn("Duplicate placeholder found:
%s" % placeholder, DuplicatePlaceholderWarning)Installed 1039 object(s) from 1 fixture(s)