Browse Source

Odstraněno sekizai (nepoužívalo se, zbytečně zesložiťuje, jde to dělat i jinak a házelo někdy někde chyby)

pull/42/head
Jonas Havelka 1 year ago
parent
commit
46fd51e7d9
  1. 2
      mamweb/settings_common.py
  2. 5
      mamweb/templates/base.html
  3. 1
      requirements.txt
  4. 7
      treenode/templates/treenode/orphanage.html

2
mamweb/settings_common.py

@ -87,7 +87,6 @@ TEMPLATES = [
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.request',
'django.contrib.messages.context_processors.messages',
'sekizai.context_processors.sekizai',
'header_fotky.context_processors.vzhled',
'various.context_processors.rozliseni',
'various.context_processors.april',
@ -110,7 +109,6 @@ INSTALLED_APPS = (
'django.contrib.auth',
# Utilities
'sekizai',
'reversion',
'django_countries',
'solo',

5
mamweb/templates/base.html

@ -1,4 +1,4 @@
{% load static sekizai_tags %}
{% load static %}
{% load sitetree %}
<!DOCTYPE html>
<html lang='cs'>
@ -7,7 +7,6 @@
<title>{% block title %}{% block nadpis1a %}🦊{% endblock %} | Korespondenční seminář M&amp;M{% endblock title %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="{% static 'images/MATFYZ_MM_barevne.svg' %}" type="image/x-icon">
{# {% render_block css %}#}
{% block custom_css %}{% endblock %}
<link href="{% static 'css/bootstrap-theme.css' %}" rel="stylesheet">
<link href="{% static 'css/bootstrap.css' %}" rel="stylesheet">
@ -189,6 +188,6 @@
walkText(document.body);
</script>
{% endif %}
{% render_block "js" %}
{% block js %}{% endblock %}
</body>
</html>

1
requirements.txt

@ -12,7 +12,6 @@ pilkit>=3.0 # Kvůli kompatibilitě s Pillow>=10.0.0
Django<5.0
#django-bootstrap-sass
django-reversion # Version control na datech v databázi
django-sekizai # Vylepšení bloků v templatech
django-countries # Políčko ve formu / field v modelu ohledně států
django-solo # Singleton model (speciálně Nastavení)
django-ckeditor # Editor htmlka (hlavně v adminu u flatpages)

7
treenode/templates/treenode/orphanage.html

@ -1,12 +1,5 @@
{% extends "seminar/archiv/base.html" %}
{% load static %}
{% load sekizai_tags %}
{# toto z nejakeho duvodu nefunguje #}
{% addtoblock css %}
dfsdfs
<link rel="stylesheet" type="text/css" href="{% static 'css/mamweb-dev.css' %}" />
{% endaddtoblock "css" %}
{% block custom_css %}
<link rel="stylesheet" type="text/css" href="{% static 'css/mamweb-dev.css' %}" />

Loading…
Cancel
Save