Skip to content

Commit 8af7f4d

Browse files
committed
Errors on web hosting fixed
Update signupsuccess.html as well
1 parent db1b1c3 commit 8af7f4d

File tree

5 files changed

+29
-20
lines changed

5 files changed

+29
-20
lines changed

frame/db.py

+11
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ def get_secret(setting, secrets=secrets):
3131
# 'use_unicode': True
3232
# }
3333

34+
# 구름 계정 연결
35+
# config = {
36+
# 'database': 'sizedb',
37+
# 'user': 'project2',
38+
# 'password': get_secret("GR_PASSWORD"),
39+
# 'host': '54.93.174.140',
40+
# 'port': 52512,
41+
# 'charset': 'utf8',
42+
# 'use_unicode': True
43+
# }
44+
3445
# 로컬 계정 연결
3546
config = {
3647
'database': 'sizedb',

frame/schema.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CREATE TABLE customer(
99
height FLOAT,
1010
weight INT,
1111
right_size VARCHAR(5)
12-
);
12+
) DEFAULT CHARSET=utf8;
1313

1414
ALTER TABLE customer ADD PRIMARY KEY(id);
1515
ALTER TABLE customer MODIFY COLUMN pwd VARCHAR(15) NOT NULL;

static/assets/img/logo/logo.png

7.07 KB
Loading

templates/signup_in.html

+13-15
Original file line numberDiff line numberDiff line change
@@ -99,35 +99,28 @@ <h1 data-animation="fadeInUp" data-delay=".6s">Sign Up <br> with Fitcha</h1>
9999
onfocus="this.placeholder = ''" onblur="this.placeholder = 'First Name'" required
100100
class="single-input">
101101
</div>
102-
<div class="mt-10 col-lg-6">
103-
<input type="number" name="age" placeholder="Age*"
104-
onfocus="this.placeholder = ''" onblur="this.placeholder = 'Age'" required
105-
class="single-input">
106-
</div>
107-
</div>
108-
<div class="row d-flex align-items-center">
109102
<div class="mt-10 col-lg-6">
110103
<input type="password" name="pwd" placeholder="Password*"
111104
onfocus="this.placeholder = ''" onblur="this.placeholder = 'Password'" required
112105
class="single-input">
113106
</div>
114-
<div class="mt-10 col-lg-6">
115-
<input type="text" name="ht" placeholder="Height(cm)*"
116-
onfocus="this.placeholder = ''" onblur="this.placeholder = 'Height'" required
117-
class="single-input">
118-
</div>
119107
</div>
120108
<div class="row d-flex align-items-center">
121109
<div class="mt-10 col-lg-6">
110+
<input type="text" name="name" placeholder="Username*"
111+
onfocus="this.placeholder = ''" onblur="this.placeholder = 'Username'" required
112+
class="single-input">
122113
</div>
123114
<div class="mt-10 col-lg-6">
124-
<p>Height to one decimal point</p>
115+
<input type="number" name="age" placeholder="Age*"
116+
onfocus="this.placeholder = ''" onblur="this.placeholder = 'Age'" required
117+
class="single-input">
125118
</div>
126119
</div>
127120
<div class="row d-flex align-items-center">
128121
<div class="mt-10 col-lg-6">
129-
<input type="text" name="name" placeholder="Username*"
130-
onfocus="this.placeholder = ''" onblur="this.placeholder = 'Username'" required
122+
<input type="text" name="ht" placeholder="Height(cm)*"
123+
onfocus="this.placeholder = ''" onblur="this.placeholder = 'Height'" required
131124
class="single-input">
132125
</div>
133126
<div class="mt-10 col-lg-6">
@@ -136,6 +129,11 @@ <h1 data-animation="fadeInUp" data-delay=".6s">Sign Up <br> with Fitcha</h1>
136129
class="single-input">
137130
</div>
138131
</div>
132+
<div class="row d-flex align-items-center">
133+
<div class="mt-10 col-lg-9">
134+
<p>└ Height to one decimal point</p>
135+
</div>
136+
</div>
139137
<div class="row d-flex align-items-center">
140138
<div class="mt-10 col-lg-6"><p>* Mandatory field</p></div>
141139
</div>

templates/signupsuccess.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<script>
1414
$(document).ready(function() {
1515
setTimeout(function() {
16-
window.location.href = '{% url 'home' %}' // 페이지 리디렉션
16+
window.location.href = '{% url 'sign' %}#signin' // 페이지 리디렉션
1717
}, 5000);
1818
});
1919
</script>
@@ -93,7 +93,8 @@
9393
<div class="row d-flex justify-content-center">
9494
<div class="col-lg-8">
9595
<div class="section-tittle text-center mb-80">
96-
<h2>Thanks for joining Fitcha! You are ready to enjoy our service.</h2>
96+
<h2>Thanks for joining Fitcha!<h3>
97+
<h3>You are ready to enjoy our service.</h3>
9798
</div>
9899
</div>
99100
</div>
@@ -107,8 +108,7 @@ <h2>Thanks for joining Fitcha! You are ready to enjoy our service.</h2>
107108
<div class="row">
108109
<div class="col-lg-12">
109110
<blockquote class="generic-blockquote">
110-
Your
111-
You will be redirected to the sign in page to start with Fitcha.
111+
You will be redirected to the sign in page to start with Fitcha.
112112
</blockquote>
113113
</div>
114114
</div>

0 commit comments

Comments
 (0)