diff options
| author | Bobby <[email protected]> | 2023-05-28 00:41:28 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-05-28 00:41:28 -0400 |
| commit | 1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c (patch) | |
| tree | 38d17386300c1355418d5bed274f65045c8223ca /dev_status | |
| parent | ac5057a31021cf0c72fa9ad02d238fd0184f508e (diff) | |
| download | thatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.tar.xz thatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.zip | |
Post show view count now, Django session uses redis cache
Diffstat (limited to 'dev_status')
| -rw-r--r-- | dev_status/urls.py | 1 | ||||
| -rw-r--r-- | dev_status/views.py | 9 |
2 files changed, 6 insertions, 4 deletions
diff --git a/dev_status/urls.py b/dev_status/urls.py index c4250b78..62c4c3a2 100644 --- a/dev_status/urls.py +++ b/dev_status/urls.py @@ -1,5 +1,6 @@ from django.urls import path from django.views.generic import RedirectView + from . import views app_name = 'dev_status' 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')) |
