# This file is part of the FifoCI project.
# Copyright (c) 2014 Pierre Bourdon <delroth@dolphin-emu.org>
# Licensing information: see $REPO_ROOT/LICENSE

from django.conf import settings
from django.conf.urls import patterns, include, static, url
from django.contrib import admin

urlpatterns = patterns('',
    # Examples:
    url(r'^$', 'fifoci.views.home', name='home'),
    url(r'^dff/$', 'fifoci.views.dffs_to_test'),
    url(r'^dff/(?P<name>[a-zA-Z0-9-]+)/$', 'fifoci.views.dff_view',
        name='dff-view'),
    url(r'^version/(?P<hash>[0-9a-f]{40})/$', 'fifoci.views.version_view',
        name='version-view'),
    url(r'^version/(?P<hash>[0-9a-f]{40})/json/$',
        'fifoci.views.version_view_json', name='version-view-json'),
    url(r'^result/(?P<id>\d+)/$', 'fifoci.views.result_view',
        name='result-view'),
    url(r'^compare/(?P<curr_id>\d+)-(?P<old_id>\d+)/$',
        'fifoci.views.compare_view', name='compare-view'),
    url(r'^about/$', 'fifoci.views.about_view', name='about-view'),
    url(r'^existing-images/$', 'fifoci.views.existing_images'),
    url(r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns += static.static(settings.MEDIA_URL,
                                 document_root=settings.MEDIA_ROOT)

@@ -212,18 +212,8 @@
 port
- patterns,
  inc
@@ -264,16 +264,37 @@
  admin%0A%0A
+import fifoci.views%0A%0A
 urlpatte
@@ -303,20 +303,9 @@
 s = 
-patterns('',
+%5B
 %0A   
@@ -328,25 +328,24 @@
  url(r'%5E$', 
-'
 fifoci.views
@@ -349,17 +349,16 @@
 ews.home
-'
 , name='
@@ -380,25 +380,24 @@
 (r'%5Edff/$', 
-'
 fifoci.views
@@ -409,17 +409,16 @@
 _to_test
-'
 ),%0A    u
@@ -451,25 +451,24 @@
 0-9-%5D+)/$', 
-'
 fifoci.views
@@ -472,25 +472,24 @@
 ews.dff_view
-'
 ,%0A        na
@@ -546,25 +546,24 @@
 f%5D%7B40%7D)/$', 
-'
 fifoci.views
@@ -571,25 +571,24 @@
 version_view
-'
 ,%0A        na
@@ -658,33 +658,32 @@
 son/$',%0A        
-'
 fifoci.views.ver
@@ -696,17 +696,16 @@
 iew_json
-'
 , name='
@@ -755,25 +755,24 @@
 id%3E%5Cd+)/$', 
-'
 fifoci.views
@@ -783,17 +783,16 @@
 ult_view
-'
 ,%0A      
@@ -878,17 +878,16 @@
         
-'
 fifoci.v
@@ -899,25 +899,24 @@
 compare_view
-'
 , name='comp
@@ -944,25 +944,24 @@
 '%5Eabout/$', 
-'
 fifoci.views
@@ -971,17 +971,16 @@
 out_view
-'
 , name='
@@ -1024,17 +1024,16 @@
 ges/$', 
-'
 fifoci.v
@@ -1052,17 +1052,16 @@
 g_images
-'
 ),%0A    u
@@ -1079,16 +1079,8 @@
 /', 
-include(
 admi
@@ -1095,12 +1095,11 @@
 rls)
-)
 ,%0A
-)
+%5D
 %0A%0Aif

Use new urlpattern style