aboutsummaryrefslogtreecommitdiff
path: root/dev_status/views.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-05-28 00:41:28 -0400
committerBobby <[email protected]>2023-05-28 00:41:28 -0400
commit1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c (patch)
tree38d17386300c1355418d5bed274f65045c8223ca /dev_status/views.py
parentac5057a31021cf0c72fa9ad02d238fd0184f508e (diff)
downloadthatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.tar.xz
thatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.zip
Post show view count now, Django session uses redis cache
Diffstat (limited to 'dev_status/views.py')
-rw-r--r--dev_status/views.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/dev_status/views.py b/dev_status/views.py
index 0291159a..0a7adf7f 100644
--- a/dev_status/views.py
+++ b/dev_status/views.py
@@ -1,9 +1,10 @@
-from django.shortcuts import render
-from github import Github
-from dotenv import load_dotenv
+import math
import os
+
import requests
-import math
+from django.shortcuts import render
+from dotenv import load_dotenv
+from github import Github
load_dotenv()
g = Github(os.getenv('GH_TOKEN'))