Skip to content

Commit

Permalink
fix: django 3.0 staticfiles deprecated, use static
Browse files Browse the repository at this point in the history
As is done in #626.
  • Loading branch information
wesleyboar committed May 1, 2023
1 parent ada0e8a commit d5666f4
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion taccsite_cms/templates/assets_core.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{# SEE: ./assets_core.md #}
{% load staticfiles %}
{% load static %}

<style>
{# https://confluence.tacc.utexas.edu/x/b53tDg #}
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/assets_core_cms.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{# SEE: ./assets_core.md #}
{% load staticfiles %}
{% load static %}

<style>
@import url("{% static 'site_cms/css/build/core-styles.cms.css' %}") layer(base);
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/assets_core_delayed.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{# SEE: ./assets_core.md #}
{% load staticfiles %}
{% load static %}

{# FAQ: Bootstrap can use jQuery, Popper, then its own script #}
{# SEE: https://getbootstrap.com/docs/4.0/getting-started/introduction/#starter-template #}
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/assets_custom.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load staticfiles %}
{% load static %}

{# Load assets as external files, to cache independently of markup. #}
{% comment %}
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/assets_font.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{# Load web fonts early #}
{# SEE: https://confluence.tacc.utexas.edu/x/B4COCw #}
{% load staticfiles %}
{% load static %}



Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/assets_site.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load staticfiles %}
{% load static %}

{# Load assets as external files, to cache independently of markup. #}
{% comment %}
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load cms_tags staticfiles sekizai_tags cache i18n meta %}
{% load cms_tags static sekizai_tags cache i18n meta %}
{% get_current_language as lang_code %}
<!doctype html>
<html
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/debug_js.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load staticfiles %}
{% load static %}

{# Let all other scripts know that we are in debug mode #}
{# CAVEAT: To be effectual, this file must load before other scripts (no `async`, no `defer`) #}
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/guide.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "fullwidth.html" %}
{% load cms_tags staticfiles %}
{% load cms_tags static %}

{% block assets_custom %}
{{ block.super }}
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/guides/getting_started.tam.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "guide.html" %}
{% load cms_tags staticfiles tacc_uri_shortcuts %}
{% load cms_tags static tacc_uri_shortcuts %}

{% block guide %}
{% site_uri as site_uri %}
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/guides/getting_started.v2.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "guide.html" %}
{% load cms_tags staticfiles tacc_uri_shortcuts %}
{% load cms_tags static tacc_uri_shortcuts %}

{% block guide %}
{% site_uri as site_uri %}
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/header_branding.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{# @var brands, className #}
{% load staticfiles custom_portal_settings %}
{% load static custom_portal_settings %}

{% with settings.BRANDING as brands %}
<div id="header-branding" class="branding-header {{className}}">
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/header_logo.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{# @var logo, className #}
{% load staticfiles custom_portal_settings %}
{% load static custom_portal_settings %}

{% with settings.LOGO as logo %}
{% with filename=logo|index:1 selectors=logo|index:2 targeturl=logo|index:3 targettype=logo|index:4 accessibility=logo|index:5 corstype=logo|index:6 visibility=logo|index:7 %}
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/home_portal.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "fullwidth.html" %}
{% load cms_tags staticfiles %}
{% load cms_tags static %}

{% block assets_custom %}
{{ block.super }}
Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/nav_search.raw.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{# @var settings #}

{% load staticfiles %}
{% load static %}
<!-- FAQ: This template loads independently at a unique url (see `urls.py`)
so Portal and User Guide can render this markup into their markup. -->

Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/snippets/typography-guide.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load staticfiles %}
{% load static %}

<link rel="stylesheet" href="{% static 'site_cms/css/build/template.guide.css' %}">

Expand Down
2 changes: 1 addition & 1 deletion taccsite_cms/templates/style_guide.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "standard.html" %}
{% load cms_tags staticfiles %}
{% load cms_tags static %}

{% block assets_custom %}
{{ block.super }}
Expand Down
2 changes: 1 addition & 1 deletion taccsite_custom
Submodule taccsite_custom updated 229 files

0 comments on commit d5666f4

Please sign in to comment.