Created
July 8, 2023 11:54
-
-
Save mansha99/7a6b1aef1722f9dcd46b883d0b64e15e to your computer and use it in GitHub Desktop.
views.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.shortcuts import render | |
from django.http import HttpResponse | |
from django.conf import settings | |
def hello_world(request): | |
# READ value from settings.py | |
message = settings.SECRET_MESSAGE | |
return HttpResponse(message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment