Skip to content
This repository was archived by the owner on Oct 7, 2023. It is now read-only.
This repository was archived by the owner on Oct 7, 2023. It is now read-only.

Сannot import name 'TextField' and 'Binary' #1

@CopyBook-Maxim

Description

@CopyBook-Maxim

Hi. I don't know how to use GitHub, and I don't know where to write. I decided to write here. While installing through Docker, I encountered two problems.

File "/app/base/forms.py", line 8, in
From wtforms import TextField, PasswordField
ImportError: cannot import name 'TextField'

File "/app/base/models.py", line 8, in
from sqlalchemy import Binary, Column, Integer, String
ImportError: cannot import name 'Binary'.

Changing the following parameters in the code helped:
'TextField' -> 'TextAreaField'.
''Binary'' -> 'BINARY'

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions