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

start first tool

parent 198ed18c
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
PYTHON = python
VENV = .venv
PORT = 8009
PORT = 8012
SETTINGS = rybicka.settings.dev
.PHONY: help venv install build run shell migrations migrate
......
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class MemberGroupSizeCalcConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "member_group_size_calc"
from django.db import models
# Create your models here.
{% extends "shared/base.html" %}
{% block name %}Kalkulačka velikosti skupiny členů{% endblock %}
{% block description %}TODO - Description.{% endblock %}
{% block content %}
aaa
{% endblock %}
from django.test import TestCase
# Create your tests here.
from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="member_group_size_calc_index")
]
from django.shortcuts import render
# Create your views here.
def index(request):
return render(
request,
"member_group_size_calc/index.html"
)
......@@ -46,7 +46,10 @@ INSTALLED_APPS = [
"django.contrib.messages",
"django.contrib.staticfiles",
"shared"
"webpack_loader",
"shared",
"member_group_size_calc",
]
MIDDLEWARE = [
......
......@@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import include, path
urlpatterns = [
path("", include("member_group_size_calc.urls")),
path('admin/', admin.site.urls),
]
{% load render_bundle from webpack_loader %}
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block name %}{% endblock %}</title>
<meta name="description" content="{% block description %}{% endblock %}">
{% render_bundle "main" %}
{% block head %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment