28
-
29
-    location /fly  {
30
-        alias /home/paiai/work/pai2/media/fly;  # your Django project's media files - amend as required
31
-    }
32
-}
33
-
34
-# configuration of the server
35
-server {
36
-    # the port your site will be served on
37
-    listen      80;
38
-    # the domain name it will serve for
39
-    server_name .api.pai.ai .api.xfoto.com.cn; # substitute your machine's IP address or FQDN
40
-    charset     utf-8;
41
-
42
-    # max upload size
43
-    client_max_body_size 75M;   # adjust to taste
44
-
45
-    # Django media
46
-    location /media  {
47
-        alias /home/paiai/work/pai2/media;  # your Django project's media files - amend as required
48
-    }
49
-
50
-    location /static {
51
-        alias /home/paiai/work/pai2/collect_static; # your Django project's static files - amend as required
52
-    }
53
-
54
-    # Finally, send all non-media requests to the Django server.
55
-    location / {
56
-        # uwsgi_pass  pai2;
57
-        proxy_pass  http://pai2;
58
-        include     /home/paiai/work/pai2/pai2/uwsgi/uwsgi_params; # the uwsgi_params file you installed
59
-    }
60
-}
61
-
62
-# configuration of the server
63
-server {
64
-    # the port your site will be served on
65
-    listen      80;
66
-    # the domain name it will serve for
67
-    server_name .pai.ai .xfoto.com.cn; # substitute your machine's IP address or FQDN
68
-    charset     utf-8;
69
-
70
-    # max upload size
71
-    client_max_body_size 75M;   # adjust to taste
72
-
73
-    # Django media
74
-    location /media  {
75
-        alias /home/paiai/work/pai2/media;  # your Django project's media files - amend as required
76
-    }
77
-
78
-    location /static {
79
-        alias /home/paiai/work/pai2/collect_static; # your Django project's static files - amend as required
80
-    }
81
-
82
-    # Finally, send all non-media requests to the Django server.
83
-    location / {
84
-        # uwsgi_pass  pai2;
85
-        proxy_pass  http://pai2;
86
-        include     /home/paiai/work/pai2/pai2/uwsgi/uwsgi_params; # the uwsgi_params file you installed
87
-    }
88
-}

+ 0 - 12
pai2/deploy.bak/pai2_supervisor.conf

@@ -1,12 +0,0 @@
1
-[program:pai2]
2
-command=/home/paiai/env/bin/uwsgi --ini /home/paiai/work/pai2/pai2/uwsgi/pai2.ini
3
-autostart=true
4
-autorestart=true
5
-startretries=3
6
-exitcodes=0,1,2
7
-stopsignal=KILL
8
-stopasgroup=true
9
-killasgroup=true
10
-stdout_logfile=/var/log/supervisor_pai2_access.log
11
-stderr_logfile=/var/log/supervisor_pai2_error.log
12
-user=paiai

+ 14 - 14
photo/templates/photo/photo_detail.html

@@ -14,12 +14,12 @@
14 14
 
15 15
             /* For Download Section */
16 16
             .download_section {position:fixed;right:0;bottom:0;left:0;height:55px;padding:5px;background:#f0f0f0;box-sizing:border-box}
17
-            .pai2_icon {width:45px;height:45px;float:left}
18
-            .pai2_icon>img {width:100%;height:100%}
19
-            .pai2_desc {height:45px;padding:5px 0 0 5px;float:left}
20
-            .pai2_name {padding-top:2px;font-size:14px;text-align:left}
21
-            .pai2_des {padding-top:2px;font-size:12px;line-height:23px;color:#8f8f8f;text-align:left}
22
-            .pai2_download {position:relative;top:5px;width:100px;height:35px;line-height:35px;text-align:center;background:#d13621;color:#fff;border-radius:5px;float:right;text-decoration:none}
17
+            .kodo_icon {width:45px;height:45px;float:left}
18
+            .kodo_icon>img {width:100%;height:100%}
19
+            .kodo_desc {height:45px;padding:5px 0 0 5px;float:left}
20
+            .kodo_name {padding-top:2px;font-size:14px;text-align:left}
21
+            .kodo_des {padding-top:2px;font-size:12px;line-height:23px;color:#8f8f8f;text-align:left}
22
+            .kodo_download {position:relative;top:5px;width:100px;height:35px;line-height:35px;text-align:center;background:#d13621;color:#fff;border-radius:5px;float:right;text-decoration:none}
23 23
             /* For PC */
24 24
             body, .download_section {
25 25
                 max-width: 414px !important;
@@ -35,22 +35,22 @@
35 35
         </div>
36 36
 
37 37
         <div id="download_section" class="download_section">
38
-            <div class="pai2_icon">
39
-                <img src="{% static 'pai2/img/paiai_96_96.png' %}">
38
+            <div class="kodo_icon">
39
+                <img src="{% static 'kodo/img/paiai_96_96.png' %}">
40 40
             </div>
41
-            <div class="pai2_desc">
42
-                <div class="pai2_name">拍爱</div>
43
-                <div class="pai2_des">即拍即分享</div>
41
+            <div class="kodo_desc">
42
+                <div class="kodo_name">拍爱</div>
43
+                <div class="kodo_des">即拍即分享</div>
44 44
             </div>
45
-            <a href="https://api.pai.ai/op/download" target="_blank" id="pai2_download" class="pai2_download">立即下载</a>
45
+            <a href="https://api.pai.ai/op/download" target="_blank" id="kodo_download" class="kodo_download">立即下载</a>
46 46
         </div>
47 47
 
48 48
         <script type="text/javascript" src="//cdn.bootcss.com/zepto/1.1.6/zepto.min.js"></script>
49 49
         <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
50
-        <script type="text/javascript" src="{% static 'pai2/js/jswe-0.0.4.js' %}"></script>
50
+        <script type="text/javascript" src="{% static 'kodo/js/jswe-0.0.4.js' %}"></script>
51 51
         <script>
52 52
             V.initWxData({
53
-                imgUrl: "http://pai.ai/static/pai2/img/paiai_96_96.png",
53
+                imgUrl: "http://pai.ai/static/kodo/img/paiai_96_96.png",
54 54
                 link: window.location.href,
55 55
                 desc: "我使用拍爱分享了一张美图,你也快来试试吧",
56 56
                 title: "拍爱",

+ 14 - 14
photo/templates/photo/session_detail.html

@@ -14,12 +14,12 @@
14 14
 
15 15
             /* For Download Section */
16 16
             .download_section {position:fixed;right:0;bottom:0;left:0;height:55px;padding:5px;background:#f0f0f0;box-sizing:border-box}
17
-            .pai2_icon {width:45px;height:45px;float:left}
18
-            .pai2_icon>img {width:100%;height:100%}
19
-            .pai2_desc {height:45px;padding:5px 0 0 5px;float:left}
20
-            .pai2_name {padding-top:2px;font-size:14px;text-align:left}
21
-            .pai2_des {padding-top:2px;font-size:12px;line-height:23px;color:#8f8f8f;text-align:left}
22
-            .pai2_download {position:relative;top:5px;width:100px;height:35px;line-height:35px;text-align:center;background:#d13621;color:#fff;border-radius:5px;float:right;text-decoration:none}
17
+            .kodo_icon {width:45px;height:45px;float:left}
18
+            .kodo_icon>img {width:100%;height:100%}
19
+            .kodo_desc {height:45px;padding:5px 0 0 5px;float:left}
20
+            .kodo_name {padding-top:2px;font-size:14px;text-align:left}
21
+            .kodo_des {padding-top:2px;font-size:12px;line-height:23px;color:#8f8f8f;text-align:left}
22
+            .kodo_download {position:relative;top:5px;width:100px;height:35px;line-height:35px;text-align:center;background:#d13621;color:#fff;border-radius:5px;float:right;text-decoration:none}
23 23
             /* For PC */
24 24
             body, .download_section {
25 25
                 max-width: 414px !important;
@@ -37,22 +37,22 @@
37 37
         </div>
38 38
 
39 39
         <div id="download_section" class="download_section">
40
-            <div class="pai2_icon">
41
-                <img src="{% static 'pai2/img/paiai_96_96.png' %}">
40
+            <div class="kodo_icon">
41
+                <img src="{% static 'kodo/img/paiai_96_96.png' %}">
42 42
             </div>
43
-            <div class="pai2_desc">
44
-                <div class="pai2_name">拍爱</div>
45
-                <div class="pai2_des">即拍即分享</div>
43
+            <div class="kodo_desc">
44
+                <div class="kodo_name">拍爱</div>
45
+                <div class="kodo_des">即拍即分享</div>
46 46
             </div>
47
-            <a href="https://api.pai.ai/op/download" target="_blank" id="pai2_download" class="pai2_download">立即下载</a>
47
+            <a href="https://api.pai.ai/op/download" target="_blank" id="kodo_download" class="kodo_download">立即下载</a>
48 48
         </div>
49 49
 
50 50
         <script type="text/javascript" src="//cdn.bootcss.com/zepto/1.1.6/zepto.min.js"></script>
51 51
         <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
52
-        <script type="text/javascript" src="{% static 'pai2/js/jswe-0.0.4.js' %}"></script>
52
+        <script type="text/javascript" src="{% static 'kodo/js/jswe-0.0.4.js' %}"></script>
53 53
         <script>
54 54
             V.initWxData({
55
-                imgUrl: "http://pai.ai/static/pai2/img/paiai_96_96.png",
55
+                imgUrl: "http://pai.ai/static/kodo/img/paiai_96_96.png",
56 56
                 link: window.location.href,
57 57
                 desc: "我使用拍爱分享了一张美图,你也快来试试吧",
58 58
                 title: "拍爱",

+ 1 - 1
utils/redis/rpatch.py

@@ -1,6 +1,6 @@
1 1
 # -*- coding: utf-8 -*-
2 2
 
3
-from pai2.basemodels import PlatformMixin
3
+from kodo.basemodels import PlatformMixin
4 4
 from utils.redis.connect import r
5 5
 from utils.redis.rkeys import APP_PATCH_INFO
6 6
 

+ 1 - 1
utils/redis/rsettings.py

@@ -1,6 +1,6 @@
1 1
 # -*- coding: utf-8 -*-
2 2
 
3
-from pai2.basemodels import PlatformMixin
3
+from kodo.basemodels import PlatformMixin
4 4
 from utils.redis.connect import r
5 5
 from utils.redis.rkeys import APP_SETTINGS_INFO
6 6
 

+ 1 - 1
website/views.py

@@ -4,5 +4,5 @@ from django.conf import settings
4 4
 from django.shortcuts import redirect
5 5
 
6 6
 
7
-def pai2_home(request):
7
+def kodo_home(request):
8 8
     return redirect(settings.WEBSITE_MOBI if request.mobile else settings.WEBSITE_PC)

kodo - Gogs: Go Git Service

Nessuna descrizione

Brightcells: 3253541b10 change to exec raw sql from django.db.connection to records 10 anni fa
..
error 03304ad48a add api guest_status_api & modify api guest_login_api 10 anni fa
redis e4567ea2de fix call set_group_users_info after group user removed 10 anni fa
sql 3253541b10 change to exec raw sql from django.db.connection to records 10 anni fa
__init__.py 52ce35cbfc add api uuid_init/uuid 10 anni fa
disk_utils.py af2b3f483f change download.html to be generated from download.tmpl.html 10 anni fa
ip_utils.py 3454610bb7 add api of user signup/login 10 anni fa
original_CGzC_10a50000c8811190.jpg 4a8b4f8819 add watermark 10 anni fa
original_CGzC_10a50000c8811190副本.jpg 4a8b4f8819 add watermark 10 anni fa
page_utils.py 30daca135b add api message_list_api/message_type_list_api/message_read_api 10 anni fa
paiai_96_96.png 4a8b4f8819 add watermark 10 anni fa
thumbnail_utils.py 5c9e21b29b add Only Once Function statistic_thumbnail_size to statistic thumbnail size 10 anni fa
url_utils.py bbc43c96ec add photo_share_url 10 anni fa
version_utils.py 63eaee0951 modify guest_login_api 10 anni fa
watermark_utils.py 4a8b4f8819 add watermark 10 anni fa