ines-code">
-<div id="footer">
- <div class="content foot">
- <a href="{% url 'pai2_aboutus' %}" target="_self" >关于我们</a>
- <span>|</span>
- <a href="{% url 'pai2_contactus' %}" target="_self" >联系我们</a>
- <span>|</span>
- <a href="{% url 'pai2_termofservice' %}" target="_self" >服务条款</a>
-
- ©2016 拍爱 PAI.AI 北京佳艺徕经贸有限责任公司 琼ICP备16000076号
- </div>
-</div>
-</body>
-</html>
@@ -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) |