Compare commits
3 commits
8d0bd23f31
...
94a49a494e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
94a49a494e | ||
|
|
900e01da1b | ||
|
|
fb4bd446d4 |
|
|
@ -1,4 +1,22 @@
|
|||
"""
|
||||
Barn Web App - A collection of web-apps for my family's personal use,
|
||||
including a recipe database.
|
||||
Copyright © 2023 Benjamin Stadlbauer
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at
|
||||
your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
||||
General Public License for more details.
|
||||
|
||||
This program comes with a copy of the GNU Affero General Public License
|
||||
file at the root of this project.
|
||||
|
||||
|
||||
ASGI config for stadlbauer project.
|
||||
|
||||
It exposes the ASGI callable as a module-level variable named ``application``.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,22 @@
|
|||
"""
|
||||
Barn Web App - A collection of web-apps for my family's personal use,
|
||||
including a recipe database.
|
||||
Copyright © 2023 Benjamin Stadlbauer
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at
|
||||
your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
||||
General Public License for more details.
|
||||
|
||||
This program comes with a copy of the GNU Affero General Public License
|
||||
file at the root of this project.
|
||||
"""
|
||||
|
||||
from django.contrib.auth.forms import UserCreationForm
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,22 @@
|
|||
"""
|
||||
Barn Web App - A collection of web-apps for my family's personal use,
|
||||
including a recipe database.
|
||||
Copyright © 2023 Benjamin Stadlbauer
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at
|
||||
your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
||||
General Public License for more details.
|
||||
|
||||
This program comes with a copy of the GNU Affero General Public License
|
||||
file at the root of this project.
|
||||
|
||||
|
||||
Django settings for stadlbauer project.
|
||||
|
||||
Generated by 'django-admin startproject' using Django 4.1.4.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,23 @@
|
|||
"""stadlbauer URL Configuration
|
||||
"""
|
||||
Barn Web App - A collection of web-apps for my family's personal use,
|
||||
including a recipe database.
|
||||
Copyright © 2023 Benjamin Stadlbauer
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at
|
||||
your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
||||
General Public License for more details.
|
||||
|
||||
This program comes with a copy of the GNU Affero General Public License
|
||||
file at the root of this project.
|
||||
|
||||
|
||||
stadlbauer URL Configuration
|
||||
|
||||
The `urlpatterns` list routes URLs to views. For more information please see:
|
||||
https://docs.djangoproject.com/en/4.1/topics/http/urls/
|
||||
|
|
|
|||
|
|
@ -1,3 +1,22 @@
|
|||
"""
|
||||
Barn Web App - A collection of web-apps for my family's personal use,
|
||||
including a recipe database.
|
||||
Copyright © 2023 Benjamin Stadlbauer
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at
|
||||
your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
||||
General Public License for more details.
|
||||
|
||||
This program comes with a copy of the GNU Affero General Public License
|
||||
file at the root of this project.
|
||||
"""
|
||||
|
||||
from .forms import SignupForm
|
||||
from django.shortcuts import render
|
||||
from django.urls import reverse
|
||||
|
|
|
|||
|
|
@ -1,4 +1,22 @@
|
|||
"""
|
||||
Barn Web App - A collection of web-apps for my family's personal use,
|
||||
including a recipe database.
|
||||
Copyright © 2023 Benjamin Stadlbauer
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at
|
||||
your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
||||
General Public License for more details.
|
||||
|
||||
This program comes with a copy of the GNU Affero General Public License
|
||||
file at the root of this project.
|
||||
|
||||
|
||||
WSGI config for stadlbauer project.
|
||||
|
||||
It exposes the WSGI callable as a module-level variable named ``application``.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,21 @@
|
|||
{% comment %}
|
||||
Barn Web App - A collection of web-apps for my family's personal use,
|
||||
including a recipe database.
|
||||
Copyright © 2023 Benjamin Stadlbauer
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at
|
||||
your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
||||
General Public License for more details.
|
||||
|
||||
This program comes with a copy of the GNU Affero General Public License
|
||||
file at the root of this project.
|
||||
{% endcomment %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,22 @@
|
|||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
Barn Web App - A collection of web-apps for my family's personal use,
|
||||
including a recipe database.
|
||||
Copyright © 2023 Benjamin Stadlbauer
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at
|
||||
your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
||||
General Public License for more details.
|
||||
|
||||
This program comes with a copy of the GNU Affero General Public License
|
||||
file at the root of this project.
|
||||
{% endcomment %}
|
||||
|
||||
{% block head %}
|
||||
{% load static %}
|
||||
|
|
@ -17,6 +35,9 @@
|
|||
<li><a href="{% url 'new-user' %}">Create account</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="https://benjamin.stadlbauer.wien/git/Barn/django-project">Source code on Forgejo</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<main>
|
||||
{% block main %}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,22 @@
|
|||
{% extends "base_main.html" %}
|
||||
{% comment %}
|
||||
Barn Web App - A collection of web-apps for my family's personal use,
|
||||
including a recipe database.
|
||||
Copyright © 2023 Benjamin Stadlbauer
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at
|
||||
your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
||||
General Public License for more details.
|
||||
|
||||
This program comes with a copy of the GNU Affero General Public License
|
||||
file at the root of this project.
|
||||
{% endcomment %}
|
||||
{% block title %}Barn{% endblock %}
|
||||
{% block main %}
|
||||
<h1>Barn</h1>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,22 @@
|
|||
{% extends "base_main.html" %}
|
||||
{% comment %}
|
||||
Barn Web App - A collection of web-apps for my family's personal use,
|
||||
including a recipe database.
|
||||
Copyright © 2023 Benjamin Stadlbauer
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at
|
||||
your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
||||
General Public License for more details.
|
||||
|
||||
This program comes with a copy of the GNU Affero General Public License
|
||||
file at the root of this project.
|
||||
{% endcomment %}
|
||||
|
||||
{% block main %}
|
||||
|
||||
|
|
@ -20,17 +38,7 @@
|
|||
|
||||
<form action="{% url 'login' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ form.username.label_tag }}</td>
|
||||
<td>{{ form.username }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.password.label_tag }}</td>
|
||||
<td>{{ form.password }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{{ form.as_div }}
|
||||
<input type="submit" value="Login">
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,22 @@
|
|||
{% extends "base_main.html" %}
|
||||
{% comment %}
|
||||
Barn Web App - A collection of web-apps for my family's personal use,
|
||||
including a recipe database.
|
||||
Copyright © 2023 Benjamin Stadlbauer
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at
|
||||
your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
||||
General Public License for more details.
|
||||
|
||||
This program comes with a copy of the GNU Affero General Public License
|
||||
file at the root of this project.
|
||||
{% endcomment %}
|
||||
|
||||
{% block main %}
|
||||
{% if form.errors %}
|
||||
|
|
@ -16,28 +34,7 @@
|
|||
|
||||
<form method="post" action="{% url 'new-user' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ form.username.label_tag }}</td>
|
||||
<td>{{ form.username }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.first_name.label_tag }}</td>
|
||||
<td>{{ form.first_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.last_name.label_tag }}</td>
|
||||
<td>{{ form.last_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.password1.label_tag }}</td>
|
||||
<td>{{ form.password1 }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.password2.label_tag }}</td>
|
||||
<td>{{ form.password2 }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{{ form.as_div }}
|
||||
<input type="submit" value="Create account">
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,22 @@
|
|||
{% extends "base_main.html" %}
|
||||
{% comment %}
|
||||
Barn Web App - A collection of web-apps for my family's personal use,
|
||||
including a recipe database.
|
||||
Copyright © 2023 Benjamin Stadlbauer
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or (at
|
||||
your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
||||
General Public License for more details.
|
||||
|
||||
This program comes with a copy of the GNU Affero General Public License
|
||||
file at the root of this project.
|
||||
{% endcomment %}
|
||||
{% block title %}Profile {{ user.username }}{% endblock %}
|
||||
{% block main %}
|
||||
<h1>Profile {{ user.username }}</h1>
|
||||
|
|
|
|||
Loading…
Reference in a new issue