-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from uppsaladatavetare/django-1.11
Django 1.9-1.11a compatibility
- Loading branch information
Showing
14 changed files
with
103 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,2 @@ | ||
Django==1.9.0 | ||
django-bananas==1.0.8 | ||
django-enumfields==0.7.3 | ||
django-factory-boy==0.1.6 | ||
django-model-utils==2.2 | ||
django-money==0.7.4 | ||
djangorestframework==3.2.0 | ||
django-rest-swagger==0.3.4 | ||
django-bitfield==1.8.0 | ||
factory-boy==2.5.2 | ||
Pillow==2.9.0 | ||
pluggy==0.3.0 | ||
py==1.4.30 | ||
py-moneyed==0.5.0 | ||
pyflakes==0.8.1 | ||
six==1.9.0 | ||
tox==2.1.1 | ||
requests==2.8.1 | ||
pytz==2015.7 | ||
|
||
# production & dev | ||
psycopg2==2.6.1 | ||
raven==5.8.1 | ||
|
||
# lint | ||
flake8==2.5.4 | ||
Django==1.10.5 | ||
-r requirements/common.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
django-bananas==1.0.8 | ||
django-enumfields==0.8.2 | ||
django-factory-boy==0.1.6 | ||
django-model-utils==2.2 | ||
git+https://github.com/disqus/django-bitfield.git@306ba5#egg=django-bitfield | ||
git+https://github.com/kjagiello/django-money.git@45ea5e#egg=django-money | ||
djangorestframework==3.5.3 | ||
django-rest-swagger==2.1.1 | ||
factory-boy==2.5.2 | ||
Pillow==2.9.0 | ||
pluggy==0.3.0 | ||
py==1.4.30 | ||
py-moneyed==0.5.0 | ||
pyflakes==0.8.1 | ||
six==1.9.0 | ||
tox==2.1.1 | ||
requests==2.8.1 | ||
pytz==2015.7 | ||
psycopg2==2.6.1 | ||
raven==5.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
from django.conf.urls import patterns, include, url | ||
from django.conf.urls import include, url | ||
from django.contrib import admin | ||
|
||
from rest_framework_swagger.views import get_swagger_view | ||
import foobar.views | ||
import rest_framework.urls | ||
|
||
from .rest.urls import router | ||
|
||
urlpatterns = patterns( | ||
'', | ||
schema_view = get_swagger_view(title='FooBar API') | ||
|
||
urlpatterns = [ | ||
url(r'^api/', include(router.urls, namespace='api')), | ||
url(r'^docs/', include('rest_framework_swagger.urls')), | ||
url(r'^api-auth/', include('rest_framework.urls', | ||
url(r'^docs/', schema_view), | ||
url(r'^api-auth/', include(rest_framework.urls, | ||
namespace='rest_framework')), | ||
|
||
url(r'^admin/foobar/account/card/(?P<card_id>\d+)', | ||
'foobar.views.account_for_card', name='account_for_card'), | ||
foobar.views.account_for_card, name='account_for_card'), | ||
url(r'^admin/', include(admin.site.urls)), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
[tox] | ||
skipsdist = True | ||
envlist = py34 | ||
envlist = | ||
py34-{1.9,1.10,1.11}, | ||
py35-{1.9,1.10,1.11}, | ||
py36-{1.9,1.10,1.11} | ||
|
||
[testenv] | ||
commands=make test | ||
deps = -r{toxinidir}/requirements.txt | ||
deps = | ||
-r{toxinidir}/requirements/common.txt | ||
flake8==3.2.1 | ||
1.9: Django<1.10 | ||
1.10: Django<1.11 | ||
1.11: Django<1.12 | ||
setenv = | ||
DJANGO_SETTINGS_MODULE=foobar.settings.test | ||
changedir = src/ | ||
commands = | ||
python manage.py test |