-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
6 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,7 +1,14 @@ | ||
# -*- coding:utf-8 -*- | ||
from django.conf.urls import url | ||
import django | ||
|
||
from .views import UploadView | ||
|
||
if django.VERSION[0] > 1: | ||
from django.urls import re_path as url_func | ||
else: | ||
from django.conf.urls import url as url_func | ||
|
||
|
||
urlpatterns = [ | ||
url(r'^uploads/$', UploadView.as_view(), name='uploads'), | ||
] | ||
url_func(r'^uploads/$', UploadView.as_view(), name='uploads'), | ||
] |
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 |
---|---|---|
|
@@ -18,9 +18,6 @@ | |
url='', | ||
author='pylixm', | ||
author_email='[email protected]', | ||
install_requires=[ | ||
'django==1.11.10', | ||
], | ||
classifiers=[ | ||
'Environment :: Web Environment', | ||
'Framework :: Django', | ||
|
@@ -29,6 +26,7 @@ | |
'Framework :: Django :: 1.9', | ||
'Framework :: Django :: 1.10', | ||
'Framework :: Django :: 1.11', | ||
'Framework :: Django :: 2.0', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', | ||
'Operating System :: OS Independent', | ||
|