Note that there are some explanatory texts on larger screens.

plurals
  1. POTemplateSyntaxError 'staticfiles' is not a valid tag library'
    primarykey
    data
    text
    <p>I'm having a really strange issue trying to get the <code>staticfiles</code> taglib working in my application. I'm essentially getting the following error:</p> <pre><code>'staticfiles' is not a valid tag library: Template library staticfiles not found, tried django.templatetags.staticfiles,django.contrib.admin.templatetags.staticfiles </code></pre> <p>Here's my template which is throwing this error:</p> <pre><code>{% load staticfiles %} &lt;html&gt; &lt;head&gt; {% block stylesheets %} &lt;link rel="stylesheet" href="{% static "styles/bootstrap-1.2.0.min.css" %}"&gt; {% endblock %} &lt;title&gt;{% block title %}Tzibor{% endblock %}&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;It Works!&lt;/h1&gt; {% block scripts %} &lt;script type="text/javascript" src="{% static "scripts/jquery-1.6.2.min.js" %}"&gt;&lt;/script&gt; {% endblock %} &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Here's my <code>settings.py</code>:</p> <pre><code>DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/tmp/project.db', 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '', } } TIME_ZONE = 'UTC' LANGUAGE_CODE = 'en-us' SITE_ID = 1 USE_I18N = True USE_L10N = True MEDIA_ROOT = '' # abs fs path to upload dir MEDIA_URL = '' STATIC_URL = '/static/' ADMIN_MEDIA_PREFIX = '/media/' SECRET_KEY = '4qo&amp;twl!=ty!n%1@h2nidz^ie@$^uu@*pz)(ol%ise0&amp;g6*@&amp;_' #TEMPLATE_CONTEXT_PROCESSORS = ( # "django.contrib.auth.context_processors.auth", # "django.core.context_processors.debug", # "django.core.context_processors.i18n", # "django.core.context_processors.media", # "django.core.context_processors.static", # "django.contrib.messages.context_processors.messages", #) TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'django.template.loaders.eggs.Loader', ) TEMPLATE_DIRS = ( ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ) ROOT_URLCONF = 'project.urls' INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.staticfiles', 'project.web', 'south', ) </code></pre> <p>Essentially, I followed the guide available <a href="https://docs.djangoproject.com/en/dev/howto/static-files/" rel="noreferrer">in Django's documentation on how to set up the static serving application,</a> and got this error. Can anyone see what the issue is? Am I missing something?</p> <p>Full stacktrace <a href="http://pastebin.com/cPNNGZYQ" rel="noreferrer">here</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload