django_markdown
django_markdown copied to clipboard
Django 1.10 issues regarding urls.patterns()
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.
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.
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'),
]
@Jzarecta @raratiru Please have a look at this comment.
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
@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.
@raratiru Thank you very much. I've switched to the django-markdown-app
just as your advice.