ines-code">
-<div id="footer">
176
-	<div class="content foot">
177
-	<a href="{%  url 'pai2_aboutus' %}" target="_self" >关于我们</a>
178
-	<span>|</span>
179
-	<a href="{%  url 'pai2_contactus' %}" target="_self" >联系我们</a>
180
-    <span>|</span>
181
-	<a href="{%  url 'pai2_termofservice' %}" target="_self" >服务条款</a>
182
-
183
-	©2016 拍爱 PAI.AI 北京佳艺徕经贸有限责任公司 琼ICP备16000076号
184
-	</div>
185
-</div>
186
-</body>
187
-</html>

+ 3 - 18
website/views.py

@@ -1,23 +1,8 @@
1 1
 # -*- coding: utf-8 -*-
2 2
 
3
-from django.shortcuts import render
3
+from django.conf import settings
4
+from django.shortcuts import redirect
4 5
 
5 6
 
6 7
 def pai2_home(request):
7
-    return render(request, 'website/index.html', {})
8
-
9
-
10
-def pai2_aboutus(request):
11
-    return render(request, 'website/aboutus.html', {})
12
-
13
-
14
-def pai2_contactus(request):
15
-    return render(request, 'website/contactus.html', {})
16
-
17
-
18
-def pai2_joinus(request):
19
-    return render(request, 'website/joinus.html', {})
20
-
21
-
22
-def pai2_termofservice(request):
23
-    return render(request, 'website/termofservice.html', {})
8
+    return redirect(settings.WEBSITE_MOBI if request.mobile else settings.WEBSITE_PC)

adminSystem - Gogs: Go Git Service

Нет описания

.eslintignore 51B

    /build/ /config/ /dist/ /*.js /test/unit/coverage/