Hooboy changes. Store e stuff now has DB so I can put budget in (long overdue), plus make closed dates dynamic. Also added explanation of MD RSS, and some other things like pulling out dud nav entries. And... I think maybe navs have DB now too? IDK
This commit is contained in:
parent
c293ba7bf7
commit
17f3c5608e
|
@ -5,6 +5,9 @@
|
|||
<title>
|
||||
Tas [] & Van Canto - {{ title }}
|
||||
</title>
|
||||
<!--<script type="text/javascript">
|
||||
document.body.textContent = 'Please disable JavaScript to view this site.'
|
||||
</script>Need to add a timer to remove it first. I'm not *that* mean. Credit: https://soc.punktrash.club/objects/bfe4fc29-96d5-4f90-9f9e-4092e7c273a4-->
|
||||
</head>
|
||||
<body>
|
||||
{{ nav }}
|
||||
|
|
|
@ -10,7 +10,6 @@ urlpatterns=[
|
|||
path('comment',views.comment,name='shoutbox'),
|
||||
path('specs',views.specs,name='specs'),
|
||||
path('songs',views.songs,name='songs'),
|
||||
path('nerdshope',views.nerdshope,name='shop'),
|
||||
path('teapot',views.teapot,name='teapot'),
|
||||
path('toask',views.articles,name='articles'),
|
||||
path('r/<redirect:src>',views.redirect,name='redirect'),
|
||||
|
|
|
@ -4,7 +4,7 @@ syntax,/syntax,Syntaxer,2
|
|||
todo,/todos,Todos,0
|
||||
pics,/pics,Pics,2
|
||||
wargame,https://gitlab.com/zergling-man/Wargamer,Wargamer,0
|
||||
rinbot,/r/rinbot,Rinbot,0
|
||||
rinbot,/r/rinbot,Rinbot,2
|
||||
survey,/emojisurvey.php,Survey,2
|
||||
myroids,/myroids,Myroids,0
|
||||
bot,/bot,Bot chat,2
|
||||
|
|
|
@ -58,10 +58,6 @@ def songs():
|
|||
out='This is the full list of songs that can appear on the home page.<br/>'+'<br/>\n'.join([f'<a href="https://invidious.ethibox.fr/watch?v={idd}">https://invidious.ethibox.fr/watch?v={idd}</a>' for idd in ids])
|
||||
return {'title':'Songs','content':out,'date':'2021/05/06'}
|
||||
|
||||
@rerender
|
||||
def nerdshope():
|
||||
return {'title':"Nerds' Hope",'content':"Store stuff. TODO. Will include inventory and budget. <a href='https://facebook.com/nerdshope'>FB</a><br/>Address is 21 Kensington St, Glenorchy<br/>Off dates 2022: 29th April, 6th May, 27th May, 17th June, 24th June",'date':'2022/04/10'}
|
||||
|
||||
def teapot(req):
|
||||
return HttpResponse("You're probably missing the joke.",status=418)
|
||||
|
||||
|
@ -77,9 +73,15 @@ def articles():
|
|||
def redirect(req,src):
|
||||
return HttpResponse(status=302,headers={'Location':src.output})
|
||||
|
||||
@rerender
|
||||
def mdhelp():
|
||||
return {'title':'How2MD RSS','date':'2022/05/27','content':"This is an <a href='https://en.wikipedia.org/wiki/RSS'>RSS</a> service for <a href='https://mangadex.org'>Mangadex</a>, since they had one in v3 that I made liberal use of, and I've heard nothing regarding its return in v5.<br/>If you've never used RSS before, I strongly recommend starting, as it's the second-best update notification system in existence (and it could be built on #1, push notifications, but that's an another topic).<br/>You will need an RSS reader program, but your browser probably has one built in, so you can just use that. (I don't recommend it, because you should be closing the browser more, not less.)<br/>The important part of an RSS feed is a source URL. If properly configured, that should provide everything else. In this case, you've already found the source URL... Kinda. You need to pass a manga ID (or several) to make it work. A manga ID looks like this: ed996855-70de-449f-bba2-e8e24224c14d (yes, that's a UUID4). If you go to a manga's page on Mangadex, you should see something like it in the URL bar at the top. I think Tachiyomi has some way to grab it, but I also think Tachi's update notifs are better than mine, so if you have that you don't need this.<br/>Once you have the ID(s), you should palm them into this page like this: <a href='/md.rss?ids=ed996855-70de-449f-bba2-e8e24224c14d'>https://rakka.tk/md.rss?ids=ed996855-70de-449f-bba2-e8e24224c14d</a>. Take that and give it to your RSS reader as a new feed and it should handle the rest (did your browser ask you a new question when you clicked it?). If you want more IDs, put an & and do it again: <a href='/md.rss?ids=ed996855-70de-449f-bba2-e8e24224c14d&ids=/d032cdeb-1ced-4031-8b9e-45e6064c1781'>https://rakka.tk/md.rss?ids=ed996855-70de-449f-bba2-e8e24224c14d&ids=d032cdeb-1ced-4031-8b9e-45e6064c1781</a>.<br/>It behaves a bit differently with 1 ID vs multiple, but it should work alright both ways. Personally I prefer making one feed for each series."}
|
||||
|
||||
def md(req):
|
||||
ids=req.GET.getlist('ids','')
|
||||
if not ids: return mdhelp(req)
|
||||
loop=asyncio.get_event_loop()
|
||||
feed=loop.run_until_complete(mdl.makefeed(req.GET.getlist('ids','')))
|
||||
feed=loop.run_until_complete(mdl.makefeed(ids))
|
||||
return HttpResponse(feed, content_type='application/rss+xml')
|
||||
|
||||
def vcard(req):
|
||||
|
|
|
@ -35,6 +35,7 @@ ALLOWED_HOSTS = [n.strip() for n in conf['ALLOWED_HOSTS'].split(',')]
|
|||
INSTALLED_APPS = [
|
||||
'main.apps.MainConfig',
|
||||
'books.apps.BooksConfig',
|
||||
'nerdshope.apps.NerdshopeConfig',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
|
|
|
@ -21,5 +21,6 @@ urlpatterns = [
|
|||
path('admin/', admin.site.urls),
|
||||
path('books/',include('books.urls')),
|
||||
path('comment/',include('comment.urls')),
|
||||
path('nerdshope/',include('nerdshope.urls')),
|
||||
path('', include('main.urls')),
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user