-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
import requests | ||
from django.core.mail import send_mail | ||
from django.core.mail import EmailMessage | ||
|
||
def req(): | ||
send_mail('Responses', "Question added",'[email protected]',['[email protected]'], fail_silently = False) | ||
res = requests.get('https://rocsiiitkalyani.herokuapp.com') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,15 @@ | |
from django.conf import settings | ||
from django.core.cache.backends.base import DEFAULT_TIMEOUT | ||
from django.core.cache import cache | ||
from django.core.mail import send_mail | ||
from django.core.mail import EmailMessage | ||
|
||
|
||
# Create your views here. | ||
# CACHE_TTL = getattr(settings , 'CACHE_TTL' , DEFAULT_TIMEOUT) | ||
# @cache_page(CACHE_TTL) | ||
def home(request): | ||
send_mail('Responses', "Question added",'[email protected]',['[email protected]'], fail_silently = False) | ||
print("hbdxhschdcnb ^^^^^^^^^^^^^^^^^^^^^^^^^^^") | ||
# if cache.get('data'): | ||
# print("Used redis cache ^^^^^^^^^^^^^^^^^^^6") | ||
|