FlaskBB
A lightweight forum software in Flask
shingprofile picture

shing

Member
Last seen 5 years ago
Joined:
Posts:
16
Topics:
2

I'm receiving an error trying to create a new 'SelectField' called 'testfield' in templates/user/change_user_details.html

  1. /user/models.py

I add the following line:
enter image description here

  1. /user/forms.py

I add the following:
enter image description here

  1. /management/forms.py

I add the following:
enter image description here

  1. /templates/user/change_user_details.html

I add the following:
enter image description here

  1. By my understanding, to migrate changes I use this command:
    enter image description here

  2. I then run the server:
    enter image description here

  3. I receive this error message:
    enter image description here

  4. Also when I check SQLite, 'testfield' has not been created:
    enter image description here

What am I doing wrong?

I'm installing using the guide.

I don't know what settings to give the flaskbb.cfg configuration file:

  1. Path to save: (left blank)
  2. Server name: localhost
  3. HTTPS?: n
  4. Postgres/SQLAlchemy: (left blank)
  5. Use redis?: n
  6. Mail server: localhost
  7. SMTP Port: 25
  8. TLS for sending mail?: N
  9. SSL for sending mail?: N
  10. Mail username: (left blank)
  11. Mail password: (left blank)
  12. Mail sender name: (left blank)
  13. Mail sender address: (left blank)
  14. Mail admin email: (left blank)
  15. Logging Config Path: (left blank)

With these settings I then install from the config and run. I receive these messages from the terminal:
enter image description here

Accessing localhost:5000 I only get this and the following messages from the terminal:
enter image description here

Thanks in advance, I'm a bit of a newbie!