ue label">0 プルリクエスト 0 コミット 942 リリース 0

説明なし

Kimi.Huang: 9e6c98109a user's num 7 年 前
..
0001_initial.py 44a6cdf337 Statistic 8 年 前
0002_provincesalestatisticinfo.py 4efb7f6f87 Statistic 8 年 前
0003_provincesalestatisticinfo_position.py 08557546f6 Add position for ProvinceSaleStatisticInfo 8 年 前
0004_auto_20180426_0952.py 7c4311f505 Change ymd as IntegerField 8 年 前
0005_auto_20180508_1057.py c7b55979c0 Add province code/name for DistributorInfo 8 年 前
0006_auto_20180508_1830.py 537c495621 Statistic 8 年 前
0007_auto_20180517_1819.py 2988703c52 Update 8 年 前
0008_auto_20181007_0322.py de639f39e8 Makemigrations 8 年 前
0009_saleclerksalestatisticinfo.py 61ba06b9aa V2 TJ 8 年 前
0010_auto_20181025_2137.py deb84bfcb5 Makemigrations 8 年 前
0011_consumeuserstatisticinfo.py e9f8a35b9d Makemigrations 8 年 前
0012_auto_20181117_0052.py b8784eee8a Makemigrations 8 年 前
0013_auto_20190403_1917.py 9e6c98109a user's num 7 年 前
__init__.py 44a6cdf337 Statistic 8 年 前
add app to add page user_agreement/contact_us · 8b7c49ddb9 - Gogs: Go Git Service

add app to add page user_agreement/contact_us

Brightcells 10 lat temu
rodzic
commit
8b7c49ddb9

+ 0 - 0
page/__init__.py


+ 3 - 0
page/admin.py

@@ -0,0 +1,3 @@
1
+from django.contrib import admin
2
+
3
+# Register your models here.

+ 0 - 0
page/migrations/__init__.py


+ 3 - 0
page/models.py

@@ -0,0 +1,3 @@
1
+from django.db import models
2
+
3
+# Create your models here.

+ 10 - 0
page/templates/page/contact_us.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>

+ 10 - 0
page/templates/page/user_agreement.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>

+ 3 - 0
page/tests.py

@@ -0,0 +1,3 @@
1
+from django.test import TestCase
2
+
3
+# Create your tests here.

+ 11 - 0
page/views.py

@@ -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', {})

+ 1 - 0
pai2/settings.py

@@ -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
 )

+ 6 - 0
pai2/urls.py

@@ -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 += [