'module' object has no attribute 'TextField'
See original GitHub issueTraceback (most recent call last):
File "runserver.py", line 5, in <module>
from portalapp import app
File "/Users/myuser/myapp/__init__.py", line 4, in <module>
from flask_ldap_login import LDAPLoginManager
File "/Users/myuser/myapp/lib/python2.7/site-packages/flask_ldap_login/__init__.py", line 216, in <module>
class LDAPLoginForm(wtf.Form):
File "/Users/myuser/myapp/lib/python2.7/site-packages/flask_ldap_login/__init__.py", line 224, in LDAPLoginForm
username = wtf.TextField('Username', validators=[wtf.Required()])
AttributeError: 'module' object has no attribute 'TextField'
Issue Analytics
- State:
- Created 9 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
[Django] AttributeError: 'module' object has no attribute ...
Let's try creating TextField in Django form by updating forms.py . This is because, there is no attribute as the TextField associated with...
Read more >module 'django.db.models' has no attribute 'TextArea'
Model Have no attribute TextArea(). If you know the maximum length of text that can be entered using text area then you can...
Read more >Django 3.2 AttributeError: 'TextField' object has no attribute ...
I've an existing project on Django 3.1 and I upgraded my project to Django 3.2. I created an app called payment on my...
Read more >module 'django.db.models' has no attribute 'TextArea'
Model Have no attribute TextArea(). If you know the maximum length of text that can be entered using text area then you can...
Read more >Form fields - Django documentation
Widgets of required form fields have the required HTML attribute. ... Raises AttributeError: 'NoneType' object has no attribute 'seek'.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@szilvesztercsab I’ve just released flask-ldap-login-0.3.0 with flask-wtf >= 0.8 fix included.
0.10.2 is the latest release on PyPI – the docs are just out of date.
Looking at the upgrade doc, it looks as though the field imports are no longer supported:
Looks like the code needs to change to be future-proof.