Skip to content
Snippets Groups Projects
Commit a7c542d3 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

wip - index page

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 131 additions and 0 deletions
{% load static wagtailcore_tags wagtailuserbar %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>
{% block title %}
{% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %}
{% endblock %}
{% block title_suffix %}
{% wagtail_site as current_site %}
{% if current_site and current_site.site_name %}- {{ current_site.site_name }}{% endif %}
{% endblock %}
</title>
{% if page.search_description %}
<meta name="description" content="{{ page.search_description }}" />
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1" />
{# Force all links in the live preview panel to be opened in a new tab #}
{% if request.in_preview_panel %}
<base target="_blank">
{% endif %}
{# Global stylesheets #}
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}">
{% block extra_css %}
{# Override this in templates to add extra stylesheets #}
{% endblock %}
</head>
<body>
{% wagtailuserbar %}
{% block content %}{% endblock %}
{% block extra_js %}{% endblock %}
</body>
</html>
from django.conf import settings
from django.urls import include, path
from django.contrib import admin
from wagtail.admin import urls as wagtailadmin_urls
from wagtail import urls as wagtail_urls
from wagtail.documents import urls as wagtaildocs_urls
urlpatterns = [
path("django-admin/", admin.site.urls),
path("admin/", include(wagtailadmin_urls)),
path("documents/", include(wagtaildocs_urls)),
]
if settings.DEBUG:
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
# Serve static and media files from development server
urlpatterns += staticfiles_urlpatterns()
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns = urlpatterns + [
# For anything not caught by a more specific rule above, hand over to
# Wagtail's page serving mechanism. This should be the last pattern in
# the list:
path("", include(wagtail_urls)),
# Alternatively, if you want Wagtail pages to be served from a subpath
# of your site, rather than the site root:
# path("pages/", include(wagtail_urls)),
]
"""
WSGI config for institut project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "institut.settings.dev")
application = get_wsgi_application()
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "institut.settings.dev")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
../acorn/bin/acorn
\ No newline at end of file
../browserslist/cli.js
\ No newline at end of file
../cssesc/bin/cssesc
\ No newline at end of file
../envinfo/dist/cli.js
\ No newline at end of file
../import-local/fixtures/cli.js
\ No newline at end of file
../jiti/bin/jiti.js
\ No newline at end of file
../nanoid/bin/nanoid.cjs
\ No newline at end of file
../which/bin/node-which
\ No newline at end of file
../resolve/bin/resolve
\ No newline at end of file
../sucrase/bin/sucrase
\ No newline at end of file
../sucrase/bin/sucrase-node
\ No newline at end of file
../tailwindcss/lib/cli.js
\ No newline at end of file
../tailwindcss/lib/cli.js
\ No newline at end of file
../terser/bin/terser
\ No newline at end of file
../update-browserslist-db/cli.js
\ No newline at end of file
../webpack/bin/webpack.js
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment