django_markdown icon indicating copy to clipboard operation
django_markdown copied to clipboard

Django 1.10 issues regarding urls.patterns()

Open Jzarecta opened this issue 8 years ago • 6 comments

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.

Jzarecta avatar Aug 01 '16 23:08 Jzarecta

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.

raratiru avatar Aug 12 '16 09:08 raratiru

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

Nolapete avatar Aug 23 '16 21:08 Nolapete

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

sv0 avatar Aug 25 '16 16:08 sv0

  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 avatar Jul 11 '20 14:07 wisetc

@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 avatar Jul 11 '20 20:07 raratiru

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

wisetc avatar Jul 12 '20 05:07 wisetc