Skip to content

Conversation

@alzearafat
Copy link

Django 1.9 renamed "django.forms.util" to "django.forms.utils". And use of patterns is also deprecated since django 1.8. You can use plain lists now.

import json

from django.conf.urls import patterns, url
from django.conf.urls import url

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

patterns is referenced below, how does this work?

handler: '{% url "admin:quill-file-upload" %}',
allowedExtensions: JSON.parse('{{ "allowed_image_extensions"|quill_conf_json }}')
allowedExtensions: JSON.parse('{{ "allowed_image_extensions"|quill_conf_json }}'),
// handler: '{% url "admin:quill-file-upload" %}', #Commented this our because trown an error.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a viable solution, without an explanation. Commenting out code isn't a preferred practice either.

from django import forms
from django.apps import apps
from django.forms.util import flatatt
from django.forms.utils import flatatt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work for older versions of Django.

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

Successfully merging this pull request may close these issues.

2 participants