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 1.10 issues regarding urls.patterns() #71

Open
Jzarecta opened this issue Aug 1, 2016 · 6 comments
Open

Django 1.10 issues regarding urls.patterns() #71

Jzarecta opened this issue Aug 1, 2016 · 6 comments

Comments

@Jzarecta
Copy link

Jzarecta commented Aug 1, 2016

I am getting the following warning on django 1.10

/home/jza/.virtualenvs/ardorforum/local/lib/python2.7/site-packages/django_markdown/urls.py:8: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
  '', url('preview/$', preview, name='django_markdown_preview'))


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@raratiru
Copy link

Indeed.

#59 notifies for this issue from 1.9. version. However, it seems that the latest project commit (of March 2015) will remain as such.

Hopefully @sv0 will make his branch an official new project as stated in #70 which is the 12th unanswered pull request.

@Nolapete
Copy link

Just go change your urls.py under Lib/site-packages/django_markdown to:

""" Define preview URL. """

from django.conf.urls import url

from .views import preview

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

@sv0
Copy link

sv0 commented Aug 25, 2016

@Jzarecta @raratiru
Please have a look at this comment.

@wisetc
Copy link

wisetc commented Jul 11, 2020

  File "/usr/local/lib/python3.6/site-packages/django_markdown/urls.py", line 3, in <module>
    from django.conf.urls import patterns, url
ImportError: cannot import name 'patterns'

cause internal server error. django version ==1.10

@raratiru
Copy link

@wisetc , Django-1.10 is unsafe to use.

Current LTS release is Django-2.2.

django_markdown project is not supported since 2015.

Try this fork instead.

@wisetc
Copy link

wisetc commented Jul 12, 2020

@raratiru Thank you very much. I've switched to the django-markdown-app just as your advice.

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

5 participants