Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django version >=1.8 deprecates import patterns #79

Open
BouchaaraAdil opened this issue Nov 27, 2017 · 2 comments
Open

django version >=1.8 deprecates import patterns #79

BouchaaraAdil opened this issue Nov 27, 2017 · 2 comments

Comments

@BouchaaraAdil
Copy link

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

@i8wu
Copy link

i8wu commented Jan 2, 2018

Is there a fix for this?

@ghost
Copy link

ghost commented Sep 4, 2019

#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'),]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants