Compare commits
3 commits
94a49a494e
...
8d0bd23f31
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d0bd23f31 | ||
|
|
b2fbd7bc9f | ||
|
|
1e0014b4ea |
|
|
@ -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.
|
ASGI config for stadlbauer project.
|
||||||
|
|
||||||
It exposes the ASGI callable as a module-level variable named ``application``.
|
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.forms import UserCreationForm
|
||||||
from django.contrib.auth.models import User
|
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.
|
Django settings for stadlbauer project.
|
||||||
|
|
||||||
Generated by 'django-admin startproject' using Django 4.1.4.
|
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:
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
||||||
https://docs.djangoproject.com/en/4.1/topics/http/urls/
|
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 .forms import SignupForm
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
from django.urls import reverse
|
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.
|
WSGI config for stadlbauer project.
|
||||||
|
|
||||||
It exposes the WSGI callable as a module-level variable named ``application``.
|
It exposes the WSGI callable as a module-level variable named ``application``.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,21 @@
|
||||||
|
{#
|
||||||
|
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.
|
||||||
|
#}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,21 @@
|
||||||
|
{#
|
||||||
|
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.
|
||||||
|
#}
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
|
|
@ -17,6 +35,9 @@
|
||||||
<li><a href="{% url 'new-user' %}">Create account</a></li>
|
<li><a href="{% url 'new-user' %}">Create account</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://benjamin.stadlbauer.wien/git/Barn/django-project">Source code on Forgejo</a></li>
|
||||||
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<main>
|
<main>
|
||||||
{% block main %}
|
{% block main %}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,21 @@
|
||||||
|
{#
|
||||||
|
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.
|
||||||
|
#}
|
||||||
{% extends "base_main.html" %}
|
{% extends "base_main.html" %}
|
||||||
{% block title %}Barn{% endblock %}
|
{% block title %}Barn{% endblock %}
|
||||||
{% block main %}
|
{% block main %}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,21 @@
|
||||||
|
{#
|
||||||
|
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.
|
||||||
|
#}
|
||||||
{% extends "base_main.html" %}
|
{% extends "base_main.html" %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
|
|
@ -20,17 +38,7 @@
|
||||||
|
|
||||||
<form action="{% url 'login' %}" method="post">
|
<form action="{% url 'login' %}" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table>
|
{{ form.as_div }}
|
||||||
<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>
|
|
||||||
|
|
||||||
<input type="submit" value="Login">
|
<input type="submit" value="Login">
|
||||||
<input type="hidden" name="next" value="{{ next }}">
|
<input type="hidden" name="next" value="{{ next }}">
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,21 @@
|
||||||
|
{#
|
||||||
|
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.
|
||||||
|
#}
|
||||||
{% extends "base_main.html" %}
|
{% extends "base_main.html" %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
|
|
@ -16,28 +34,7 @@
|
||||||
|
|
||||||
<form method="post" action="{% url 'new-user' %}">
|
<form method="post" action="{% url 'new-user' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table>
|
{{ form.as_div }}
|
||||||
<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>
|
|
||||||
<input type="submit" value="Create account">
|
<input type="submit" value="Create account">
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,21 @@
|
||||||
|
{#
|
||||||
|
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.
|
||||||
|
#}
|
||||||
{% extends "base_main.html" %}
|
{% extends "base_main.html" %}
|
||||||
{% block title %}Profile {{ user.username }}{% endblock %}
|
{% block title %}Profile {{ user.username }}{% endblock %}
|
||||||
{% block main %}
|
{% block main %}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue