imagehost/imagehosting/urls.py

14 lines
490 B
Python
Raw Normal View History

2017-09-27 13:35:32 +03:00
# -*- coding: utf-8 -*-
from django.conf.urls import url
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^$', views.image_new, name='image_new'),
url(r'^post/(?P<pk>[0-9]+)/$', views.image_detail, name='image_detail'),
url(r'^all/$', views.all_posts, name='all_posts'),
url(r'^carousel/$', views.carousel, name='carousel'),
url(r'^delete/(?P<pk>[0-9]+)/$', views.delete_post, name='delete_post')
]