책에 소개된 예제 코드들이 각 장의 폴더를 통해서 제공됩니다.
wikibook / flask Goto Github PK
View Code? Open in Web Editor NEW『파이썬 웹 프로그래밍 : 플라스크를 이용한 쉽고 빠른 웹 개발』 예제 코드
Home Page: http://wikibook.co.kr/flask-revised/
『파이썬 웹 프로그래밍 : 플라스크를 이용한 쉽고 빠른 웹 개발』 예제 코드
Home Page: http://wikibook.co.kr/flask-revised/
I am having some problems with the library version or dependency in chapter 5.
I am working with python 3.8, werkzeug version 2.0.1
This is the error I get.
`2021-08-10 11:15:00,684 - INFO - static folder : /home/jypark/Documents/GitHub/WebDevelopment/flask-repo/wikibooks/ch05/photolog/photolog/../static
2021-08-10 11:15:00,684 - INFO - template folder : ../templates
Traceback (most recent call last):
File "/home/jypark/Documents/GitHub/WebDevelopment/flask-repo/wikibooks/ch05/photolog/runserver.py", line 14, in
application = create_app()
File "/home/jypark/Documents/GitHub/WebDevelopment/flask-repo/wikibooks/ch05/photolog/photolog/init.py", line 81, in create_app
from photolog.cache_session import SimpleCacheSessionInterface
File "/home/jypark/Documents/GitHub/WebDevelopment/flask-repo/wikibooks/ch05/photolog/photolog/cache_session.py", line 17, in
from werkzeug.contrib.cache import NullCache, SimpleCache, RedisCache
ModuleNotFoundError: No module named 'werkzeug.contrib'
Process finished with exit code 1'
I tried to downgrade the werkzeug version to 1.0.0 with pip install werkzeug==1.0.0
but then I get this error
`Traceback (most recent call last):
File "/home/jypark/Documents/GitHub/WebDevelopment/flask-repo/wikibooks/ch05/photolog/runserver.py", line 12, in
from photolog import create_app
File "/home/jypark/Documents/GitHub/WebDevelopment/flask-repo/wikibooks/ch05/photolog/photolog/init.py", line 15, in
from flask import Flask, render_template, request, url_for
File "/home/jypark/virenv/flask-env/lib/python3.8/site-packages/flask/init.py", line 7, in
from .app import Flask as Flask
File "/home/jypark/virenv/flask-env/lib/python3.8/site-packages/flask/app.py", line 19, in
from werkzeug.local import ContextVar
ImportError: cannot import name 'ContextVar' from 'werkzeug.local' (/home/jypark/virenv/flask-env/lib/python3.8/site-packages/werkzeug/local.py)
Process finished with exit code 1`
Did anyone else have the same problem?
Thanks in advance!
안녕하세요. 공부하다 오류가 발생해 더 이상 진행을 할 수가 없어 문의드립니다.
이클립스에서 ch02 hello.py 실행 시 아래와 같은 오류가 나는데
웹서버를 추가로 설치해야 하나요?
조치방법을 구체적으로 부탁드립니다.
<오류내용>
제목 그대로 minitwit의 웹페이지 소스를 활용할려고 합니다. 그래서 라이센스가 어떻게 되는지 궁금해서 질문드립니다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.