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

Invalid Object name 'corsheaders_corsmodel' #182

Closed
colinlight33 opened this issue Dec 8, 2016 · 5 comments
Closed

Invalid Object name 'corsheaders_corsmodel' #182

colinlight33 opened this issue Dec 8, 2016 · 5 comments

Comments

@colinlight33
Copy link

colinlight33 commented Dec 8, 2016

Hi i have this issue when using some of the manage.py command like flush this seems to happen when using https://pypi.python.org/pypi/django-pyodbc-azure to connect to an sql server.
I have no idea if its an issue with django-pyodbc or corsheader but removing the corsheader fixes the issue

@colinlight33 colinlight33 changed the title Invalid Object name 'corheaders_corsmodel' Invalid Object name 'corsheaders_corsmodel' Dec 8, 2016
@colinlight33
Copy link
Author

the table corheaders_corsmodel is not created with 1.9 or django 1.10 in sqlite or any database it works with 1.7

@adamchainz
Copy link
Owner

Sorry, this is a known issue and I want to fix it by actually removing CorsModel as most people don't use it. #153 will fix it and I'll cut a new 2.0.0 release. Will do it tonight.

@ColinLight3
Copy link

ColinLight3 commented Dec 8, 2016

Hi i noticed it its no problem i found the solution in using makemigrations corsheaders but thank you for the quick response

@Nijhazer
Copy link

Nijhazer commented Dec 27, 2016

Following-up on this. This breaks the flush management command.

@adamchainz
Copy link
Owner

Just released the fix in 2.0.0 on PyPI: https://pypi.python.org/pypi/django-cors-headers , sorry about the delay, Christmas season and all that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants