Open cloverhsc opened 8 years ago
@joymax You can fix this pretty easily by changing it to use the new URLs system:
from django.urls import path
from .views import SomeView, ...
urlpatterns = [
path('some/path/', SomeView, name='some_view_name'),
...
]
Hi joymax: After I pip install django-dtpanel-htmltidy and configuration.
Then do $ python manage.py runserver . It will show
So I go to check debug_toolbar_htmltidy and find urls.py content
from django.conf.urls.defaults import url, patterns
and I change tofrom django.conf.urls import url, patterns
then it work. I don't know is this a bug or version conflict therefor send a issues for you. :)Django==1.8.3
Markdown==2.6.4
MySQL-python==1.2.5
Pillow==3.0.0
PyYAML==3.11
Pygments==2.0.2
argparse==1.2.1
bcrypt==2.0.0
beautifulsoup4==4.4.1
bs4==0.0.1
cffi==1.3.0
clime==0.3.1
decorator==4.0.4
django-debug-toolbar==1.4
django-dtpanel-htmltidy==0.1.1
django-filter==0.11.0
django-sendsms==0.2.2
django-stackoverflow-trace==0.0.4
djangorestframework==3.3.1
enum34==1.0.4
fake-factory==0.5.3
httpie==0.9.2
httplib2==0.9.2
idna==2.0
ipaddress==1.0.14
ipython==4.0.0
ipython-genutils==0.1.0
numpy==1.10.4
path.py==8.1.2
pexpect==4.0.1
pickleshare==0.5
ptyprocess==0.5
py==1.4.30
pyasn1==0.1.8
pycparser==2.14
pytest==2.8.3
python-dateutil==2.5.1
pytidylib==0.2.4
pytz==2016.2
requests==2.9.1
simplegeneric==0.8.1
six==1.10.0
sqlparse==0.1.19
traitlets==4.0.0
wheel==0.24.0
wsgiref==0.1.2