Skip to content

Instantly share code, notes, and snippets.

@mansha99
Created July 8, 2023 11:54
Show Gist options
  • Save mansha99/7a6b1aef1722f9dcd46b883d0b64e15e to your computer and use it in GitHub Desktop.
Save mansha99/7a6b1aef1722f9dcd46b883d0b64e15e to your computer and use it in GitHub Desktop.
views.py
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