# -*- coding: utf-8 -*-

from django.conf.urls import url
from . import views  # .은 현재 디렉토리 의미
from django.conf import settings
from django.conf.urls.static import static

app_name = 'fitterKakao'
urlpatterns = [
    url(r'^$', views.index, name = 'index'),
    url(r'^result/(?P<kinds>[a-z]+)/(?P<tag_num>[0-9]+)/$', views.suppose_size, name='suppose_size'),
    url(r'^new/$', views.post_new, name='post_new'),
    url(r'^edit/(?P<user_name>[a-zA-Z0-9@.+-_]+)/$', views.post_edit, name='post_edit'),
    url(r'^clothes/$', views.choose_clothes, name='choose_clothes'),
    url(r'^clothes/new/(?P<kinds>[a-z]+)/$', views.add_clothes, name='add_clothes'),
    url(r'^clothes/del/(?P<kinds>[a-z]+)/(?P<tag_num>[0-9]+)/$', views.delete_clothes, name='delete_clothes'),
    url(r'^clothes/edit/(?P<kinds>[a-z]+)/(?P<tag_num>[0-9]+)/$', views.edit_clothes, name='edit_clothes'),
    url(r'^single/$', views.single_mode, name='single_mode'),
    url(r'^single/body/(?P<kinds>[a-z]+)/$', views.single_post_body, name='single_post_body'),
    url(r'^single/between/(?P<kinds>[a-z]+)/$', views.single_post_between, name='single_post_between'),
    url(r'^queer/$', views.data_add, name='data_add'),
    url(r'^gaaay/$', views.data_del, name='data_del'),
    # url(r'^keyboard/', views.keyboard), # 카톡
    # url(r'^message', views.answer), # 카톡
]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
