from django.conf.urls import url, include
from django.contrib import admin
from . import views

app_name = 'diary'
urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^logina/', views.logina, name='logina'),
    url(r'^login/', views.login, name='login'),
    url(r'^postPage/', views.postPage, name='postPage'),
    url(r'^regPage/', views.regPage, name='regPage'),
    url(r'^register/', views.register, name='register'),
    url(r'^postDiary/', views.postDiary, name='postDiary'),
    url(r'^logout/', views.logout, name='logout'),
    url(r'^(?P<diary_id>[0-9]+)/$', views.detail, name='detail'),
    url(r'^(?P<user_name>[a-zA-Z0-9]+)/$', views.userinfo, name='userinfo'),


]
