Compare commits
20 Commits
65a3b1b035
...
master
Author | SHA1 | Date |
---|---|---|
Alie | 1b167c46ba | |
Alie | 9a6665c675 | |
Alie | ffc10a7059 | |
Alie | d1b9a48626 | |
Alie | ddac242842 | |
Alie | 3d96482380 | |
Alie | 3eb3dfca48 | |
Alie | 8631a0259e | |
Alie | d2e922e595 | |
Alie | 4d7b82ecb0 | |
Alie | 4e0aa95347 | |
Alie | 8c699e94bd | |
Alie | bf3004b6da | |
Alie | e349050758 | |
Alie | 3b9549a9f0 | |
Alie | bc9533c8b7 | |
Alie | 387914e0c1 | |
Alie | f0595645aa | |
Alie | d4fb27de5a | |
Alie | 756b2348ef |
|
@ -1,3 +1,16 @@
|
|||
videos/
|
||||
ftp/
|
||||
*.csv
|
||||
|
||||
### Django ###
|
||||
*.log
|
||||
*.pot
|
||||
*.pyc
|
||||
__pycache__/
|
||||
local_settings.py
|
||||
db.sqlite3
|
||||
media
|
||||
migrations/
|
||||
|
||||
### Testing ###
|
||||
.coverage
|
||||
htmlcov/
|
||||
|
|
|
@ -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
|
28
old/ads.php
|
@ -1,28 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>THE YELLOW PAGES</title>
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<link href="icon.png" rel="icon">
|
||||
</head>
|
||||
<body id="index">
|
||||
<div class="centercubepleaseind">
|
||||
<h1>Silly fake ads:</h1>
|
||||
<p style="text-align: left;">
|
||||
<?php
|
||||
$adslist = fopen("ads/ads", "r") or die("Unable to open file!");
|
||||
// Output one line until end-of-file
|
||||
while(!feof($adslist)) {
|
||||
$adarray[] = fgets($adslist);
|
||||
}
|
||||
fclose($adslist);
|
||||
foreach($adarray as $adunit){
|
||||
echo $adunit;
|
||||
echo "<br>";
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
77
old/book.php
|
@ -1,77 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>THE GUESTBOOK</title>
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<link href="icon.png" rel="icon">
|
||||
</head>
|
||||
<body id="index">
|
||||
<?php
|
||||
// define variables and set to empty values
|
||||
$name = $email = $comment = $website = $nameErr = $hosting = $capchaErr = "";
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
if ($_POST["capcha"] !== "I love me") {
|
||||
$capchaErr = "You stupid fucking dingus";}
|
||||
else{
|
||||
if (empty($_POST["name"])) {
|
||||
$nameErr = "Name is required";
|
||||
} else {
|
||||
$name = "\"".test_input($_POST["name"])."\"";
|
||||
$email = "\"".test_input($_POST["email"])."\"";
|
||||
$website = "\"".test_input($_POST["website"])."\"";
|
||||
$comment = "\"".test_input($_POST["comment"])."\"";
|
||||
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 = "???!";}
|
||||
$myfile = fopen("signs.csv", "a") or die("Unable to open file!");
|
||||
$txt = $name.",".$website.",".$email.",".$comment.",".date("Y-m-d").",".$hosting."\n";
|
||||
fwrite($myfile, $txt);
|
||||
fclose($myfile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function test_input($data) {
|
||||
$data = trim($data);
|
||||
$data = stripslashes($data);
|
||||
$data = htmlspecialchars($data);
|
||||
return $data;
|
||||
}
|
||||
?>
|
||||
<div class="centercubepleaseind">
|
||||
<h1>Cool signers:</h1>
|
||||
<p style="text-align: left;">
|
||||
<?php //CSV FRIEND READ
|
||||
$csv = 'signs.csv';
|
||||
$signers = [];
|
||||
$f = fopen($csv, 'r');
|
||||
if ($f === false) { die('Cannot open the file ' . $csv); }
|
||||
// read each line in CSV file at a time
|
||||
while (($row = fgetcsv($f)) !== false) { $signers[] = $row; }
|
||||
fclose($f);
|
||||
|
||||
foreach($signers as $datasing){
|
||||
echo $datasing[5]."* At <span style=\"font-weight: bold;\">".$datasing[4]."</span> <a href=\"".$datasing[1]."\">".$datasing[0]."</a> said: <span style=\"font-weight: bold;\">".$datasing[3]."</span>.";
|
||||
if($datasing[2]){echo " Pester on: <a href=\"mailto:".$datasing[2]."\">".$datasing[2]."</a>";}
|
||||
echo "<br>";
|
||||
} ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="centerade">
|
||||
<h2>Be part of this cool babes!</h2>
|
||||
<p>
|
||||
<form style="text-align: center;" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
|
||||
Name: <input type="text" name="name"><span style="color: red;" class="error">* <?php echo $nameErr;?></span>
|
||||
Website: <input type="text" name="website">
|
||||
E-mail: <input type="text" name="email"><br>
|
||||
Comment: <textarea name="comment" rows="1" cols="100"></textarea><br>
|
||||
Capcha(Say me that you love "me"): <input type="text" name="capcha"><span style="color: red;" class="error">* <?php echo $capchaErr;?></span><br>
|
||||
<input type="submit">
|
||||
</form>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,59 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>THE INDEX</title>
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<link href="icon.png" rel="icon">
|
||||
</head>
|
||||
<body id="index">
|
||||
<div class="centerade">
|
||||
<a href="https://fediring.net/previous?host=yari.fai.st"><img style="height: 30px; width: auto;" src="icons/last.png" alt="LAST"></a>
|
||||
<a href="https://fediring.net/"><img style="height: 30px; width: auto;" src="icons/fediring.png" alt="FEDIRING"></a>
|
||||
<a href="https://fediring.net/next?host=yari.fai.st"><img style="height: 30px; width: auto;" src="icons/next.png" alt="NEXT"></a>
|
||||
<br>Fediring links
|
||||
</div>
|
||||
<div class="centercubepleaseind">
|
||||
<h1>I'm bizcochito, hey!</h1>
|
||||
<a href="http://v25cldsbgmmllb7emzrefrh57ugu53z534lcs53coi3tlhiin6va6kad.onion">Onionsite mirror</a><br/>
|
||||
<a href="http://nlohuquv5gaqnhfdeano77ftswnfg674jet5qeualztoxtmsceka.b32.i2p">Eepsite mirror</a>
|
||||
<br/><br/>
|
||||
-Pages:<br/>
|
||||
<a href="about.html">-About me</a><br/>
|
||||
<a href="funni.html">-Gifs</a><br/>
|
||||
<a href="kisses.html">-Kisses</a><br/>
|
||||
<br/>
|
||||
-Extra stuf<br/>
|
||||
<a href="sixpaired">-Sixpaired</a><br/>
|
||||
<a href="book.php">-Signbook</a><br/>
|
||||
<br/>
|
||||
-Funni gifs<br/>
|
||||
<a href="http://spywareitdaiuyfo2sqb5vsg7mek5cjabdr73luhnda57t2hyuzg7yyd.onion/articles/explorer.html"><img src="gif/ie.gif" alt="Get microsoft internet explorer"></a>
|
||||
<a href="http://spywareitdaiuyfo2sqb5vsg7mek5cjabdr73luhnda57t2hyuzg7yyd.onion/articles/discord.html"><img src="gif/discord.gif" alt="Discord? No way"></a>
|
||||
<a href="https://www.debian.org/intro/why_debian"><img src="gif/linux.png" alt="Powered by linux"></a>
|
||||
<a href="fedivers.txt"><img src="gif/showbroslove.jpg" alt="Give your bros some love"></a>
|
||||
<a href=""><img src="gif/gay.png" alt="Powered by gay"></a>
|
||||
<a href=""><img src="gif/transgender.png" alt="Powered by trans"></a>
|
||||
<a href="https://www.w3.org/Proposal.html"><img src="gif/www.gif" alt="world wide web connecting people since 1991"></a><br/>
|
||||
<br/>
|
||||
-Frens(onions):<br/>
|
||||
<a href="http://jtxkyle56vrelrjsrun5kvymkeak5oxo773agx6oj6cdx4gu7j2bgvqd.onion"><img style="height: 30px;" src="icons/dendy.png" alt="dendy.cat"></a>
|
||||
<a href="http://lainwir3s4y5r7mqm3kurzpljyf77vty2hrrfkps6wm4nnnqzest4lqd.onion"><img style="height: 30px;" src="icons/qorg11.gif" alt="qorg11.net"></a>
|
||||
<a href="http://cronutrw6krxbl73cljype7mkk6r7dmgu5ac5qxtg6ucszhziam4ysyd.onion/~sfr"><img style="height: 31px;" src="icons/sfr.gif" alt="cronut.cafe"></a>
|
||||
<a href="http://moth7kzeri7kdnhla5cydl7anhskmocjy4vrcm4rmzte7uvm64ug54id.onion/"><img style="height: 30px;" src="icons/moth.png" alt="moth.monster"></a>
|
||||
<br>
|
||||
<a href="http://cronutrw6krxbl73cljype7mkk6r7dmgu5ac5qxtg6ucszhziam4ysyd.onion/~lustlion"><img style="height: 30px;" src="icons/ari.gif" alt="lustlion.cronut.cafe"></a>
|
||||
</div>
|
||||
<div class="centerade">
|
||||
<?php
|
||||
$adslist = fopen("ads/ads", "r") or die("Unable to open file!");
|
||||
// Output one line until end-of-file
|
||||
while(!feof($adslist)) {
|
||||
$adarray[] = fgets($adslist);
|
||||
}
|
||||
fclose($adslist);
|
||||
echo $adarray[array_rand($adarray, 1)]
|
||||
?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
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!
|
||||
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
|
||||
|
||||
ALLOWED_HOSTS = []
|
||||
|
||||
|
||||
ALLOWED_HOSTS = ["yari.fai.st", "127.0.0.1"]
|
||||
CSRF_COOKIE_SECURE = True
|
||||
SESSION_COOKIE_SECURE = True
|
||||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
|
@ -116,9 +120,17 @@ USE_TZ = True
|
|||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/4.2/howto/static-files/
|
||||
|
||||
STATIC_URL = 'static/'
|
||||
STATIC_URL = "static/"
|
||||
STATIC_ROOT = "static/"
|
||||
|
||||
|
||||
# Default primary key field type
|
||||
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
|
||||
|
||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
# CSRF stuff
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
'http://localhost:8000',
|
||||
"https://yari.fai.st"
|
||||
]
|
|
@ -4,5 +4,5 @@ from django.urls import path, include
|
|||
app_name = "personalWebsite"
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path("webpage/", include("webpage.urls"))
|
||||
path("", include("webpage.urls"))
|
||||
]
|
|
@ -1,3 +0,0 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
|
@ -1,4 +0,0 @@
|
|||
from django.db import models
|
||||
from django.utils import timezone
|
||||
from django.contrib import admin
|
||||
# Create your models here.
|
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 125 KiB |
|
@ -1,88 +0,0 @@
|
|||
@media screen and (min-aspect-ratio: 1) {
|
||||
.centercubeplease{
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
body{
|
||||
background-color: #FFFFFF;
|
||||
color: #000000;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#index{
|
||||
background-image: url("background/index.png");
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
#index .centercubeplease{
|
||||
background-color: #5F8E76;
|
||||
border: 3px solid #527C46;
|
||||
margin: auto;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#index a{
|
||||
color: #F0F0F0;
|
||||
}
|
||||
|
||||
.centercubeplease img{
|
||||
max-width: 95%;
|
||||
}
|
||||
|
||||
#about{
|
||||
background-image: url("background/about.png");
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
#about a{
|
||||
color: #FFF0F0;
|
||||
}
|
||||
|
||||
#about .centercubeplease{
|
||||
color: #FFF0F0;
|
||||
background-color: #990033;
|
||||
border: 3px solid #cc0066;
|
||||
margin: auto;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
h1, #about h2, #about h3{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1, h2, h3{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
p{
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.centerade{
|
||||
width: 50%;
|
||||
margin: auto;
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.centerade img{
|
||||
width: 99%;
|
||||
}
|
||||
|
||||
.centercubeplease a{
|
||||
color: #449494;
|
||||
}
|
||||
|
||||
.pointless{
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.hightlightpurple{
|
||||
background-color:#C00066;
|
||||
color:#FFFFFF
|
||||
}
|
|
@ -1,66 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>About Bizcochito</title>
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<link href="icon.png" rel="icon">
|
||||
</head>
|
||||
<body id="about">
|
||||
<div class="centercubeplease">
|
||||
<h1>So hey, you want to know more about me. Here u have!</h1>
|
||||
<div class="centercubeplease2">
|
||||
<p>A thing i need to say is that this page one day could be deprecated bc of me just not remembering to change anything.</p>
|
||||
|
||||
<h2>Index</h2>
|
||||
<ul>
|
||||
<li><a href="#how">How to adress me</a></li>
|
||||
<li><a href="#who">Who i am</a></li>
|
||||
<li><a href="#what">What i am</a></li>
|
||||
<li><a href="#where">Where to contact me</a></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="how">How to adress me</h2>
|
||||
<p>
|
||||
So first of all if you are not gonna adress me directly or you don't know me yet just call me Bizcochito!<br/>
|
||||
</p>
|
||||
<h3>You can call me:</h3>
|
||||
<ul>
|
||||
<li>Yari</li>
|
||||
<li>Alicia</li>
|
||||
<li>Maria</li>
|
||||
<li>Bizcochito</li>
|
||||
</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>If you insist in using pronouns you can use this<strong>(in order of preference)</strong>:</h3>
|
||||
<ul>
|
||||
<li><strong>My names</strong></li>
|
||||
<li>It</li>
|
||||
<li>They</li>
|
||||
<li>*neoponouns*</li>
|
||||
<li>She</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="who">Who i am</h2>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
|
||||
<h2 id="what">What i am</h2>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
|
||||
<h2 id="where">Where to contact me</h2>
|
||||
<ul class="pointless">
|
||||
<li><a href="xmpp:bizcochito@fai.st"><img style='border:0px;height:36px;' src='https://xmpp.org/images/logos/xmpp-logo.svg' alt='XMPP' /></a></li>
|
||||
<li><a href="mailto:bizcochito@anartist.org"><img style='border:0px;height:36px;' src='https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/%28at%29.svg/170px-%28at%29.svg.png' alt='Personal Mail'/></a><a href="pgpkey.txt">PGP key</a></li>
|
||||
<li><a href="https://sweet.succubi.services/MeDueleLaTeta"><img style='border:0px;height:36px;' src='https://upload.wikimedia.org/wikipedia/commons/9/93/Fediverse_logo_proposal.svg' alt='Pleroma' /></a></li>
|
||||
<li><a href="/">IDK return back</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,25 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>THE INDEX</title>
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<link href="icon.png" rel="icon">
|
||||
</head>
|
||||
<body id="index">
|
||||
<div class="centercubepleaseind" style="text-align: center">
|
||||
Funni gifs<br/>
|
||||
<a href=""><img style="height: 50px;" src="gif/banana.gif" alt="Dancing banana"></a>
|
||||
<a href="videos/hatkid.mp4"><img style="height: 50px;" src="gif/hatkid.gif" alt="Hat kid"></a>
|
||||
<a href=""><img style="height: 50px;" src="gif/blobcat.gif" alt="Dancing blobcat"></a>
|
||||
<a href=""><img style="height: 50px;" src="gif/cassette.gif" alt="Cute Cassette"></a>
|
||||
<a href=""><img style="height: 50px;" src="gif/parrot.gif" alt="Dancing parrot"></a>
|
||||
<a href=""><img style="height: 50px;" src="gif/pumpum.gif" alt="Pumpum being patted"></a>
|
||||
<a href=""><img style="height: 50px;" src="gif/xd.gif" alt="XD"></a>
|
||||
<a href="videos/gotyewokeuplikethisaliens-aq2w_Zm2K3c.mp4"><img src="gif/I‘m-not-a-robot.gif" alt="Im, not a robot"></a>
|
||||
<a href=""><img src="gif/milk.png" alt="Milk gal"></a>
|
||||
<br>
|
||||
<a href=""><img src="gif/enby.gif" alt="Enby to death"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,93 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% load static %}
|
||||
<link rel="stylesheet" href="{% static 'style.css' %}" />
|
||||
<title>THE INDEX</title>
|
||||
<link rel="icon" href="{% static 'icon.png' %}" />
|
||||
</head>
|
||||
<body id="index">
|
||||
<div class="centerade">
|
||||
<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>
|
||||
<br />Fediring links
|
||||
</div>
|
||||
<div id="noscript">
|
||||
<div class="centercubeplease">
|
||||
<h1>I'm bizcochito, hey!</h1>
|
||||
<h2>-Pages:</h2>
|
||||
<p>
|
||||
<a href="about.html">-About me</a><br />
|
||||
<a href="funni.html">-Gifs</a><br />
|
||||
</p>
|
||||
<h2>-Extra stuf</h2>
|
||||
<p>
|
||||
<a href="book.php">-Signbook</a>
|
||||
</p>
|
||||
<h2>-Funni gifs</h2>
|
||||
<p>
|
||||
{% for gif in gif_list %}
|
||||
<img
|
||||
style="max-height: 50px; width: auto"
|
||||
src="{% static "gif/" %}{{gif.name}}"
|
||||
alt="{{gif.url}}"
|
||||
/>
|
||||
{% endfor %}
|
||||
</p>
|
||||
<h2>-Frens:</h2>
|
||||
<p>
|
||||
{% 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 %}
|
||||
</p>
|
||||
<h2>-Me in other places:</h2>
|
||||
<p>
|
||||
<a href="http://cronut.cafe/~bizcochito"
|
||||
><img
|
||||
src="{% static 'icons/coconut.png' %}"
|
||||
alt="cronut.cafe/~bizcochito"
|
||||
/></a>
|
||||
</p>
|
||||
<h2>-NEW BANNER:</h2>
|
||||
<p>
|
||||
<a href="https://yari.fai.st"
|
||||
><img src="{% static 'icons/bizcochito.gif' %}" alt="yari.fai.st"
|
||||
/></a>
|
||||
</p>
|
||||
</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,37 +0,0 @@
|
|||
from typing import Dict, Tuple
|
||||
from django.http import HttpResponseNotFound
|
||||
from django.shortcuts import render
|
||||
import os, random
|
||||
from django.template import Context
|
||||
|
||||
def image_dict_from_name_list(name_list: list[str]):
|
||||
dict_list = []
|
||||
for name in name_list:
|
||||
url = name.split(".")
|
||||
url.pop()
|
||||
url = ".".join(url)
|
||||
dict_list.append({
|
||||
"name": name,
|
||||
"url": url
|
||||
}
|
||||
)
|
||||
return dict_list
|
||||
|
||||
def index(request):
|
||||
# Get random ad from ad dir
|
||||
ad_list = os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/ads/hor/"))
|
||||
ad = random.choice(ad_list)
|
||||
# Get list of 81x33 icons
|
||||
banner_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/88x31/")))
|
||||
# Get list of funni gifs
|
||||
gif_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/gif/")))
|
||||
if not ad or not banner_list or not gif_list:
|
||||
return HttpResponseNotFound()
|
||||
else:
|
||||
context = {
|
||||
"ad": ad,
|
||||
"banner_list": banner_list,
|
||||
"gif_list": gif_list
|
||||
}
|
||||
return render(request,
|
||||
"index.html", context)
|
|
@ -0,0 +1,7 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from .models import Booksigner
|
||||
|
||||
# Register your models here.
|
||||
|
||||
admin.site.register(Booksigner)
|
|
@ -1,6 +1,4 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class ConfigWebpage(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'webpage'
|
|
@ -0,0 +1,16 @@
|
|||
from re import Pattern
|
||||
from django import forms
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.utils.translation import gettext_lazy as txt
|
||||
|
||||
class SignbookForm(forms.Form):
|
||||
name = forms.CharField(label="Name")
|
||||
website = forms.CharField(label="Website", required=False)
|
||||
email = forms.EmailField(label="Email", required=False)
|
||||
comment = forms.CharField(label="Comment", required=False)
|
||||
capcha = forms.CharField(label="Tell me that you love 'me'")
|
||||
|
||||
def validate_capcha(self):
|
||||
if self.cleaned_data["capcha"].lower() != "i love me":
|
||||
raise ValidationError(txt('Invalid captcha'), code="invalid")
|
||||
return self
|
|
@ -0,0 +1,8 @@
|
|||
from django.db import models
|
||||
# Create your models here.
|
||||
|
||||
class Booksigner(models.Model):
|
||||
name = models.CharField(max_length=50)
|
||||
website = models.CharField(blank=True, max_length=200)
|
||||
email = models.EmailField(blank=True, )
|
||||
comment = models.CharField(blank=True, max_length=500)
|
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 |
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 |
After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 378 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.7 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: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 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 |
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 |
After Width: | Height: | Size: 933 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 |
|
@ -0,0 +1,91 @@
|
|||
@media screen and (min-aspect-ratio: 2) {
|
||||
.centercubeplease {
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#index {
|
||||
background-image: url("background/index.png");
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
#index .centercubeplease {
|
||||
background-color: #5f8e76;
|
||||
border: 3px solid #527c46;
|
||||
margin: auto;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#index a {
|
||||
color: #f0f0f0;
|
||||
}
|
||||
|
||||
.centercubeplease img {
|
||||
max-width: 95%;
|
||||
}
|
||||
|
||||
#about {
|
||||
background-image: url("background/about.png");
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
#about a {
|
||||
color: #fff0f0;
|
||||
}
|
||||
|
||||
#about .centercubeplease {
|
||||
color: #fff0f0;
|
||||
background-color: #990033;
|
||||
border: 3px solid #cc0066;
|
||||
margin: auto;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
ul {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.centerade {
|
||||
width: 50%;
|
||||
margin: auto;
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.centerade img {
|
||||
width: 99%;
|
||||
}
|
||||
|
||||
.centercubeplease a {
|
||||
color: #449494;
|
||||
}
|
||||
|
||||
.disclosure-closed {
|
||||
list-style: disclosure-closed;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: red;
|
||||
}
|
||||
|
||||
table {
|
||||
margin: auto;
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{% include "head.html" %}
|
||||
<body id="about">
|
||||
<div class="centercubeplease">
|
||||
<h1>
|
||||
So hey, you want to know more about me. Here u have!
|
||||
</h1>
|
||||
<div class="centerade">
|
||||
<p>
|
||||
A thing i need to say is that this page one day could be deprecated bc
|
||||
of me just not remembering to change anything.
|
||||
</p>
|
||||
<h2>
|
||||
Index
|
||||
</h2>
|
||||
<ul class="disclosure-closed">
|
||||
<li>
|
||||
<a href="#how">How to adress me</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#who">Who i am</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#what">What i am</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#where">Where to contact me</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="how">
|
||||
How to adress me
|
||||
</h2>
|
||||
<p>
|
||||
So first of all if you are not gonna adress me directly or you don't
|
||||
know me yet just call me Bizcochito!
|
||||
<br />
|
||||
</p>
|
||||
<h3>
|
||||
You can call me:
|
||||
</h3>
|
||||
<ul class="disclosure-closed">
|
||||
<li>
|
||||
Yari
|
||||
</li>
|
||||
<li>
|
||||
Alicia
|
||||
</li>
|
||||
<li>
|
||||
Maria
|
||||
</li>
|
||||
<li>
|
||||
Bizcochito
|
||||
</li>
|
||||
</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>
|
||||
If you insist in using pronouns you can use this
|
||||
<b> (in order of preference) </b> :
|
||||
</h3>
|
||||
<ul class="disclosure-closed">
|
||||
<li>
|
||||
<b>My names</b>
|
||||
</li>
|
||||
<li>
|
||||
Literally anything but he
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="who">
|
||||
Who i am
|
||||
</h2>
|
||||
<p>
|
||||
Existential question i have yet not answered
|
||||
</p>
|
||||
<h2 id="what">
|
||||
What i am
|
||||
</h2>
|
||||
<p>
|
||||
A silly colection of bytes
|
||||
</p>
|
||||
<h2 id="where">
|
||||
Where to contact me
|
||||
</h2>
|
||||
<div class="centerade">
|
||||
{# djlint: ignore D018 #}<a href="xmpp:bizcochito@fai.st">
|
||||
<img style="border: 0px;
|
||||
height: 36px;
|
||||
width: auto"
|
||||
src="https://xmpp.org/images/logos/xmpp-logo.svg"
|
||||
alt="XMPP" />
|
||||
</a>
|
||||
<a href="mailto:bizcochito@anartist.org">
|
||||
<img style="border: 0px;
|
||||
height: 36px;
|
||||
width: auto"
|
||||
src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/%28at%29.svg/170px-%28at%29.svg.png"
|
||||
alt="Personal Mail" />
|
||||
</a>
|
||||
<a href="https://awoo.fai.st/MeDueleLaTeta">
|
||||
<img style="border: 0px;
|
||||
height: 36px;
|
||||
width: auto"
|
||||
src="https://upload.wikimedia.org/wikipedia/commons/9/93/Fediverse_logo_proposal.svg"
|
||||
alt="Pleroma" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<a href="{% url "webpage:index" %}">IDK return back</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -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,86 @@
|
|||
{% 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=" {% url 'webpage: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:81px" src="{% static "icons/88x31/" %}{{ banner.name }}" alt="{{ banner.url }}" />
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<h2>
|
||||
-Another banner that is unused:
|
||||
</h2>
|
||||
<div class="img">
|
||||
<a href="">
|
||||
<img style="height:33px;
|
||||
width:81px"
|
||||
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 style="height:33px;
|
||||
width:81px"
|
||||
src="{% static 'icons/bizcochito.gif' %}"
|
||||
alt="yari.fai.st" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="centerade">
|
||||
<a>
|
||||
<img src="{% static "ads/hor/" %}{{ ad }}" alt="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>
|
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{% include "head.html" %}
|
||||
<body id="index">
|
||||
<div class="centercubeplease">
|
||||
<h1>
|
||||
Cool signers:
|
||||
</h1>
|
||||
{% if signer_list %}
|
||||
<p>
|
||||
<ul>
|
||||
{% for signer in signer_list %}
|
||||
<li>
|
||||
<a href="https://{{ signer.website }}">
|
||||
<b>
|
||||
{{ signer.name }}
|
||||
</b>
|
||||
</a> said:
|
||||
<b>
|
||||
{{ signer.comment }}.
|
||||
</b>
|
||||
{% if signer.email %}
|
||||
Pester on:
|
||||
<a href="mailto:{{ signer.email }}">{{ signer.email }}</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</p>
|
||||
{% else %}
|
||||
<p>
|
||||
No one signed here :(
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="centerade">
|
||||
<h2>
|
||||
Be part of this cuties!
|
||||
</h2>
|
||||
<p>
|
||||
<p>
|
||||
<form method="post" action="">
|
||||
{% csrf_token %}
|
||||
{% if error_message %}
|
||||
<p>
|
||||
<strong>{{ error_message }}</strong>
|
||||
</p>
|
||||
{% endif %}
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
<input type="submit" />
|
||||
</form>
|
||||
</p>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -4,5 +4,7 @@ from . import views
|
|||
|
||||
app_name = "webpage"
|
||||
urlpatterns = [
|
||||
path("signbook/", views.signbook, name="signbook"),
|
||||
path("about/", views.about, name="about"),
|
||||
path("", views.index, name="index"),
|
||||
]
|
|
@ -0,0 +1,102 @@
|
|||
import os
|
||||
import random
|
||||
|
||||
from django.forms import ValidationError
|
||||
from django.http import HttpResponseNotFound
|
||||
from django.shortcuts import render
|
||||
|
||||
from .models import Booksigner
|
||||
from .forms import SignbookForm
|
||||
|
||||
def image_dict_from_name_list(name_list: list[str]):
|
||||
dict_list = []
|
||||
for name in name_list:
|
||||
url = name.split(".")
|
||||
url.pop()
|
||||
url = ".".join(url)
|
||||
dict_list.append({
|
||||
"name": name,
|
||||
"url": url
|
||||
}
|
||||
)
|
||||
return dict_list
|
||||
|
||||
def index(request):
|
||||
# Get random ad from ad dir
|
||||
ad_list = os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/ads/hor/"))
|
||||
ad = random.choice(ad_list)
|
||||
# Get list of 81x33 icons
|
||||
banner_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/88x31/")))
|
||||
# Get list of funni gifs
|
||||
gif_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/gif/")))
|
||||
# Get list of banners
|
||||
banger_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/banner/")))
|
||||
if not ad or not banner_list or not gif_list:
|
||||
return HttpResponseNotFound()
|
||||
else:
|
||||
context = {
|
||||
"title": "THE INDEX",
|
||||
"ad": ad,
|
||||
"banner_list": banner_list,
|
||||
"gif_list": gif_list,
|
||||
"banger_list": banger_list,
|
||||
}
|
||||
return render(request,"index.html", context)
|
||||
|
||||
def about(request):
|
||||
return render(request, "about.html", {"title": "About Me"})
|
||||
|
||||
def signbook(request):
|
||||
signer_list = Booksigner.objects.all()
|
||||
if request.method == 'POST':
|
||||
form = SignbookForm(request.POST)
|
||||
try:
|
||||
if form.is_valid() and form.validate_capcha():
|
||||
newsigner = {}
|
||||
newsigner["name"] = form.cleaned_data['name']
|
||||
newsigner["website"] = form.cleaned_data['website']
|
||||
newsigner["email"] = form.cleaned_data['email']
|
||||
newsigner["comment"] = form.cleaned_data['comment']
|
||||
|
||||
signer_list = Booksigner.objects.all()
|
||||
if newsigner:
|
||||
Booksigner.objects.create(
|
||||
name=newsigner["name"],
|
||||
email=newsigner["email"],
|
||||
website=newsigner["website"],
|
||||
comment=newsigner["comment"],
|
||||
)
|
||||
context = {
|
||||
"title": "THE GUESTBOOK",
|
||||
"signer_list": signer_list
|
||||
}
|
||||
return render(request, "signbook.html", context)
|
||||
context = {
|
||||
"title": "THE GUESTBOOK",
|
||||
"signer_list": signer_list,
|
||||
"error_message": "You didn't input a required input.",
|
||||
}
|
||||
return render(
|
||||
request,
|
||||
"signbook.html",
|
||||
context
|
||||
)
|
||||
except ValidationError as e:
|
||||
print("Error: ", e)
|
||||
context = {
|
||||
"title": "THE GUESTBOOK",
|
||||
"signer_list": signer_list,
|
||||
"error_message": "Invalid captcha.",
|
||||
}
|
||||
return render(
|
||||
request,
|
||||
"signbook.html",
|
||||
context
|
||||
)
|
||||
else:
|
||||
context = {
|
||||
"title": "THE GUESTBOOK",
|
||||
"signer_list": signer_list,
|
||||
"form": SignbookForm()
|
||||
}
|
||||
return render(request, "signbook.html", context)
|