Compare commits
5 Commits
bf3004b6da
...
8631a0259e
Author | SHA1 | Date |
---|---|---|
Alie | 8631a0259e | |
Alie | d2e922e595 | |
Alie | 4d7b82ecb0 | |
Alie | 4e0aa95347 | |
Alie | 8c699e94bd |
22
personalWebpage/personalWebpage/settings.py → personalWebpage/settings.py
Normal file → Executable file
|
@ -22,12 +22,16 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
SECRET_KEY = 'django-insecure-&az@!wa-x@+y6cs#q(0ak6ju+3t$46o#5u)i4dn%t9ftn5@dx%'
|
SECRET_KEY = 'django-insecure-&az@!wa-x@+y6cs#q(0ak6ju+3t$46o#5u)i4dn%t9ftn5@dx%'
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
""" Prod
|
||||||
|
with open("/home/django/secret_key.txt") as f:
|
||||||
|
SECRET_KEY = f.read().strip()
|
||||||
|
"""
|
||||||
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = ["yari.fai.st", "127.0.0.1"]
|
||||||
|
CSRF_COOKIE_SECURE = True
|
||||||
|
SESSION_COOKIE_SECURE = True
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
@ -116,9 +120,17 @@ USE_TZ = True
|
||||||
# Static files (CSS, JavaScript, Images)
|
# Static files (CSS, JavaScript, Images)
|
||||||
# https://docs.djangoproject.com/en/4.2/howto/static-files/
|
# https://docs.djangoproject.com/en/4.2/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = 'static/'
|
STATIC_URL = "static/"
|
||||||
|
STATIC_ROOT = "static/"
|
||||||
|
|
||||||
|
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
|
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
|
||||||
|
|
||||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||||
|
|
||||||
|
# CSRF stuff
|
||||||
|
CSRF_TRUSTED_ORIGINS = [
|
||||||
|
'http://localhost:8000',
|
||||||
|
"https://yari.fai.st"
|
||||||
|
]
|
|
@ -1,24 +0,0 @@
|
||||||
{% load static %}
|
|
||||||
<div class="centerade">
|
|
||||||
<div>
|
|
||||||
<a href="https://fediring.net/previous?host=yari.fai.st">
|
|
||||||
<img
|
|
||||||
style="height: 30px; width: auto"
|
|
||||||
src="{% static 'icons/last.png' %}"
|
|
||||||
alt="LAST" />
|
|
||||||
</a>
|
|
||||||
<a href="https://fediring.net/">
|
|
||||||
<img
|
|
||||||
style="height: 30px; width: auto"
|
|
||||||
src="{% static 'icons/fediring.png' %}"
|
|
||||||
alt="FEDIRING" />
|
|
||||||
</a>
|
|
||||||
<a href="https://fediring.net/next?host=yari.fai.st">
|
|
||||||
<img
|
|
||||||
style="height: 30px; width: auto"
|
|
||||||
src="{% static 'icons/next.png' %}"
|
|
||||||
alt="NEXT" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<p>Fediring links</p>
|
|
||||||
</div>
|
|
|
@ -1,10 +0,0 @@
|
||||||
{% load static %}
|
|
||||||
<head>
|
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="{% static 'style.css' %}" />
|
|
||||||
<link
|
|
||||||
rel="icon"
|
|
||||||
href="{% static 'icon.png' %}" />
|
|
||||||
<title>{{ title }}</title>
|
|
||||||
</head>
|
|
|
@ -1,74 +0,0 @@
|
||||||
{% load static %}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
{% include "head.html" %}
|
|
||||||
<body id="index">
|
|
||||||
{% include "fediring.html" %}
|
|
||||||
<div id="noscript">
|
|
||||||
<div class="centercubeplease">
|
|
||||||
<h1>I'm bizcochito, hey!</h1>
|
|
||||||
<h2>-Pages:</h2>
|
|
||||||
<ul class="disclosure-closed">
|
|
||||||
<li><a href="signbook/">Signbook</a></li>
|
|
||||||
</ul>
|
|
||||||
<h2>-Banners</h2>
|
|
||||||
<div class="img">
|
|
||||||
{% for gif in banger_list %}
|
|
||||||
<img
|
|
||||||
style="max-height: 50px; width: auto"
|
|
||||||
src="{% static "icons/banner/" %}{{gif.name}}"
|
|
||||||
alt="{{gif.url}}"
|
|
||||||
/>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
<h2>-Funni gifs</h2>
|
|
||||||
<div class="img">
|
|
||||||
{% for gif in gif_list %}
|
|
||||||
<img
|
|
||||||
style="max-height: 50px; width: auto"
|
|
||||||
src="{% static "icons/gif/" %}{{gif.name}}"
|
|
||||||
alt="{{gif.url}}"
|
|
||||||
/>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
<h2>-Frens:</h2>
|
|
||||||
<div class="img">
|
|
||||||
{% for banner in banner_list %}
|
|
||||||
<a href="https://{{banner.url}}"><img
|
|
||||||
style="height: 31px; width: auto"
|
|
||||||
src="{% static "icons/88x31/" %}{{banner.name}}"
|
|
||||||
alt="{{banner.url}}"
|
|
||||||
/></a>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
<h2>-Me in other places:</h2>
|
|
||||||
<div class="img">
|
|
||||||
<a href="http://cronut.cafe/~bizcochito"
|
|
||||||
><img
|
|
||||||
src="{% static 'icons/coconut.png' %}"
|
|
||||||
alt="cronut.cafe/~bizcochito"
|
|
||||||
/></a>
|
|
||||||
</div>
|
|
||||||
<h2>-NEW BANNER:</h2>
|
|
||||||
<div class="img">
|
|
||||||
<a href="https://yari.fai.st"
|
|
||||||
><img src="{% static 'icons/bizcochito.gif' %}" alt="yari.fai.st"
|
|
||||||
/></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="centerade">
|
|
||||||
<a><img src="{% static "ads/hor/" %}{{ad}}" /></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script>
|
|
||||||
function nojs() {
|
|
||||||
document.getElementById("noscript").style.display = "block";
|
|
||||||
document.getElementById("nojs").style.display = "none";
|
|
||||||
}
|
|
||||||
document.getElementById("noscript").style.display = "none";
|
|
||||||
document.write(
|
|
||||||
'<div id="nojs" class="centercubeplease"><p>To see the website please disable JS</p><p><a href="#" onclick="nojs()">I cant do that, daddy google does not LET me :(</a></p></div>'
|
|
||||||
);
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,6 +1,4 @@
|
||||||
from django.apps import AppConfig
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
class ConfigWebpage(AppConfig):
|
class ConfigWebpage(AppConfig):
|
||||||
default_auto_field = 'django.db.models.BigAutoField'
|
|
||||||
name = 'webpage'
|
name = 'webpage'
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 125 KiB |
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 246 KiB After Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 696 KiB After Width: | Height: | Size: 696 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 616 B After Width: | Height: | Size: 616 B |
Before Width: | Height: | Size: 346 B After Width: | Height: | Size: 346 B |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 7.2 MiB After Width: | Height: | Size: 7.2 MiB |
Before Width: | Height: | Size: 438 KiB After Width: | Height: | Size: 438 KiB |
Before Width: | Height: | Size: 272 KiB After Width: | Height: | Size: 272 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
@ -46,10 +46,17 @@
|
||||||
<li>
|
<li>
|
||||||
Alicia
|
Alicia
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
Maria
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Bizcochito
|
Bizcochito
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<p>
|
||||||
|
Also if you are gonna "pronoun" me, please think before if u can just
|
||||||
|
use the name "Yari" that is literaly like "They" long.
|
||||||
|
</p>
|
||||||
<h3>
|
<h3>
|
||||||
If you insist in using pronouns you can use this
|
If you insist in using pronouns you can use this
|
||||||
<b> (in order of preference) </b> :
|
<b> (in order of preference) </b> :
|
||||||
|
@ -58,12 +65,6 @@
|
||||||
<li>
|
<li>
|
||||||
<b>My names</b>
|
<b>My names</b>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
Neutral
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
Femenine
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
Literally anything but he
|
Literally anything but he
|
||||||
</li>
|
</li>
|
||||||
|
@ -91,15 +92,15 @@
|
||||||
alt="XMPP" />
|
alt="XMPP" />
|
||||||
</a>
|
</a>
|
||||||
<a href="mailto:bizcochito@anartist.org">
|
<a href="mailto:bizcochito@anartist.org">
|
||||||
<img height="36px"
|
<img style="border: 0px;
|
||||||
style="border: 0px;
|
height: 36px;
|
||||||
width: auto"
|
width: auto"
|
||||||
src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/%28at%29.svg/170px-%28at%29.svg.png"
|
src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/%28at%29.svg/170px-%28at%29.svg.png"
|
||||||
alt="Personal Mail" />
|
alt="Personal Mail" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://awoo.fai.st/MeDueleLaTeta">
|
<a href="https://awoo.fai.st/MeDueleLaTeta">
|
||||||
<img height="36px"
|
<img style="border: 0px;
|
||||||
style="border: 0px;
|
height: 36px;
|
||||||
width: auto"
|
width: auto"
|
||||||
src="https://upload.wikimedia.org/wikipedia/commons/9/93/Fediverse_logo_proposal.svg"
|
src="https://upload.wikimedia.org/wikipedia/commons/9/93/Fediverse_logo_proposal.svg"
|
||||||
alt="Pleroma" />
|
alt="Pleroma" />
|
|
@ -0,0 +1,26 @@
|
||||||
|
{% load static %}
|
||||||
|
<div class="centerade">
|
||||||
|
<div>
|
||||||
|
<a href="https://fediring.net/previous?host=yari.fai.st">
|
||||||
|
<img style="height: 30px;
|
||||||
|
width: auto"
|
||||||
|
src="{% static 'icons/last.png' %}"
|
||||||
|
alt="LAST" />
|
||||||
|
</a>
|
||||||
|
<a href="https://fediring.net/">
|
||||||
|
<img style="height: 30px;
|
||||||
|
width: auto"
|
||||||
|
src="{% static 'icons/fediring.png' %}"
|
||||||
|
alt="FEDIRING" />
|
||||||
|
</a>
|
||||||
|
<a href="https://fediring.net/next?host=yari.fai.st">
|
||||||
|
<img style="height: 30px;
|
||||||
|
width: auto"
|
||||||
|
src="{% static 'icons/next.png' %}"
|
||||||
|
alt="NEXT" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
Fediring links
|
||||||
|
</p>
|
||||||
|
</div>
|
|
@ -0,0 +1,6 @@
|
||||||
|
{% load static %}
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" href="{% static 'style.css' %}" />
|
||||||
|
<link rel="icon" href="{% static 'icon.png' %}" />
|
||||||
|
<title>{{ title }}</title>
|
||||||
|
</head>
|
|
@ -0,0 +1,80 @@
|
||||||
|
{% load static %}
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
{% include "head.html" %}
|
||||||
|
<body id="index">
|
||||||
|
{% include "fediring.html" %}
|
||||||
|
<div id="noscript">
|
||||||
|
<div class="centercubeplease">
|
||||||
|
<h1>
|
||||||
|
I'm bizcochito, hey!
|
||||||
|
</h1>
|
||||||
|
<h2>
|
||||||
|
-Pages:
|
||||||
|
</h2>
|
||||||
|
<ul class="disclosure-closed">
|
||||||
|
<li>
|
||||||
|
<a href="signbook/">Signbook</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
-Banners
|
||||||
|
</h2>
|
||||||
|
<div class="img">
|
||||||
|
{% for gif in banger_list %}
|
||||||
|
<img style="max-height: 50px; width: auto" src="{% static "icons/banner/" %}{{ gif.name }}" alt="{{ gif.url }}" />
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
<h2>
|
||||||
|
-Funni gifs
|
||||||
|
</h2>
|
||||||
|
<div class="img">
|
||||||
|
{% for gif in gif_list %}
|
||||||
|
<img style="max-height: 50px; width: auto" src="{% static "icons/gif/" %}{{ gif.name }}" alt="{{ gif.url }}" />
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
<h2>
|
||||||
|
-Frens:
|
||||||
|
</h2>
|
||||||
|
<div class="img">
|
||||||
|
{% for banner in banner_list %}
|
||||||
|
<a href="https://{{ banner.url }}">
|
||||||
|
<img style="height: 31px; width: auto" src="{% static "icons/88x31/" %}{{ banner.name }}" alt="{{ banner.url }}" />
|
||||||
|
</a>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
<h2>
|
||||||
|
-Me in other places:
|
||||||
|
</h2>
|
||||||
|
<div class="img">
|
||||||
|
<a href="http://cronut.cafe/~bizcochito">
|
||||||
|
<img src="{% static 'icons/coconut.png' %}" alt="cronut.cafe/~bizcochito" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<h2>
|
||||||
|
-NEW BANNER:
|
||||||
|
</h2>
|
||||||
|
<div class="img">
|
||||||
|
<a href="https://yari.fai.st">
|
||||||
|
<img src="{% static 'icons/bizcochito.gif' %}" alt="yari.fai.st" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="centerade">
|
||||||
|
<a>
|
||||||
|
<img src="{% static "ads/hor/" %}{{ ad }}" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
function nojs() {
|
||||||
|
document.getElementById("noscript").style.display = "block";
|
||||||
|
document.getElementById("nojs").style.display = "none";
|
||||||
|
}
|
||||||
|
document.getElementById("noscript").style.display = "none";
|
||||||
|
document.write(
|
||||||
|
'<div id="nojs" class="centercubeplease"><p>To see the website please disable JS</p><p><a href="#" onclick="nojs()">I cant do that, daddy google does not LET me :(</a></p></div>'
|
||||||
|
);
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -11,8 +11,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{% for signer in signer_list %}
|
{% for signer in signer_list %}
|
||||||
<li>
|
<li>
|
||||||
{{ signer.hosting }}*
|
<a href="https://{{ signer.website }}">
|
||||||
<a href="{{ signer.website }}">
|
|
||||||
<b>
|
<b>
|
||||||
{{ signer.name }}
|
{{ signer.name }}
|
||||||
</b>
|
</b>
|
||||||
|
@ -42,7 +41,11 @@
|
||||||
<p>
|
<p>
|
||||||
<form method="post" action="">
|
<form method="post" action="">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
|
{% if error_message %}
|
||||||
|
<p>
|
||||||
|
<strong>{{ error_message }}</strong>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
|
@ -38,8 +38,7 @@ def index(request):
|
||||||
"gif_list": gif_list,
|
"gif_list": gif_list,
|
||||||
"banger_list": banger_list,
|
"banger_list": banger_list,
|
||||||
}
|
}
|
||||||
return render(request,
|
return render(request,"index.html", context)
|
||||||
"index.html", context)
|
|
||||||
|
|
||||||
def about(request):
|
def about(request):
|
||||||
return render(request, "about.html", {"title": "About Me"})
|
return render(request, "about.html", {"title": "About Me"})
|
||||||
|
@ -48,7 +47,7 @@ def signbook(request):
|
||||||
signer_list = Booksigner.objects.all()
|
signer_list = Booksigner.objects.all()
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
form = SignbookForm(request.POST)
|
form = SignbookForm(request.POST)
|
||||||
if form.is_valid():
|
if form.is_valid() and form.validate_capcha():
|
||||||
newsigner = {}
|
newsigner = {}
|
||||||
newsigner["name"] = form.cleaned_data['name']
|
newsigner["name"] = form.cleaned_data['name']
|
||||||
newsigner["website"] = form.cleaned_data['website']
|
newsigner["website"] = form.cleaned_data['website']
|