klen / klen/django_markdown

error on migrate in the provided example

Open
#49 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
389
Forks
140
PR merge metrics
No merged PRs in 30d

Description

I just tried to take a look at the example. I cloned the repo, created a new virtualenv (Python 3.4, Django 1.8) and started the example with `python manage.py runserver`… it runs, but I forget to install the migrations. When I tried to apply them with `python manage.py migrate` I get the following error:

`django.db.utils.OperationalError: Problem installing fixture '/home/…/example/project/md/fixtures/initial_data.json': Could not load auth.Permission(pk=1): no such table: auth_permission`

If I run the migrations without fixtures first: `python manage.py migrate --no-initial-data` and after that, run it again with fixtures: `python manage.py migrate` it seems to work. Despite Django raising an warning `RemovedInDjango19Warning` because of the fixtures, it looks like they are loaded fine (got the root user).

But now I get 403 on previews when i hit the button on the example page? Don't know if it's related though.
##

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/11872896-error-on-migrate-in-the-provided-example?utm_campaign=plugin&utm_content=tracker%2F332251&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F332251&utm_medium=issues&utm_source=github).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue from the provided example with Python 3.4 and Django 1.8, using manage.py migrate and the fixture at example/project/md/fixtures/initial_data.json. Check the separate preview request from the example page, then determine whether migrations complete cleanly and previews no longer return 403.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.