mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-30 15:31:10 +00:00
b4e2d6e874
uploaded the required files
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)
|