mirror of
https://github.com/pinry/pinry.git
synced 2025-11-14 00:55:43 +01:00
Generate thumbnail and standard image on request, and use http://github.com/mirumee/django-images for generating them. Also, remove the CreatePin page as pin creation is going to be done in JavaScript. Create UploadImage view for uploading images from computer.
12 lines
333 B
Python
12 lines
333 B
Python
from django.conf.urls import patterns, url
|
|
|
|
from .views import RecentPins
|
|
from .views import UploadImage
|
|
|
|
|
|
urlpatterns = patterns('pinry.pins.views',
|
|
url(r'^$', RecentPins.as_view(), name='recent-pins'),
|
|
url(r'^tag/.+/$', RecentPins.as_view(), name='tag'),
|
|
url(r'^upload-pin/$', UploadImage.as_view(), name='new-pin'),
|
|
)
|