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
Django 1.7 compatibility #112
Conversation
Export signals handling to models.py Export all settings to one unique file Export keyfmt to utils.py We are not importing models anymore in __init__.py which can cause in several cases multiple fails from django.apps Registry
@@ -7,7 +8,10 @@ | |||
DEBUG = True | |||
TEMPLATE_DEBUG = True | |||
|
|||
TEST_RUNNER = 'django_nose.runner.NoseTestSuiteRunner' | |||
if django.VERSION <= (1, 6): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thoas – I think this should be <
? django.test.runner.DiscoverRunner was added in 1.6.
@ashchristopher this PR is up to date and synced with the master of @jsocol |
@thoas yes - but you are missing move of the |
@ashchristopher you are right, will do it. |
@jsocol could we have your input on this PR plz? |
Hey all, sorry I haven't had a chance to dig into this. I'm going to carve out a day next weekend for catching up on PRs. Then I can dive in and look at getting this and a few other things merged. |
necessary tables, you'll need to customize the ``SOUTH_MIGRATION_MODULES`` | ||
setting: :: | ||
|
||
SOUTH_MIGRATION_MODULES = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add this setting to test_settings, too.
There is a lot going on here. I'm not sure which parts are necessary for 1.7:
|
|
@jsocol I have synced my branch with the current master. |
Do you have any idea what's up with the test failures? They seem like actual failures, not errors, but they are crazy sporadic over the past few builds. |
All tests passed on tox in all environments in local, I do not have any idea of what's going wrong with travis. I have spend a lot of time but haven't found anything. You are right on the fact there are actually failures. |
Any follow-up on this PR? @jsocol could you tell me if you are planning to merge it or not (no big deal if not ;))? Thank you. |
I can't merge it with the inconsistent test failures. This got pretty big and gnarly. I'd rather take the work done here and spread it out over smaller commits/pull reqs. E.g. drop django-nose without touching anything else, move the signal handlers, do the setting refactor, etc, all separately, before making the actual 1.7 changes last. Hopefully we just won't run into the test issues, but if we do, it should be a lot easier to suss out what's wrong in smaller branches. I actually have a little time this week so I'm happy to do that, taking this pull req as a guide. So I'm going to close out this pull req and I might cherry-pick commits out of it, but even if I can't, thank you for doing all the leg work of figuring out what related changes need to happen! |
Ok I understand, no problem. Let me get some time this week to dispatch this PR into multiple PRs as you said. I will ping you. |
Currently all tests pass except SwitchTests.test_no_query which I'm missing something why we should make on query as we don't cache query from Django itself (we only cache proxies from
waffle.__init__.py
).I'm available if you want more information.
This PR is currently under development and not available to merge btw.