Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

djangomod.syncdb migration awkward with django 1.7 #16674

Closed
johtso opened this issue Oct 16, 2014 · 5 comments
Closed

djangomod.syncdb migration awkward with django 1.7 #16674

johtso opened this issue Oct 16, 2014 · 5 comments
Labels
Bug broken, incorrect, or confusing behavior Execution-Module P3 Priority 3 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-low 4th level, cosemtic problems, work around exists stale
Milestone

Comments

@johtso
Copy link
Contributor

johtso commented Oct 16, 2014

As of Django 1.7, the syncdb command is deprecated, and defers to the migrate command. The migrate command does not accept a --migrate flag. So what you end up having to do if you want to run migrations is to run syncdb with migrate: False.

What's the correct way to deal with different versions of tools in salt modules?

@cro
Copy link
Contributor

cro commented Oct 16, 2014

It varies depending on the tool. In this case it might be easiest to determine the version of Django somehow and conditionally accept and forward on different command line options. In any case, the django module and state will probably need a little work.

@cachedout cachedout added Bug broken, incorrect, or confusing behavior severity-low 4th level, cosemtic problems, work around exists Execution-Module labels Oct 16, 2014
@cachedout cachedout added this to the Approved milestone Oct 16, 2014
@jfindlay jfindlay added the Platform Relates to OS, containers, platform-based utilities like FS, system based apps label May 26, 2015
@basepi basepi added P3 Priority 3 P4 Priority 4 and removed P3 Priority 3 P4 Priority 4 labels Jul 14, 2015
@slav0nic
Copy link
Contributor

django 1.9 was released and syncdb already removed

@cristina0botez
Copy link

Is there a workaround for this?
When will the fix be release?

@stale
Copy link

stale bot commented May 10, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

@jrbeilke
Copy link

Opened a PR to add the migrate command to djangomod for newer versions of Django without syncdb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Execution-Module P3 Priority 3 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-low 4th level, cosemtic problems, work around exists stale
Projects
None yet
Development

No branches or pull requests

8 participants