mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-16 21:40:24 +00:00
integrates new Django URL system w/ backward compatibility
This commit is contained in:
parent
c3c6b06a50
commit
675b170034
1 changed files with 8 additions and 2 deletions
|
|
@ -1,5 +1,10 @@
|
|||
from django.conf import settings
|
||||
from django.conf.urls import include, url
|
||||
|
||||
try:
|
||||
from django.conf.urls import include, url
|
||||
except ImportError:
|
||||
from django.urls import include, re_path as url
|
||||
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib import admin
|
||||
|
||||
|
|
@ -10,4 +15,5 @@ urlpatterns = [
|
|||
url(r'^$', TestFormView.as_view(), name='form_view'),
|
||||
url(r'^markdownx/', include('markdownx.urls')),
|
||||
url(r'^admin/', admin.site.urls),
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
*static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue