Commit ee6135fd authored by dorothee.kueppers's avatar dorothee.kueppers
Browse files

todo app added,

sqlite3 file,
bootstrap,
landing_page under '/start',
requirements.txt
parent cac002a6
File added
......@@ -37,6 +37,8 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'todo',
'bootstrap4'
]
MIDDLEWARE = [
......
......@@ -16,6 +16,9 @@ Including another URLconf
from django.contrib import admin
from django.urls import path
from todo.views import get_landing_page
urlpatterns = [
path('admin/', admin.site.urls),
path('start/', get_landing_page, name='landing_page')
]
alabaster==0.7.12
asgiref==3.2.9
Babel==2.8.0
beautifulsoup4==4.9.1
certifi==2020.4.5.2
chardet==3.0.4
Django==3.0.7
django-bootstrap4==2.1.0
docutils==0.16
idna==2.9
imagesize==1.2.0
importlib-metadata==1.6.1
Jinja2==2.11.2
MarkupSafe==1.1.1
packaging==20.4
Pygments==2.6.1
pyparsing==2.4.7
pytz==2020.1
requests==2.24.0
six==1.15.0
snowballstemmer==2.0.0
soupsieve==2.0.1
Sphinx==3.1.1
sphinx-rtd-theme==0.4.3
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==1.0.3
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.4
sqlparse==0.3.1
urllib3==1.25.9
zipp==3.1.0
{% load bootstrap4 %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ page_title }}</title>
{% bootstrap_css %}
{% bootstrap_javascript jquery='full' %}
</head>
<body>
{% block header %}
{#Navigation#}
<nav class="navbar navbar-expand-lg navbar-light bg-light">
{# <a class="navbar-brand" href="#">Navbar</a>#}
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">neues Todo <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">alle Todos</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">alte Todos</a>
</li>
</ul>
</div>
</nav>
{% endblock %}
{% bootstrap_messages %}
<div class="container">
<br>
<h2>{{ page_title }}</h2>
{% block content %}
Dummy aus basis-Template
{% endblock %}
</div>
{% block footer %}
<nav class="navbar fixed-bottom navbar-light bg-light">
<a class="navbar-brand" href="#">Impressum</a>
</nav>
{% endblock %}
</body>
</html>
\ No newline at end of file
{% extends 'todo/base.html' %}
{% block content %}
<div class="row justify-content-center m-2">
<a class="btn btn-primary btn-lg" href="#">LOSLEGEN</a>
</div>
<div class="row justify-content-center m-2">
<a class="btn btn-primary btn-lg" href="#">TO DO ANLEGEN</a>
</div>
<div class="row justify-content-center m-2">
<a class="btn btn-primary btn-lg" href="#">TO DOS ANZEIGEN</a>
</div>
<div class="row justify-content-center m-2">
<a class="btn btn-primary btn-lg" href="#">ARCHIV</a>
</div>
{% endblock %}
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class TodoConfig(AppConfig):
name = 'todo'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.shortcuts import render
def get_landing_page(request):
return render(request, 'todo/landing_page.html', {'page_title':'Feierabend!'})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment