-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Django 1.10 to 'tox' support (#74)
* add django 1.10 to tox coverage * Update 'make clean' to clean python 3 files * update test project for Django 1.10 * greenkeeper
- Loading branch information
Showing
8 changed files
with
47 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
media | ||
|
||
*.log | ||
*.pot | ||
*.pyc | ||
__pycache__ | ||
.DS_Store | ||
.coverage | ||
.sass-cache | ||
.tox/ | ||
*.db | ||
|
||
|
||
# Private files | ||
.env | ||
.tox/ | ||
*.db | ||
|
||
|
||
# build | ||
MANIFEST | ||
build/* | ||
dist/* | ||
*.egg-info | ||
|
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,31 +1,26 @@ | ||
from django.conf import settings | ||
from django.conf.urls import patterns, include, url | ||
|
||
from django.conf.urls import include, url | ||
from django.contrib import admin | ||
from django.views.static import serve | ||
try: | ||
from django.conf.urls import patterns | ||
except ImportError: | ||
# DJANGO1.6 DJANGO1.7 | ||
# https://docs.djangoproject.com/en/1.8/releases/1.8/#django-conf-urls-patterns | ||
def patterns(__, *urlpatterns): | ||
return urlpatterns | ||
|
||
from example_project.polls.admin import support_admin | ||
|
||
|
||
admin.autodiscover() | ||
|
||
urlpatterns = patterns('', | ||
# Examples: | ||
# url(r'^$', 'example_project.views.home', name='home'), | ||
# url(r'^example_project/', include('example_project.foo.urls')), | ||
|
||
# Uncomment the admin/doc line below to enable admin documentation: | ||
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')), | ||
|
||
# Uncomment the next line to enable the admin: | ||
urlpatterns = patterns( | ||
'', | ||
url(r'^admin/', include(admin.site.urls)), | ||
url(r'^support/', include(support_admin.urls)), | ||
# serve media | ||
url(r'^media/(?P<path>.*)$', serve, { | ||
'document_root': settings.MEDIA_ROOT, | ||
}), | ||
) | ||
|
||
|
||
# serve media | ||
if settings.DEBUG: | ||
urlpatterns += patterns('', | ||
url(r'^media/(?P<path>.*)$', 'django.views.static.serve', { | ||
'document_root': settings.MEDIA_ROOT, | ||
}), | ||
) |
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,5 +1,6 @@ | ||
dj-database-url==0.4.0 | ||
django-extensions==1.6.1 | ||
factory-boy==2.6.1 | ||
coverage==4.0.3 | ||
mock==1.3.0 | ||
dj-database-url==0.4.1 | ||
# Can upgrade once we lose DJANGO1.7 | ||
django-extensions==1.6.7 | ||
factory-boy==2.7.0 | ||
coverage==4.2 | ||
mock==2.0.0 |
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