/telegram/ redirect
This commit is contained in:
parent
113dd622b2
commit
29b99d2cd2
3 changed files with 8 additions and 2 deletions
|
|
@ -1,8 +1,9 @@
|
|||
import xml.etree.ElementTree as ET
|
||||
|
||||
from django.utils.timezone import datetime, timedelta
|
||||
from django.shortcuts import render
|
||||
from django.conf import settings
|
||||
from django.http import HttpResponse
|
||||
from django.shortcuts import render, redirect
|
||||
from django.utils.timezone import datetime, timedelta
|
||||
|
||||
|
||||
def robots_txt(request):
|
||||
|
|
@ -65,3 +66,6 @@ def sitemap_xml(request):
|
|||
data = b'<?xml version="1.0" encoding="UTF-8"?>\n' + ET.tostring(urlset)
|
||||
return HttpResponse(data, 'application/xml')
|
||||
|
||||
|
||||
def telegram(request):
|
||||
return redirect(settings.TELEGRAM_CHANNEL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue