From 16085e94220244d9ea138d0658e4f321876dd61d Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Tue, 21 Sep 2021 02:39:54 +1000 Subject: [PATCH] Replaced useless syntaxer with general todos --- main/urls.py | 1 + main/utils/navs | 5 +++-- main/views.py | 6 +++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/main/urls.py b/main/urls.py index b64a048..3cce0e9 100644 --- a/main/urls.py +++ b/main/urls.py @@ -25,4 +25,5 @@ urlpatterns=[ re_path('r/(.*)',views.redirect,name='redirect'), path('bikebunny',views.bikebunny,name='bikebunny'), path('md.rss',views.md,name='md'), + path('todos',views.todo,name='todo'), ] \ No newline at end of file diff --git a/main/utils/navs b/main/utils/navs index 3d6749c..6f86922 100644 --- a/main/utils/navs +++ b/main/utils/navs @@ -1,7 +1,8 @@ books,/books.php,Books,2 songs,/songs,Songs,0 -syntax,/syntax,Syntaxer,0 -pics,/pics/,Pics,2 +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 survey,/emojisurvey.php,Survey,2 diff --git a/main/views.py b/main/views.py index 67d5625..7d5adb4 100644 --- a/main/views.py +++ b/main/views.py @@ -160,4 +160,8 @@ def bikebunny(): def md(req): loop=asyncio.get_event_loop() feed=loop.run_until_complete(mdl.makefeed(req.GET.getlist('ids',''))) - return HttpResponse(feed, content_type='application/rss+xml') \ No newline at end of file + return HttpResponse(feed, content_type='application/rss+xml') + +@rerender +def todo(): + return {'title':'Site TODOs','content':"Things to be done on the site:
",'date':'2021/09/21'} \ No newline at end of file