pinax / pinax-starter-projects

Pinax Starter Projects
MIT License
81 stars 39 forks source link

Add running `./manage.py migrate --run-syncdb` to README #32

Open adamfeldman opened 7 years ago

adamfeldman commented 7 years ago

Fixes issues with the team-wiki application not working (specifically the profiles app as well as pinax-wiki)

jtauber commented 7 years ago

Is this the right fix or should we fix something else that's requiring the --run-syncdb ?

adamfeldman commented 7 years ago

@jtauber I am not sure what the root issue was. I am copying below further details I wrote in the #help Pinax Slack channel from earlier today https://pinax.slack.com/archives/help/p1474850003000039.

"I am working on getting the team-wiki project running. Have been fixing and documenting issues on my own, to share fixes later. I’ve run into an issue I am having trouble with: team-wiki’s profiles app, and the wiki app itself (installed as a dependency) are not triggering any migrations

[7:34]
At least I think that’s the root issue. The traceback is telling me that * relation "profiles_profile" does not exist * and similar for wiki

[7:36]
I’ve tried running python manage.py makemigrations and migrate every which way and they say there are no migrations for either the wiki or profiles apps. Pardon me for not having touched Django for awhile, but won’t every model that involves relations trigger migrations to be done?

adamfeldman [7:45 PM]
Annnnd rubber duck debugging strikes again! python manage.py migrate --run-syncdb moved me on to the next broken bit to solve"