항해99/웹개발종합반PLUS 6

웹개발종합반PLUS 4주차-스위터 완성본

이걸 토대로 미니프로젝트를 만들어보면 좋을 것 같아서 조원과 공유하려고 깃헙에 올렸지만 일단 여기에도 올려본다. ------app.py from pymongo import MongoClient import jwt import datetime import hashlib from flask import Flask, render_template, jsonify, request, redirect, url_for from werkzeug.utils import secure_filename from datetime import datetime, timedelta app = Flask(__name__) app.config["TEMPLATES_AUTO_RELOAD"] = True app.config['UPLOAD_FO..

웹개발종합반PLUS 2주차 -(3)

$.ajax({ type: "GET", url: `https://cros-anywhere.herokuapp.com/https://owlbot.info/api/v4/dictionary/${word}`, beforeSend: function (xhr) { xhr.setRequestHeader("Authorization", "Token 2075d3979b9067568e36ee63ee70b1405d50072c"); }, data: {}, error: function (xhr, status, error) { alert("에러 발생!"); }, success: function (response) { console.log(response) } })​ owlbot단어장 가져오기 https://fontawesome.co..

웹개발종합반PLUS 2주차 -(2)

(1)글 용량 초관가..? 더 안 써져서 넘어옴. ----app.py from flask import Flask, render_template, request import requests app = Flask(__name__) @app.route('/') def main(): myname = "Sparta" return render_template("index.html", name=myname) @app.route('/detail/') def detail(keyword): r = requests.get('http://openapi.seoul.go.kr:8088/6d4d776b466c656533356a4b4b5872/json/RealtimeCityAir/1/99') response = r.json() ro..

웹개발종합반PLUS 2주차 -(1)

플라스크로 멀티페이지 만들기 파이참 설정 단축기 : ctrl+alt+s 서버구축 flask pymongo certifi(나는 필요) 오픈API에다 요청보내야하니까 requests ---app.py from flask import Flask, render_template app = Flask(__name__) @app.route('/') def main(): return render_template("index.html") @app.route('/detail') def detail(): return render_template("detail.html") if __name__ == '__main__': app.run('0.0.0.0', port=5000, debug=True) ---index.html 메인페..

웹개발종합반PLUS 4주차

Bulma : 우리가 써봤던 Bootstrap과 비슷하게, 미리 정해진 모습의 클래스를 가져다쓸 수 있는 무료 CSS 프레임워크 Bootstrap은 jQuery을 써서 웹사이트에서의 상호작용을 쉽게 구현할 수 있는 반면, Bulma는 순수한 CSS 프레임워크이기 때문에 기능을 직접 구현해야하지만 대신 더 자유롭게 커스터마이징이 가능해요. Bootstrap은 커뮤니티가 커서 테마나 플러그인 등이 개발이 많이 되어있고 질문에 대한 답이나 예시 등을 찾기 쉽고, Bulma는 문법이 직관적이고 Flexbox 등 최신기술을 많이 써요! 개인적으로 가장 중요한 이유 벌마의 기본 모양이 부트스트랩보다 더 예쁨. https://bulma.io/documentation/ Bulma: Free, open source, a..

웹개발종합반PLUS 1주차

flask pymongo dnspython requests bs4 패키지 설치 flask pymongo 패키지 설치 주석처리(ctrl+l) 사람 눈에는 보이지만 컴퓨터는 안 읽는 코드 html만 쓸 때는 그냥 파이참에서 크롬버튼 눌러도 되는데 서버에서 불러올 때는 파이참(x), localhost:5000 from flask import Flask, render_template, jsonify, request app = Flask(__name__) @app.route('/') def home(): return render_template('index.html') if __name__ == '__main__': app.run('0.0.0.0', port=5000, debug=True) ...?? 내용 날아갔..