mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-17 05:50:23 +00:00
18 lines
612 B
Python
18 lines
612 B
Python
from django.conf import settings
|
|
from django.conf.urls import include, url
|
|
from django.conf.urls.static import static
|
|
from django.contrib import admin
|
|
|
|
from testapp.views import (
|
|
IndexTemplateView,
|
|
TestFormView,
|
|
TestCreateView,
|
|
)
|
|
|
|
urlpatterns = [
|
|
url(r'^$', IndexTemplateView.as_view()),
|
|
url(r'^form-view/$', TestFormView.as_view(), name='form_view'),
|
|
url(r'^create-view/$', TestCreateView.as_view(), name='create_view'),
|
|
url(r'^markdownx/', include('markdownx.urls')),
|
|
url(r'^admin/', include(admin.site.urls)),
|
|
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|