from flask import Flask, render_template #플라스크 라이브러리로 서버를 띄우는 방법
from data import Articles
app = Flask(__name__) #대문자 플라스크는 클라스 객체생성
app.debug = True

@app.route('/')
def index():
    print("Success")
    #return "Test"
    return render_template('home.html', hello = "Daechan")

@app.route('/about')
def about():
    print("Success")
    #return "Test"
    return render_template('about.html', hello = "Daechan")

@app.route('/articles', methods = ['GET', 'post'])
def articles():
    print("Success")
    #return "Test"
    articles = Articles()
    print(len(articles))
    return render_template('articles.html', articles = articles)

if __name__=="__main__":
    # app.run(host = '0.0.0.0', port='50')
    app.run()

1bbc4944afa8095de300b8fea36f4b8c3b798278
<mask token>


@app.route('/')
def index():
    print('Success')
    return render_template('home.html', hello='Daechan')


<mask token>


@app.route('/articles', methods=['GET', 'post'])
def articles():
    print('Success')
    articles = Articles()
    print(len(articles))
    return render_template('articles.html', articles=articles)


<mask token>

<mask token>


@app.route('/')
def index():
    print('Success')
    return render_template('home.html', hello='Daechan')


@app.route('/about')
def about():
    print('Success')
    return render_template('about.html', hello='Daechan')


@app.route('/articles', methods=['GET', 'post'])
def articles():
    print('Success')
    articles = Articles()
    print(len(articles))
    return render_template('articles.html', articles=articles)


if __name__ == '__main__':
    app.run()

<mask token>
app = Flask(__name__)
app.debug = True


@app.route('/')
def index():
    print('Success')
    return render_template('home.html', hello='Daechan')


@app.route('/about')
def about():
    print('Success')
    return render_template('about.html', hello='Daechan')


@app.route('/articles', methods=['GET', 'post'])
def articles():
    print('Success')
    articles = Articles()
    print(len(articles))
    return render_template('articles.html', articles=articles)


if __name__ == '__main__':
    app.run()

from flask import Flask, render_template
from data import Articles
app = Flask(__name__)
app.debug = True


@app.route('/')
def index():
    print('Success')
    return render_template('home.html', hello='Daechan')


@app.route('/about')
def about():
    print('Success')
    return render_template('about.html', hello='Daechan')


@app.route('/articles', methods=['GET', 'post'])
def articles():
    print('Success')
    articles = Articles()
    print(len(articles))
    return render_template('articles.html', articles=articles)


if __name__ == '__main__':
    app.run()

from flask import Flask, render_template #플라스크 라이브러리로 서버를 띄우는 방법
from data import Articles
app = Flask(__name__) #대문자 플라스크는 클라스 객체생성
app.debug = True

@app.route('/')
def index():
    print("Success")
    #return "Test"
    return render_template('home.html', hello = "Daechan")

@app.route('/about')
def about():
    print("Success")
    #return "Test"
    return render_template('about.html', hello = "Daechan")

@app.route('/articles', methods = ['GET', 'post'])
def articles():
    print("Success")
    #return "Test"
    articles = Articles()
    print(len(articles))
    return render_template('articles.html', articles = articles)

if __name__=="__main__":
    # app.run(host = '0.0.0.0', port='50')
    app.run()
