authlib / example-oauth2-server

Example for OAuth 2 Server for Authlib.
https://authlib.org/
684 stars 285 forks source link

Error following README: flask initdb command results in "no such command" error #56

Closed shimniok closed 5 years ago

shimniok commented 5 years ago

To recreate on Linux Mint 18:

  1. git clone https://github.com/authlib/example-oauth2-server.git
  2. cd example-oauth2-server
  3. virtualenv env
  4. source env/bin/activate
  5. pip install -r requirements.txt
  6. export AUTHLIB_INSECURETRANSPORT=1 NOTE: the comment in README says to "Set Flask and Authlib environment variables:" but only provides one command show in #6._
  7. flask initdb

The output from #7 is as follows:

Usage: flask [OPTIONS] COMMAND [ARGS]...
Try "flask --help" for help.

Error: No such command "initdb".
lepture commented 5 years ago

Need to update readme. You don't need to type initdb command anymore due to https://github.com/authlib/example-oauth2-server/pull/53