I am new to django and I am trying to trying to implement a form that uses widget-tweaks.
I did install widget tweaks (I am using Ubuntu 14.04)
sudo pip install django-widget-tweaks
My settings file looks like this:
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'core',
'addattr',
'widget_tweaks',
)
The html looks like this:
{% extends "base/theme.html" %}
{% load widget_tweaks %}
{% block main_content %}
...more code...
The class in the views and the linking in the url works perfectly fine.
But every time when I try to load the html it says:
widget_tweaks' is not a valid tag library: Template library widget_tweaks not found, tried django.templatetags.widget_tweaks,django.contrib.admin.templatetags.widget_tweaks,django.contrib.staticfiles.templatetags.widget_tweaks
Can anyone help? Thanks in advance
check your app settings add :
'widget_tweaks',
to your INSTALLED_APPS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With