Merge pull request 'Odstranění starých dependencí a okomentování většiny stávajících' (!42) from odstraneni_starych_dependenci into master
Reviewed-on: #42
This commit is contained in:
commit
b8f2e1da3b
9 changed files with 17 additions and 65 deletions
|
@ -87,7 +87,6 @@ TEMPLATES = [
|
||||||
'django.contrib.auth.context_processors.auth',
|
'django.contrib.auth.context_processors.auth',
|
||||||
'django.template.context_processors.request',
|
'django.template.context_processors.request',
|
||||||
'django.contrib.messages.context_processors.messages',
|
'django.contrib.messages.context_processors.messages',
|
||||||
'sekizai.context_processors.sekizai',
|
|
||||||
'header_fotky.context_processors.vzhled',
|
'header_fotky.context_processors.vzhled',
|
||||||
'various.context_processors.rozliseni',
|
'various.context_processors.rozliseni',
|
||||||
'various.context_processors.april',
|
'various.context_processors.april',
|
||||||
|
@ -110,7 +109,6 @@ INSTALLED_APPS = (
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
'sekizai',
|
|
||||||
'reversion',
|
'reversion',
|
||||||
'django_countries',
|
'django_countries',
|
||||||
'solo',
|
'solo',
|
||||||
|
@ -120,9 +118,6 @@ INSTALLED_APPS = (
|
||||||
'dal',
|
'dal',
|
||||||
'dal_select2',
|
'dal_select2',
|
||||||
|
|
||||||
'crispy_forms',
|
|
||||||
'django_comments',
|
|
||||||
|
|
||||||
'django.contrib.flatpages',
|
'django.contrib.flatpages',
|
||||||
'django.contrib.humanize',
|
'django.contrib.humanize',
|
||||||
|
|
||||||
|
|
|
@ -199,15 +199,6 @@ h1 {
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Comments */
|
|
||||||
|
|
||||||
#id_comment {
|
|
||||||
width: 100%;
|
|
||||||
height: 6em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Headline & Header */
|
/* Headline & Header */
|
||||||
|
|
||||||
#title { /*dělá blbosti šířka, je to kvůli fixed pozici, zatím natvrdo, vyřešit*/
|
#title { /*dělá blbosti šířka, je to kvůli fixed pozici, zatím natvrdo, vyřešit*/
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% load static sekizai_tags %}
|
{% load static %}
|
||||||
{% load sitetree %}
|
{% load sitetree %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang='cs'>
|
<html lang='cs'>
|
||||||
|
@ -7,7 +7,6 @@
|
||||||
<title>{% block title %}{% block nadpis1a %}🦊{% endblock %} | Korespondenční seminář M&M{% endblock title %}</title>
|
<title>{% block title %}{% block nadpis1a %}🦊{% endblock %} | Korespondenční seminář M&M{% endblock title %}</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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">
|
<link rel="shortcut icon" href="{% static 'images/MATFYZ_MM_barevne.svg' %}" type="image/x-icon">
|
||||||
{# {% render_block css %}#}
|
|
||||||
{% block custom_css %}{% endblock %}
|
{% block custom_css %}{% endblock %}
|
||||||
<link href="{% static 'css/bootstrap-theme.css' %}" rel="stylesheet">
|
<link href="{% static 'css/bootstrap-theme.css' %}" rel="stylesheet">
|
||||||
<link href="{% static 'css/bootstrap.css' %}" rel="stylesheet">
|
<link href="{% static 'css/bootstrap.css' %}" rel="stylesheet">
|
||||||
|
@ -189,6 +188,6 @@
|
||||||
walkText(document.body);
|
walkText(document.body);
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% render_block "js" %}
|
{% block js %}{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -13,7 +13,6 @@ Soubor sloužící jako základní „router“, tj. zde se includují veškeré
|
||||||
- :mod:`api.urls`
|
- :mod:`api.urls`
|
||||||
- :mod:`treenode.urls`
|
- :mod:`treenode.urls`
|
||||||
- :mod:`aesop.urls`
|
- :mod:`aesop.urls`
|
||||||
- ``comments_dj/`` :mod:`django_comments.urls`
|
|
||||||
"""
|
"""
|
||||||
from django.urls import path, include
|
from django.urls import path, include
|
||||||
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
||||||
|
@ -62,9 +61,6 @@ urlpatterns = [
|
||||||
# Aesop (ma vlastni podadresare)
|
# Aesop (ma vlastni podadresare)
|
||||||
path('', include('aesop.urls')),
|
path('', include('aesop.urls')),
|
||||||
|
|
||||||
# Comments (interni i verejne)
|
|
||||||
path('comments_dj/', include('django_comments.urls')),
|
|
||||||
|
|
||||||
# REST API
|
# REST API
|
||||||
# path('api/', include(router.urls)),
|
# path('api/', include(router.urls)),
|
||||||
|
|
||||||
|
|
|
@ -1,43 +1,31 @@
|
||||||
-c constraints.txt
|
-c constraints.txt
|
||||||
# basic libs
|
# basic libs
|
||||||
|
|
||||||
psycopg2
|
psycopg2 # PostgreSQL adaptér
|
||||||
html5lib
|
ipython # Interaktivní shell
|
||||||
ipython
|
Unidecode # Přepisuje unicode do ASCII (např. soubory nebo e-maily)
|
||||||
Pillow
|
Pillow
|
||||||
pilkit>=3.0 # Kvůli kompatibilitě s Pillow>=10.0.0
|
pilkit>=3.0 # Kvůli kompatibilitě s Pillow>=10.0.0
|
||||||
pytz
|
|
||||||
six
|
|
||||||
pexpect
|
|
||||||
traitlets
|
|
||||||
Unidecode
|
|
||||||
|
|
||||||
# Django and modules
|
# Django and modules
|
||||||
|
|
||||||
Django<5.0
|
Django<5.0
|
||||||
#django-bootstrap-sass
|
#django-bootstrap-sass
|
||||||
django-mptt
|
django-reversion # Version control na datech v databázi
|
||||||
django-reversion
|
django-countries # Políčko ve formu / field v modelu ohledně států
|
||||||
django-sekizai
|
django-solo # Singleton model (speciálně Nastavení)
|
||||||
django-countries
|
django-ckeditor # Editor htmlka (hlavně v adminu u flatpages)
|
||||||
django-solo
|
|
||||||
django-ckeditor
|
|
||||||
django-cleanup # Uklízí media/ od smazaných „databázových“ souborů
|
django-cleanup # Uklízí media/ od smazaných „databázových“ souborů
|
||||||
django-flat-theme
|
django-taggit # Taggy v djangu (speciálně zaměření problémů)
|
||||||
django-taggit
|
django-autocomplete-light>=3.9.0 # Automatické doplňování (problémů, účastníků, …) ve formulářích
|
||||||
django-autocomplete-light>=3.9.0
|
django-imagekit # Všechny možné obrázky v Djangu
|
||||||
django-crispy-forms
|
django-polymorphic # Polymorfismus na django modelech (hlavně Problém nebo treenode)
|
||||||
django-imagekit
|
django-sitetree # Struktura stránek, hlavně pro meníčko
|
||||||
django-polymorphic
|
django_reverse_admin # Lepší handlování OneToOne fieldů v adminu
|
||||||
django-sitetree
|
|
||||||
django_reverse_admin
|
|
||||||
django-rest-framework
|
django-rest-framework
|
||||||
django-webpack-loader
|
django-webpack-loader
|
||||||
django-rest-polymorphic
|
django-rest-polymorphic
|
||||||
|
|
||||||
# Comments
|
|
||||||
django-contrib-comments
|
|
||||||
|
|
||||||
# debug tools/extensions
|
# debug tools/extensions
|
||||||
|
|
||||||
django-debug-toolbar
|
django-debug-toolbar
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load comments %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div {% if not problem.verejne and user.je_org %}class="mam-org-only"{% endif %}>
|
<div {% if not problem.verejne and user.je_org %}class="mam-org-only"{% endif %}>
|
||||||
{% block problem %}
|
{% block problem %}
|
||||||
|
@ -13,10 +11,6 @@
|
||||||
<h2>Text - org</h2>
|
<h2>Text - org</h2>
|
||||||
{{ problem.text_org |safe }}
|
{{ problem.text_org |safe }}
|
||||||
|
|
||||||
<h2>Diskuse - org</h2>
|
|
||||||
{% render_comment_list for object %}
|
|
||||||
{% render_comment_form for object %}
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
from django import template
|
from django import template
|
||||||
from django.utils.safestring import mark_safe
|
from django.utils.safestring import mark_safe
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from pytz import timezone
|
|
||||||
from mamweb.settings import TIME_ZONE
|
from mamweb.settings import TIME_ZONE
|
||||||
import logging
|
import logging
|
||||||
register = template.Library()
|
register = template.Library()
|
||||||
|
|
|
@ -4,7 +4,6 @@ import datetime
|
||||||
|
|
||||||
from django.contrib.auth.models import Permission
|
from django.contrib.auth.models import Permission
|
||||||
from django.contrib.auth.models import Group
|
from django.contrib.auth.models import Group
|
||||||
from pytz import timezone
|
|
||||||
import random
|
import random
|
||||||
import lorem
|
import lorem
|
||||||
import django.contrib.auth
|
import django.contrib.auth
|
||||||
|
@ -177,13 +176,13 @@ def gen_organizatori(rnd, osoby, last_rocnik):
|
||||||
year=1993 + pusobnost,
|
year=1993 + pusobnost,
|
||||||
month=rnd.randint(1, 12),
|
month=rnd.randint(1, 12),
|
||||||
day=rnd.randint(1, 28),
|
day=rnd.randint(1, 28),
|
||||||
tzinfo=timezone('CET'),
|
tzinfo=datetime.timezone.utc,
|
||||||
)
|
)
|
||||||
do = datetime.datetime(
|
do = datetime.datetime(
|
||||||
year=od.year + rnd.randint(1, 6),
|
year=od.year + rnd.randint(1, 6),
|
||||||
month=rnd.randint(1, 12),
|
month=rnd.randint(1, 12),
|
||||||
day=rnd.randint(1, 28),
|
day=rnd.randint(1, 28),
|
||||||
tzinfo=timezone('CET'),
|
tzinfo=datetime.timezone.utc,
|
||||||
)
|
)
|
||||||
#aktualni organizatori jeste nemaji vyplnene organizuje_do
|
#aktualni organizatori jeste nemaji vyplnene organizuje_do
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,10 @@
|
||||||
{% extends "seminar/archiv/base.html" %}
|
{% extends "seminar/archiv/base.html" %}
|
||||||
{% load static %}
|
{% 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 %}
|
{% block custom_css %}
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'css/mamweb-dev.css' %}" />
|
<link rel="stylesheet" type="text/css" href="{% static 'css/mamweb-dev.css' %}" />
|
||||||
{% endblock custom_css %}
|
{% endblock custom_css %}
|
||||||
|
|
||||||
{% load comments %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for obj in object_list %}
|
{% for obj in object_list %}
|
||||||
|
|
Loading…
Reference in a new issue