EuroPython / djep

EuroPython 2014 conference software
https://ep2014.europython.eu/
BSD 3-Clause "New" or "Revised" License
37 stars 18 forks source link

Fixes #58 -- Create initial data fixture #127

Closed MarkusH closed 10 years ago

zerok commented 10 years ago

Please create the fixture with an indentation of 4 to make it readable and maintainable.

MarkusH commented 10 years ago

But still with natural keys / ids, right?

Sent from my Android device with K-9 Mail. Please excuse my brevity.

zerok commented 10 years ago

Yes, just the formatting is IMO problematic.

MarkusH commented 10 years ago

Changed

zerok commented 10 years ago

Hmm... on a new db I get this error:

IntegrityError: Problem installing fixture 'fixtures/europython2014/initial.json': Could not load cms.Page(pk=1): duplicate key value violates unique constraint "cms_placeholder_pkey"
DETAIL:  Key (id)=(1) already exists.
MarkusH commented 10 years ago

The way Django-CMS handles the placeholders is somewhat weird. It didn't manage to make a single fixture working due to, I assume, the Django transaction management, but I'm not really sure. Thus first load initial01 and after that initial02.

Furthermore I added a warning that redis needs to be running, since Django-CMS calls cache commands.