from django.conf.urls import url

from . import views
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    url(r'^(?P<lq_id>\d+)/$', views.questionaire_view, name='questionaire'),
    url(r'^formset/(?P<lq_id>\d+)/$', views.formset_view, name='formset'),
    url(r'^multi-formset/(?P<slug>[\w-]+)/$', views.multi_formset_view, name='multi_formset'),
    url(r'^form-to-docx/(?P<slug>[\w-]+)/$', views.form_to_docx, name='form-to-docx'),
    url(r'^form-to-docx/file/(?P<slug>[\w-]+)/(?P<uuid>[\w-]+)/$', views.docx_download_page, name='form-to-docx'), 
    url(r'^upload-templates/$',views.legal_template_upload_view,name="legal templates")
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)