mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-30 23:41:12 +00:00
12 lines
355 B
Python
12 lines
355 B
Python
|
## This will route your views to the chatPage.html that had been created in the templates folder of the chat app.
|
||
|
|
||
|
|
||
|
from django.shortcuts import render, redirect
|
||
|
|
||
|
|
||
|
def chatPage(request, *args, **kwargs):
|
||
|
if not request.user.is_authenticated:
|
||
|
return redirect("login-user")
|
||
|
context = {}
|
||
|
return render(request, "chat/chatPage.html", context)
|