
from __future__ import unicode_literals

from django.conf.urls import patterns, url


urlpatterns = patterns('Artifactorial.views',
                       url(r'^artifacts/(?P<filename>.*)$', 'artifacts', name='artifacts'),
                       url(r'^shared/(?P<token>.*)$', 'shared', name='shared'))


from __future__ import unicode_literals

from django.conf.urls import patterns, url

import Artifactorial.views as a_views


urlpatterns = [
  url(r'^artifacts/(?P<filename>.*)$', a_views.artifacts, name='artifacts'),
  url(r'^shared/(?P<token>.*)$', a_views.shared, name='shared')
]

Use the new url pattern
Use the new url pattern

  
  from __future__ import unicode_literals
  
  from django.conf.urls import patterns, url
  
+ import Artifactorial.views as a_views
  
- urlpatterns = patterns('Artifactorial.views',
-                        url(r'^artifacts/(?P<filename>.*)$', 'artifacts', name='artifacts'),
-                        url(r'^shared/(?P<token>.*)$', 'shared', name='shared'))
  
+ urlpatterns = [
+   url(r'^artifacts/(?P<filename>.*)$', a_views.artifacts, name='artifacts'),
+   url(r'^shared/(?P<token>.*)$', a_views.shared, name='shared')
+ ]
+ 
Use the new url pattern
## Code Before:

from __future__ import unicode_literals

from django.conf.urls import patterns, url


urlpatterns = patterns('Artifactorial.views',
                       url(r'^artifacts/(?P<filename>.*)$', 'artifacts', name='artifacts'),
                       url(r'^shared/(?P<token>.*)$', 'shared', name='shared'))

## Instruction:
Use the new url pattern
## Code After:

from __future__ import unicode_literals

from django.conf.urls import patterns, url

import Artifactorial.views as a_views


urlpatterns = [
  url(r'^artifacts/(?P<filename>.*)$', a_views.artifacts, name='artifacts'),
  url(r'^shared/(?P<token>.*)$', a_views.shared, name='shared')
]
