已有184人关注
示例项目 无法执行
发表在Python图书答疑 2020-08-04 悬赏:10 学分 《Python从入门到项目实践》第29章 e起去旅行网站 451页-451页
是否精华
版块置顶:

(venv) X:\Users\Administrator\Desktop\python\29\Travel>python manage.py do init

Traceback (most recent call last):

  File "manage.py", line 8, in <module>

    app = create_app('default')

  File "X:\Users\Administrator\Desktop\python\29\Travel\app\__init__.py", line 15, in create_app

    from app.home import home as home_blueprint

  File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\__init__.py", line 7, in <module>

    import app.home.views

  File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\views.py", line 4, in <module>

    from app.home.forms import LoginForm,RegisterForm,SuggetionForm

  File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\forms.py", line 7, in <module>

    class RegisterForm(FlaskForm):

  File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\forms.py", line 23, in RegisterForm

    Email("邮箱格式不正确!")

  File "X:\Users\Administrator\Desktop\python\29\Travel\venv\lib\site-packages\wtforms\validators.py", line 332, in __init__

    raise Exception("Install 'email_validator' for email validation support.")

Exception: Install 'email_validator' for email validation support.



---

(venv) X:\Users\Administrator\Desktop\python\29\Travel>python manage.py runserver

Traceback (most recent call last):

  File "manage.py", line 8, in <module>

    app = create_app('default')

  File "X:\Users\Administrator\Desktop\python\29\Travel\app\__init__.py", line 15, in create_app

    from app.home import home as home_blueprint

  File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\__init__.py", line 7, in <module>

    import app.home.views

  File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\views.py", line 4, in <module>

    from app.home.forms import LoginForm,RegisterForm,SuggetionForm

  File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\forms.py", line 7, in <module>

    class RegisterForm(FlaskForm):

  File "X:\Users\Administrator\Desktop\python\29\Travel\app\home\forms.py", line 23, in RegisterForm

    Email("邮箱格式不正确!")

  File "X:\Users\Administrator\Desktop\python\29\Travel\venv\lib\site-packages\wtforms\validators.py", line 332, in __init__

    raise Exception("Install 'email_validator' for email validation support.")

Exception: Install 'email_validator' for email validation support.


2020-08-04 22:31:32编辑
分享到:
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照