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 /blog_admin | |
| parent | ac5057a31021cf0c72fa9ad02d238fd0184f508e (diff) | |
| download | thatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.tar.xz thatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.zip | |
Post show view count now, Django session uses redis cache
Diffstat (limited to 'blog_admin')
| -rw-r--r-- | blog_admin/urls.py | 1 | ||||
| -rw-r--r-- | blog_admin/views.py | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/blog_admin/urls.py b/blog_admin/urls.py index 444fef8e..9b02fa89 100644 --- a/blog_admin/urls.py +++ b/blog_admin/urls.py @@ -1,4 +1,5 @@ from django.urls import path + from . import views app_name = 'blog-admin' diff --git a/blog_admin/views.py b/blog_admin/views.py index fd724faa..fff86217 100644 --- a/blog_admin/views.py +++ b/blog_admin/views.py @@ -1,10 +1,12 @@ +import re from datetime import datetime -from django.shortcuts import render, redirect, reverse + from django.contrib import messages -from blog.models import Post, Category, Tag -from ignis.models import CoverImage -import re from django.http import HttpResponseRedirect +from django.shortcuts import redirect, render, reverse + +from blog.models import Category, Post, Tag +from ignis.models import CoverImage # Create your views here. |
