klen / django_markdown

Django markdown support and wysiwig
GNU Lesser General Public License v3.0
391 stars 143 forks source link

django version >=1.8 deprecates import patterns #79

Open BouchaaraAdil opened 7 years ago

BouchaaraAdil commented 7 years ago

from django.conf.urls import patterns, url app_1 | ImportError: cannot import name patterns i'm using django 1.11

i8wu commented 6 years ago

Is there a fix for this?

ghost commented 5 years ago
#from django.conf.urls import patterns, url
from django.conf.urls import url
from django.urls import path
from .views import preview

urlpatterns = [
    path('preview/$', preview, name='django_markdown_preview'),]