Skip to content

Commit

Permalink
移除simplepro
Browse files Browse the repository at this point in the history
  • Loading branch information
newpanjing committed Dec 16, 2019
1 parent b913026 commit 3a405fe
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion myblog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'myblog.mymiddleware.SimpleMiddleware',
# 加入simplepro的中间件
'simplepro.middlewares.SimpleMiddleware'
# 'simplepro.middlewares.SimpleMiddleware'
]

ROOT_URLCONF = 'myblog.urls'
Expand Down
1 change: 1 addition & 0 deletions myblog/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@
path('logout', views.logout, name='logout'),
path('no', views.no),
path('mdeditor/', include('mdeditor.urls')),
path('simplepro/info/',views.simplepro_info)
]
4 changes: 4 additions & 0 deletions myblog/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,3 +479,7 @@ def logout(request):

def no(request):
return render(request, 'no.html')


def simplepro_info(request):
return render(request, 'admin/tips.html')
11 changes: 11 additions & 0 deletions templates/admin/tips.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h1>这是SimpleUI的体验Demo</h1>
<h2>体验SimplePro请点击<a href="http:https://simplepro.demo.88cto.com" target="_blank">SimplePro体验地址</a> </h2>
</body>
</html>

0 comments on commit 3a405fe

Please sign in to comment.