摘要:
1.redis配置 CACHES = { "default": { # 默认 "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://127.0.0.1:6379/0", "OPTIONS": { "CLIENT_CLASS" 阅读全文
摘要:
一.nginx介紹與安裝 1.Nginx是一款基於異步框架的輕量級/高性能的web服務器/反向代理服務器/緩存服務器/電子郵件代理服務器 優點: 高并發量 簡單穩定 低成本 2.nginx應用場景 3.apt-get安裝:apt-get install nginx -y 服務狀態:systemctl 阅读全文
摘要:
from django.shortcuts import render,HttpResponse from mysite.models import * form django.core.paginator import Paginator,EmptyPage,PageNotInteger def 阅读全文