Skip to content
cyruslab

cyruslab

Try Harder!

Tag: UserMixin

[python]Flask-login Usermixin raised exception: ‘No `id` attribute – override `get_id`’

I was doing my User model by inheriting UserMixin from flask-login, an exception was raised: This is because I implemented my own "userid" by replacing the default "id" attribute in UserMixin, so for id columns just use the default "id" and not implement any attribute according to your wish if you want to use UserMixin … Continue reading [python]Flask-login Usermixin raised exception: ‘No `id` attribute – override `get_id`’ →

cyruslab Python, Scripting Leave a comment September 20, 2019September 20, 2019 1 Minute
Follow cyruslab on WordPress.com

Categories

Archives

Recent Posts

  • hackthebox – Shocker December 9, 2020
  • Simple terminal in python December 8, 2020
  • linux – Grab the ipv4 address from interface December 8, 2020
  • service ports discover with nmap December 7, 2020
  • hackthebox – Bank December 4, 2020
  • hackthebox – Buff December 3, 2020
  • python – Generating RSA key pairs with pycryptodome module November 16, 2020
  • Golang – Writing a command line program with urfave/cli package November 6, 2020
  • Golang – Encode Json data October 28, 2020
  • Golang – Find absolute path of a file. October 28, 2020
Create a free website or blog at WordPress.com.
Cancel
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy