diff --git a/config/settings.py b/config/settings.py index 88f50e1..0c65050 100644 --- a/config/settings.py +++ b/config/settings.py @@ -35,6 +35,8 @@ TEMPLATES = [{ WSGI_APPLICATION = "config.wsgi.application" ASGI_APPLICATION = "config.asgi.application" STATIC_URL = "static/" +TIME_ZONE = 'Europe/Amsterdam' +USE_TZ = True STATICFILES_DIRS = [BASE_DIR / "dist"] if (BASE_DIR / "dist").exists() else [] DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3'}} diff --git a/projects/templates/projects/list.html b/projects/templates/projects/list.html index 775c18c..854b255 100644 --- a/projects/templates/projects/list.html +++ b/projects/templates/projects/list.html @@ -1 +1 @@ -{% extends 'core/base.html' %}{% block content %}

Projects

Boards and specifications across your workspace.

New project

Active · Archived

{% include 'projects/_project_list.html' %}
{% endblock %} +{% extends 'core/base.html' %}{% block content %}

Projects

Boards and specifications across your workspace.

New project

Active · Archived

{% include 'projects/_project_list.html' %}
{% endblock %} diff --git a/projects/templatetags/project_markdown.py b/projects/templatetags/project_markdown.py index a769188..d9a5ec9 100644 --- a/projects/templatetags/project_markdown.py +++ b/projects/templatetags/project_markdown.py @@ -8,5 +8,5 @@ register = template.Library() @register.filter def safe_markdown(value): - html = markdown.markdown(value or '', extensions=['extra', 'fenced_code', 'tables', 'sane_lists']) + html = markdown.markdown(value or '', extensions=['extra', 'fenced_code', 'tables', 'sane_lists', 'pymdownx.tasklist']) return mark_safe(nh3.clean(html, tags={'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'pre', 'code', 'blockquote', 'strong', 'em', 'a', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'hr', 'br', 'input'}, attributes={'a': {'href', 'title'}, 'input': {'type', 'checked', 'disabled'}}, url_schemes={'https', 'http', 'mailto'})) diff --git a/projects/tests.py b/projects/tests.py index accb607..1a13fbb 100644 --- a/projects/tests.py +++ b/projects/tests.py @@ -69,6 +69,12 @@ class ProjectWorkflowTests(TestCase): self.assertIn('

Hello

', response.content.decode()) self.assertNotIn('