
CSS
- 4 ответа
- 0 вопросов
0
Вклад в тег
return redirect("https://www.djangoproject.com")
Как реализовать авторизацию на Django?
from django.http import HttpResponse
from django.template import loader
def my_view(request):
# View code here...
t = loader.get_template('myapp/index.html')
c = {'foo': 'bar'}
return HttpResponse(t.render(c, request), content_type='application/xhtml+xml')