Odstranění django comments, data jsou v /akce/mam/www/old_data/django_comments.json.gz

This commit is contained in:
Jonas Havelka 2023-12-11 21:07:18 +01:00
parent ffa0c682f4
commit 6cb41a1263
6 changed files with 0 additions and 25 deletions

View file

@ -121,7 +121,6 @@ INSTALLED_APPS = (
'dal_select2', 'dal_select2',
'crispy_forms', 'crispy_forms',
'django_comments',
'django.contrib.flatpages', 'django.contrib.flatpages',
'django.contrib.humanize', 'django.contrib.humanize',

View file

@ -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*/

View file

@ -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)),

View file

@ -35,9 +35,6 @@ 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

View file

@ -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 %}

View file

@ -12,8 +12,6 @@ dfsdfs
<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 %}