| @@ -0,0 +1,3 @@ | ||
| 1 | +from django.contrib import admin | |
| 2 | + | |
| 3 | +# Register your models here. | 
| @@ -0,0 +1,3 @@ | ||
| 1 | +from django.db import models | |
| 2 | + | |
| 3 | +# Create your models here. | 
| @@ -0,0 +1,10 @@ | ||
| 1 | +<!DOCTYPE html> | |
| 2 | +<html> | |
| 3 | +<head lang="en"> | |
| 4 | + <meta charset="UTF-8"> | |
| 5 | + <title>联系我们</title> | |
| 6 | +</head> | |
| 7 | +<body> | |
| 8 | + <div style="text-align: center;font-size: 50px;">联系我们页面</div> | |
| 9 | +</body> | |
| 10 | +</html> | 
| @@ -0,0 +1,10 @@ | ||
| 1 | +<!DOCTYPE html> | |
| 2 | +<html> | |
| 3 | +<head lang="en"> | |
| 4 | + <meta charset="UTF-8"> | |
| 5 | + <title>用户协议</title> | |
| 6 | +</head> | |
| 7 | +<body> | |
| 8 | + <div style="text-align: center;font-size: 50px;">用户协议页面</div> | |
| 9 | +</body> | |
| 10 | +</html> | 
| @@ -0,0 +1,3 @@ | ||
| 1 | +from django.test import TestCase | |
| 2 | + | |
| 3 | +# Create your tests here. | 
| @@ -0,0 +1,11 @@ | ||
| 1 | +# -*- coding: utf-8 -*- | |
| 2 | + | |
| 3 | +from django.shortcuts import render | |
| 4 | + | |
| 5 | + | |
| 6 | +def user_agreement(request): | |
| 7 | +    return render(request, 'page/user_agreement.html', {}) | |
| 8 | + | |
| 9 | + | |
| 10 | +def contact_us(request): | |
| 11 | +    return render(request, 'page/contact_us.html', {}) | 
| @@ -46,6 +46,7 @@ INSTALLED_APPS = ( | ||
| 46 | 46 | 'group', | 
| 47 | 47 | 'message', | 
| 48 | 48 | 'operation', | 
| 49 | + 'page', | |
| 49 | 50 | 'pay', | 
| 50 | 51 | 'photo', | 
| 51 | 52 | ) | 
| @@ -23,6 +23,7 @@ from django.contrib import admin | ||
| 23 | 23 | from rest_framework import routers | 
| 24 | 24 | from account import views as account_views | 
| 25 | 25 | from group import views as group_views | 
| 26 | +from page import views as page_views | |
| 26 | 27 | from photo import views as photo_views | 
| 27 | 28 |  | 
| 28 | 29 | router = routers.DefaultRouter() | 
| @@ -51,6 +52,11 @@ urlpatterns += [ | ||
| 51 | 52 | url(r'^r/(?P<photo>\w+)$', photo_views.photo_raw, name='photo_raw'), # raw image, only for finishers | 
| 52 | 53 | ] | 
| 53 | 54 |  | 
| 55 | +urlpatterns += [ | |
| 56 | + url(r'^page/user_agreement$', page_views.user_agreement, name='user_agreement'), # 用户协议页面 | |
| 57 | + url(r'^page/contact_us$', page_views.contact_us, name='contact_us'), # 联系我们页面 | |
| 58 | +] | |
| 59 | + | |
| 54 | 60 | # Wire up our API using automatic URL routing. | 
| 55 | 61 | # Additionally, we include login URLs for the browsable API. | 
| 56 | 62 | urlpatterns += [ |