Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 944 Bytes
from django.conf.urls import patterns, include, url
from django.conf.urls import url
#from .views import BlogViews, BlogDetailView, AddComment
app_name = 'blog'
from django.conf import settings
from django.conf.urls.static import static
import views
urlpatterns = patterns('',
url(r'^blog/(\d+)/$', views.blog_view, name = 'page'),
#url(r'^$', BlogViews.as_view()),
#url(r'^blog/(?P<pk>[0-9]+)/$', BlogDetailView.as_view(), name='blog_detail'),
#url(r'^comments/add/$', AddComment.as_view(), name='comments_add'),
#url(r'^comments/add/$', views.add_comments, name='comments_add'),
url(r'^like/add/(\d+)/$', views.add_like, name='comments_add'),
url(r'^login/$', views.login, name='login'),
url(r'^logout/$', views.logout, name='logout'),
url(r'^register/$', views.register, name='logout'),
url(r'^$', views.blog_views, name = 'blog'),
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)