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

Django 2.0 Fixes. #1

Merged
merged 13 commits into from Dec 21, 2017
Merged

Django 2.0 Fixes. #1

merged 13 commits into from Dec 21, 2017

Conversation

paulmonk
Copy link
Contributor

  • Added on_delete values for the models and migrations where needed.
  • Updated Tox config.
  • Added a Pipfile.

@@ -59,13 +62,17 @@ def get_version(package):
'Framework :: Django',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop 1.9 and 1.10 here, and lose Python 3.3.

import django
from pkg_resources import parse_version

if parse_version(django.__version__) >= parse_version('2.0.0'):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a try ... except ImportError not an if, and don't use path() use url() instead.

# Examples:
# url(r'^$', 'test_project.views.home', name='home'),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave these url()s as they were, just omit the patterns() in favour of a plain list.

deps =
django
Copy link
Owner

@lpomfrey lpomfrey Dec 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use github tarballs, install versions from pypi (except for master).

@paulmonk
Copy link
Contributor Author

I've added commits based on your feedback.

tox.ini Outdated
{py27,py34,py35}-1.10.x
{py27,py34,py35,py36}-1.11.x
{py34,py35,py36}-2.0.x
{py35,py36}-master
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

master will need to have an associated github tarball in deps. Or just don't test against master.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, that was accidental.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed the reference to master now.

@lpomfrey
Copy link
Owner

Can you update the .travis.yml file as well.

@paulmonk
Copy link
Contributor Author

Sure. I wasn't sure if you wanted to do that.

@coveralls
Copy link

coveralls commented Dec 21, 2017

Coverage Status

Coverage remained the same at 97.345% when pulling 92c69e4 on paulmonk:fix/django.2.0 into f750bea on lpomfrey:master.

1 similar comment
@coveralls
Copy link

coveralls commented Dec 21, 2017

Coverage Status

Coverage remained the same at 97.345% when pulling 92c69e4 on paulmonk:fix/django.2.0 into f750bea on lpomfrey:master.

@coveralls
Copy link

coveralls commented Dec 21, 2017

Coverage Status

Coverage remained the same at 97.345% when pulling 775a815 on paulmonk:fix/django.2.0 into f750bea on lpomfrey:master.

@lpomfrey lpomfrey merged commit 7e5d746 into lpomfrey:master Dec 21, 2017
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

Successfully merging this pull request may close these issues.

None yet

3 participants