Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example: No such command 'init_db' #91

Closed
jbhanks opened this issue Apr 16, 2021 · 3 comments
Closed

Example: No such command 'init_db' #91

jbhanks opened this issue Apr 16, 2021 · 3 comments

Comments

@jbhanks
Copy link

jbhanks commented Apr 16, 2021

Hi, is the example supposed to be self-contained (except of course for installing the necessary modules)?

I have tried to follow the instructions, but it does not run for me as-is:

(pagination_example) ➜  example git:(master) ✗ python sql.py
Usage: sql.py [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  fill-data  fill records to database
  init-db    initialize database and tables
(pagination_example) ➜  example git:(master) ✗ python sql.py init_db
Usage: sql.py [OPTIONS] COMMAND [ARGS]...
Try 'sql.py --help' for help.

Error: No such command 'init_db'.

I'm sure this is some basic configuration issue that I happen not to be aware of, but some help would be appreciated.

@lixxu
Copy link
Owner

lixxu commented Apr 19, 2021

it's init-db not init_db

@jbhanks
Copy link
Author

jbhanks commented Apr 19, 2021

Thanks, that worked. You should correct the readme.md, which says init_db. It's all the more confusing because there is a function in sql.py that IS called init_db.

@lixxu
Copy link
Owner

lixxu commented Apr 19, 2021

sorry, updated.

@lixxu lixxu closed this as completed Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants