My first Personal Project: Dance Matching platform_10) 2020_04_23

오범준·2020년 4월 23일
0

-- To dos --

1) Changing python version in Linux

I googled and people said
add

#-*- coding: utf-8 -*

in the 1st or 2nd line in python.py

But...it didn't still work.
The problem here is that,
we are adding that code to execute "Korean" in python.

But if I was using python version3. instead of version2, I don't need to add that. since default setting of python3 is "utf-8"

than....
Especially in Linux.
it was using python2.....

So I thought of changing version of python in Linux

Changing version of Python in Ubuntu

So I found out that. Ubuntu was basically using python version 2

I tried to install python 3.6 and change version......
BUt.. it didn't...work...

BUt I found easy way..
When you are making virtual environment...
try

python3 -m venv ./myenv

instead of

python -m venv ./myenv

That is , you are obviously mentioning
you are going to use "python3" to make virtual environment

2) Adding "One Million Dance Studio" class info to DB

The problem..? here is that,
I thought I could get the data by each boxes,
but in this case...
actual content of classes are grouped by "time"
not the "day"

which makes me harder to arrange the datas into the data structure I want

> Solution

3) Revising Front-End of the Site

1) add the video links of each datas
2) Add additional link
ex. introducing each Academys
3) if possible, searching for Choreographers

4) Adding additional column to the DB

1) later

5) Search Function in DB

For instance, if I click "리뷰 작성하기"
Then, I wanted to get the appropriate Dance class info from the DB

1) Do I have to use "GET" ? "POST" ?

  • GET!!!

why?
If I change the DB : Post
if I don't : Get

In search, I don't change the DB

so I have to use "GET"

2) Then, how do I send the info to the DB, if

I don't fill the "data" when, I use "GET"

but I have to send the info... HOW?

  • I have to change the url, by applying template string

url?user=${user_id}&name=${user_name}

additionally

  • I have to change the server code also
    " google by flask get query parameter "
profile
Dream of being "물빵개" ( Go abroad for Dance and Programming)

0개의 댓글