Skip to content

Commit

Permalink
添加simplepro
Browse files Browse the repository at this point in the history
  • Loading branch information
newpanjing committed Oct 18, 2019
1 parent 6a945ea commit b913026
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion myblog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
# Application definition

INSTALLED_APPS = [
'simplepro',
'simpleui',
# 'import_export'
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
Expand All @@ -58,7 +60,9 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'myblog.mymiddleware.SimpleMiddleware'
'myblog.mymiddleware.SimpleMiddleware',
# 加入simplepro的中间件
'simplepro.middlewares.SimpleMiddleware'
]

ROOT_URLCONF = 'myblog.urls'
Expand Down

0 comments on commit b913026

Please sign in to comment.