Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunal614 committed Oct 3, 2021
1 parent 0db6582 commit 6bba32f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Binary file modified base/__pycache__/views.cpython-38.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions base/cron.py
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')
3 changes: 3 additions & 0 deletions base/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6bba32f

Please sign in to comment.