目录 1.调用模块使用 2.BBS中urls.py 3.django中配置 4.新学方法使用 5.BBS用到的知识点 1.调用模块使用 from django.db import models from django.contrib.auth.models import AbstractUser from django import forms from django.shortcuts import render, HttpResponse, redirect, reverse from dj…
DEBUG = True ################ STATICFILES ################ # A list of locations of additional static filesSTATICFILES_DIRS = ( os.path.join(BASE_DIR, "static"),) # The default file storage backend used during the build processSTATICFILES_STORAG…
############ # SESSIONS # ############ SESSION_CACHE_ALIAS = 'default' # Cache to store session data if using the cache session backend. SESSION_COOKIE_NAME = 'sessionid' # Cookie name. This can be whatever you want. SESSION_COOKIE_AGE = * # Age of c…