forked from 0x2620/pandora
items always start with [A-Z0-9]
This commit is contained in:
parent
4ca0da4d73
commit
a8ccf08cd0
4 changed files with 10 additions and 8 deletions
|
@ -5,12 +5,12 @@ from django.conf.urls.defaults import *
|
|||
|
||||
|
||||
urlpatterns = patterns("item.views",
|
||||
(r'^(?P<id>.*)/frame/(?P<size>\d+)/(?P<position>[0-9\.,]+).jpg$', 'frame'),
|
||||
(r'^(?P<id>.*)/(?P<profile>.*.webm)$', 'video'),
|
||||
(r'^(?P<id>.*)/(?P<profile>.*.mp4)$', 'video'),
|
||||
(r'^(?P<id>.*)/poster\.(?P<size>\d+)\.jpg$', 'poster'),
|
||||
(r'^(?P<id>.*)/poster\.(?P<size>large)\.jpg$', 'poster'),
|
||||
(r'^(?P<id>.*)/poster\.jpg$', 'poster'),
|
||||
(r'^(?P<id>.*)/timelines/(?P<timeline>.+)\.(?P<size>\d+)\.(?P<position>\d+)\.png$', 'timeline'),
|
||||
(r'^(?P<id>[A-Z0-9].*)/frame/(?P<size>\d+)/(?P<position>[0-9\.,]+).jpg$', 'frame'),
|
||||
(r'^(?P<id>[A-Z0-9].*)/(?P<profile>.*.webm)$', 'video'),
|
||||
(r'^(?P<id>[A-Z0-9].*)/(?P<profile>.*.mp4)$', 'video'),
|
||||
(r'^(?P<id>[A-Z0-9].*)/poster\.(?P<size>\d+)\.jpg$', 'poster'),
|
||||
(r'^(?P<id>[A-Z0-9].*)/poster\.(?P<size>large)\.jpg$', 'poster'),
|
||||
(r'^(?P<id>[A-Z0-9].*)/poster\.jpg$', 'poster'),
|
||||
(r'^(?P<id>[A-Z0-9].*)/timelines/(?P<timeline>.+)\.(?P<size>\d+)\.(?P<position>\d+)\.png$', 'timeline'),
|
||||
)
|
||||
|
||||
|
|
|
@ -38,6 +38,6 @@ if settings.DEBUG:
|
|||
{'document_root': settings.TESTS_ROOT}),
|
||||
)
|
||||
urlpatterns += patterns('',
|
||||
(r'.*', 'app.views.index'),
|
||||
(r'^[A-Z0-9].*$', 'app.views.index'),
|
||||
)
|
||||
|
||||
|
|
1
static/404.html
Normal file
1
static/404.html
Normal file
|
@ -0,0 +1 @@
|
|||
File not found
|
1
static/50x.html
Normal file
1
static/50x.html
Normal file
|
@ -0,0 +1 @@
|
|||
pan.do/ra is broken.
|
Loading…
Reference in a new issue