Fix deprecation warning for {% load staticfiles %} and django.contrib.staticfiles
This commit is contained in:
parent
4025fcbf11
commit
378f70fac9
@ -17,8 +17,9 @@ Added
|
|||||||
Fixes
|
Fixes
|
||||||
-----
|
-----
|
||||||
|
|
||||||
* Fix checkbox position on the login page
|
* Checkbox position on the login page
|
||||||
* Set ldap3 client_strategy from sync to sync-restartable
|
* Set ldap3 client_strategy from sync to sync-restartable
|
||||||
|
* Deprecation warning for {% load staticfiles %} and django.contrib.staticfiles
|
||||||
|
|
||||||
v1.0.0 - 2019-01-12
|
v1.0.0 - 2019-01-12
|
||||||
===================
|
===================
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
# (c) 2015-2016 Valentin Samir
|
# (c) 2015-2016 Valentin Samir
|
||||||
"""Default values for the app's settings"""
|
"""Default values for the app's settings"""
|
||||||
from django.conf import 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 django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
|
@ -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 %}>
|
<html{% if LANGUAGE_CODE %} lang="{{LANGUAGE_CODE}}"{% endif %}>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{% extends "cas_server/base.html" %}
|
{% extends "cas_server/base.html" %}
|
||||||
{% load staticfiles %}
|
{% load static %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="alert alert-success" role="alert">{{logout_msg}}</div>
|
<div class="alert alert-success" role="alert">{{logout_msg}}</div>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{% extends "cas_server/base.html" %}
|
{% extends "cas_server/base.html" %}
|
||||||
{% load staticfiles %}
|
{% load static %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
Loading…
Reference in New Issue
Block a user