Merge branch 'release/v1.0.0'
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
rsync -rv webpage django:/home/django/personalWebpage/
|
||||||
|
ssh django "bash -s" <<EOF
|
||||||
|
cd /home/django/personalWebpage/
|
||||||
|
python3 manage.py collectstatic --noinput
|
||||||
|
python3 manage.py makemigrations
|
||||||
|
python3 manage.py migrate
|
||||||
|
EOF
|
|
@ -6,10 +6,3 @@ class Booksigner(models.Model):
|
||||||
website = models.CharField(blank=True, max_length=200)
|
website = models.CharField(blank=True, max_length=200)
|
||||||
email = models.EmailField(blank=True, )
|
email = models.EmailField(blank=True, )
|
||||||
comment = models.CharField(blank=True, max_length=500)
|
comment = models.CharField(blank=True, max_length=500)
|
||||||
hosting = models.CharField(max_length=10)
|
|
||||||
""" def __str__(self) -> str:
|
|
||||||
return self.name """
|
|
||||||
""" if(strpos($_SERVER["HTTP_HOST"], ".onion")){ $hosting = "tor!";}
|
|
||||||
elseif(strpos($_SERVER["HTTP_HOST"], ".i2p")){ $hosting = "i2p!";}
|
|
||||||
elseif(strpos($_SERVER["HTTP_HOST"], ".fai")){ $hosting = "fai!";}
|
|
||||||
else{$hosting = "???!";} """
|
|
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 378 B |
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 933 KiB |
|
@ -79,12 +79,13 @@
|
||||||
What i am
|
What i am
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
|
A silly colection of bytes
|
||||||
</p>
|
</p>
|
||||||
<h2 id="where">
|
<h2 id="where">
|
||||||
Where to contact me
|
Where to contact me
|
||||||
</h2>
|
</h2>
|
||||||
<div class="centerade">
|
<div class="centerade">
|
||||||
<a href="xmpp:bizcochito@fai.st">
|
{# djlint: ignore D018 #}<a href="xmpp:bizcochito@fai.st">
|
||||||
<img style="border: 0px;
|
<img style="border: 0px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
width: auto"
|
width: auto"
|
||||||
|
@ -107,7 +108,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="/">IDK return back</a>
|
<a href="{% url "webpage:index" %}">IDK return back</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</h2>
|
</h2>
|
||||||
<ul class="disclosure-closed">
|
<ul class="disclosure-closed">
|
||||||
<li>
|
<li>
|
||||||
<a href="signbook/">Signbook</a>
|
<a href=" {% url 'webpage:signbook' %} ">Signbook</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h2>
|
<h2>
|
||||||
|
@ -39,16 +39,19 @@
|
||||||
<div class="img">
|
<div class="img">
|
||||||
{% for banner in banner_list %}
|
{% for banner in banner_list %}
|
||||||
<a href="https://{{ banner.url }}">
|
<a href="https://{{ banner.url }}">
|
||||||
<img style="height: 31px; width: auto" src="{% static "icons/88x31/" %}{{ banner.name }}" alt="{{ banner.url }}" />
|
<img style="height:31px; width:81px" src="{% static "icons/88x31/" %}{{ banner.name }}" alt="{{ banner.url }}" />
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<h2>
|
<h2>
|
||||||
-Me in other places:
|
-Another banner that is unused:
|
||||||
</h2>
|
</h2>
|
||||||
<div class="img">
|
<div class="img">
|
||||||
<a href="http://cronut.cafe/~bizcochito">
|
<a href="">
|
||||||
<img src="{% static 'icons/coconut.png' %}" alt="cronut.cafe/~bizcochito" />
|
<img style="height:33px;
|
||||||
|
width:81px"
|
||||||
|
src="{% static 'icons/coconut.png' %}"
|
||||||
|
alt="cronut.cafe/~bizcochito" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<h2>
|
<h2>
|
||||||
|
@ -56,13 +59,16 @@
|
||||||
</h2>
|
</h2>
|
||||||
<div class="img">
|
<div class="img">
|
||||||
<a href="https://yari.fai.st">
|
<a href="https://yari.fai.st">
|
||||||
<img src="{% static 'icons/bizcochito.gif' %}" alt="yari.fai.st" />
|
<img style="height:33px;
|
||||||
|
width:81px"
|
||||||
|
src="{% static 'icons/bizcochito.gif' %}"
|
||||||
|
alt="yari.fai.st" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="centerade">
|
<div class="centerade">
|
||||||
<a>
|
<a>
|
||||||
<img src="{% static "ads/hor/" %}{{ ad }}" />
|
<img src="{% static "ads/hor/" %}{{ ad }}" alt="ad" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
|
import os
|
||||||
|
import random
|
||||||
|
|
||||||
from django.forms import ValidationError
|
from django.forms import ValidationError
|
||||||
from django.http import HttpResponseNotFound, HttpResponseRedirect
|
from django.http import HttpResponseNotFound
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
import os, random
|
|
||||||
|
|
||||||
from .models import Booksigner
|
from .models import Booksigner
|
||||||
from .forms import SignbookForm
|
from .forms import SignbookForm
|
||||||
|
@ -55,15 +57,6 @@ def signbook(request):
|
||||||
newsigner["website"] = form.cleaned_data['website']
|
newsigner["website"] = form.cleaned_data['website']
|
||||||
newsigner["email"] = form.cleaned_data['email']
|
newsigner["email"] = form.cleaned_data['email']
|
||||||
newsigner["comment"] = form.cleaned_data['comment']
|
newsigner["comment"] = form.cleaned_data['comment']
|
||||||
host = request.META["SERVER_NAME"]
|
|
||||||
print(host)
|
|
||||||
match host:
|
|
||||||
case "localhost":
|
|
||||||
newsigner["hosting"] = "Local"
|
|
||||||
case r".*\.fai.st":
|
|
||||||
newsigner["hosting"] = "fai"
|
|
||||||
case _:
|
|
||||||
newsigner["hosting"] = "???"
|
|
||||||
|
|
||||||
signer_list = Booksigner.objects.all()
|
signer_list = Booksigner.objects.all()
|
||||||
if newsigner:
|
if newsigner:
|
||||||
|
@ -72,7 +65,6 @@ def signbook(request):
|
||||||
email=newsigner["email"],
|
email=newsigner["email"],
|
||||||
website=newsigner["website"],
|
website=newsigner["website"],
|
||||||
comment=newsigner["comment"],
|
comment=newsigner["comment"],
|
||||||
hosting=newsigner["hosting"],
|
|
||||||
)
|
)
|
||||||
context = {
|
context = {
|
||||||
"title": "THE GUESTBOOK",
|
"title": "THE GUESTBOOK",
|
||||||
|
|