Commit c130850a by Xu Zhou

css中静态资源引用路径错误。

parent f9053aa0
...@@ -162,7 +162,7 @@ nav>div{ ...@@ -162,7 +162,7 @@ nav>div{
left:10%; left:10%;
} }
#bg_img{ #bg_img{
background: url("/static/hunter/images/welcome.jpeg") no-repeat; background: url("/static/images/welcome.jpeg") no-repeat;
background-size:100% 100%; background-size:100% 100%;
margin:0 auto; margin:0 auto;
height:100%; height:100%;
...@@ -225,7 +225,7 @@ nav>div{ ...@@ -225,7 +225,7 @@ nav>div{
width:50px; width:50px;
height:50px; height:50px;
margin:5px; margin:5px;
background: url("/static/hunter/images/edit.png") no-repeat; background: url("/static/images/edit.png") no-repeat;
background-size:100% 100%; background-size:100% 100%;
} }
.bar_bottom:hover{ .bar_bottom:hover{
...@@ -832,13 +832,13 @@ li svg{ ...@@ -832,13 +832,13 @@ li svg{
width: 20px; width: 20px;
height: 20px; height: 20px;
margin: 5px 0; margin: 5px 0;
background-image: url("/static/hunter/images/delete.png"); background-image: url("/static/images/delete.png");
} }
.edit_img{ .edit_img{
width: 20px; width: 20px;
height: 20px; height: 20px;
margin: 5px 0; margin: 5px 0;
background-image: url("/static/hunter/images/edit.png"); background-image: url("/static/images/edit.png");
} }
.add_one button svg{ .add_one button svg{
margin:8px 5px; margin:8px 5px;
...@@ -862,7 +862,7 @@ li svg{ ...@@ -862,7 +862,7 @@ li svg{
height: 20px; height: 20px;
margin: 5px 0; margin: 5px 0;
float: left !important; float: left !important;
background: url("/static/hunter/images/link.png") no-repeat !important; background: url("/static/images/link.png") no-repeat !important;
} }
#isPublish{ #isPublish{
width: 65%; width: 65%;
......
...@@ -534,6 +534,7 @@ ...@@ -534,6 +534,7 @@
"score":scoreNum, "score":scoreNum,
"reason":reason, "reason":reason,
"action":addOrSub, "action":addOrSub,
'csrfmiddlewaretoken': '{{ csrf_token }}'
}, },
dataType: 'json', dataType: 'json',
success: function (response) { success: function (response) {
......
...@@ -192,9 +192,9 @@ ...@@ -192,9 +192,9 @@
<strong><a href="//www.hunter-ht.cn/" target="_blank">hunter-ht.cn</a></strong> All Rights Reserved. 备案号:<a target="_blank" rel="nofollow" href="http://www.beian.miit.gov.cn">湘ICP备18008562号</a> <strong><a href="//www.hunter-ht.cn/" target="_blank">hunter-ht.cn</a></strong> All Rights Reserved. 备案号:<a target="_blank" rel="nofollow" href="http://www.beian.miit.gov.cn">湘ICP备18008562号</a>
</div> </div>
</footer> </footer>
<script type="text/javascript" src="{% static 'hunter/bootstrap.min.js' %}"></script> <script type="text/javascript" src="{% static 'bootstrap.min.js' %}"></script>
<script type="text/javascript" src="{% static 'hunter/bootstrap-datetimepicker.js' %}" charset="UTF-8"></script> <script type="text/javascript" src="{% static 'bootstrap-datetimepicker.js' %}" charset="UTF-8"></script>
<script type="text/javascript" src="{% static 'hunter/bootstrap-datetimepicker.zh-CN.js' %}" charset="UTF-8"></script> <script type="text/javascript" src="{% static 'bootstrap-datetimepicker.zh-CN.js' %}" charset="UTF-8"></script>
<script type="text/javascript"> <script type="text/javascript">
$('.form_datetime').datetimepicker({ $('.form_datetime').datetimepicker({
//language: 'fr', //language: 'fr',
......
...@@ -137,7 +137,7 @@ def save_edit_art(request): ...@@ -137,7 +137,7 @@ def save_edit_art(request):
return response return response
@csrf_exempt
def add_url_article(request): def add_url_article(request):
userID = request.POST.get('userID', '') userID = request.POST.get('userID', '')
title = request.POST.get('title', '') title = request.POST.get('title', '')
......
...@@ -250,7 +250,6 @@ def article_html(request, article_id): ...@@ -250,7 +250,6 @@ def article_html(request, article_id):
# 新建文章页面 # 新建文章页面
@csrf_exempt
def write_art_html(request): def write_art_html(request):
if request.is_ajax(): if request.is_ajax():
userID = request.POST.get('userID', '') userID = request.POST.get('userID', '')
...@@ -341,7 +340,6 @@ def check_admin_privilage(user_id): ...@@ -341,7 +340,6 @@ def check_admin_privilage(user_id):
# 管理员 # 管理员
def admin(request): def admin(request):
admin_id = request.session.get('admin_id') admin_id = request.session.get('admin_id')
admin_id = 4
if admin_id == None: if admin_id == None:
if request.method != 'POST': if request.method != 'POST':
return HttpResponseNotFound('<h1>Page not found</h1>') return HttpResponseNotFound('<h1>Page not found</h1>')
...@@ -502,7 +500,6 @@ def add_user(request): ...@@ -502,7 +500,6 @@ def add_user(request):
return render(request, 'admin.html') return render(request, 'admin.html')
@csrf_exempt
def add_sub_score(request): def add_sub_score(request):
if request.is_ajax(): if request.is_ajax():
action = request.POST.get("action") action = request.POST.get("action")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment