from __future__ import unicode_literals

try:
    from django.conf.urls import patterns, url
except ImportError:
    from django.conf.urls.defaults import patterns, url


urlpatterns = patterns(
    '',
    url(r'^download/.*$', 'django_transfer.views.download', name='download'),
    url(r'^upload/$', 'django_transfer.views.upload', name='upload'),
)

from __future__ import unicode_literals

try:
    from django.conf.urls import url

    def patterns(*args):
        return args

except ImportError:
    from django.conf.urls.defaults import patterns, url

from django_transfer.views import download, upload


urlpatterns = patterns(
    url(r'^download/.*$', download, name='download'),
    url(r'^upload/$', upload, name='upload'),
)

Fix URL patterns for different Django versions.
Fix URL patterns for different Django versions.
