Fix deprecation warning for {% load staticfiles %} and django.contrib.staticfiles

This commit is contained in:
Valentin Samir 2019-03-02 11:31:18 +01:00
parent 4025fcbf11
commit 378f70fac9
5 changed files with 6 additions and 5 deletions

View File

@ -17,8 +17,9 @@ Added
Fixes
-----
* Fix checkbox position on the login page
* Checkbox position on the login page
* Set ldap3 client_strategy from sync to sync-restartable
* Deprecation warning for {% load staticfiles %} and django.contrib.staticfiles
v1.0.0 - 2019-01-12
===================

View File

@ -11,7 +11,7 @@
# (c) 2015-2016 Valentin Samir
"""Default values for the app's settings"""
from django.conf import settings
from django.contrib.staticfiles.templatetags.staticfiles import static
from django.templatetags.static import static
from django.utils.translation import ugettext_lazy as _
from importlib import import_module

View File

@ -1,4 +1,4 @@
{% load i18n %}{% load staticfiles %}{% get_current_language as LANGUAGE_CODE %}<!DOCTYPE html>
{% load i18n %}{% load static %}{% get_current_language as LANGUAGE_CODE %}<!DOCTYPE html>
<html{% if LANGUAGE_CODE %} lang="{{LANGUAGE_CODE}}"{% endif %}>
<head>
<meta charset="utf-8">

View File

@ -1,5 +1,5 @@
{% extends "cas_server/base.html" %}
{% load staticfiles %}
{% load static %}
{% load i18n %}
{% block content %}
<div class="alert alert-success" role="alert">{{logout_msg}}</div>

View File

@ -1,5 +1,5 @@
{% extends "cas_server/base.html" %}
{% load staticfiles %}
{% load static %}
{% load i18n %}
{% block content %}