Skip to content

Instantly share code, notes, and snippets.

@rsyring
Last active March 15, 2022 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsyring/1556bd4b2cd7d47967d158af18698ebd to your computer and use it in GitHub Desktop.
Save rsyring/1556bd4b2cd7d47967d158af18698ebd to your computer and use it in GitHub Desktop.
Webgrid example
# 1) Activate your virtualenv
# 2) Change directory into the webgrid source
# 3) Change the line at the following location to have "sqlite:///example.db" at the end:
# https://github.com/level12/webgrid/blob/7d99df84d32b0e70b1531c4d67ad53b1af6bfcb3/webgrid_ta/app.py#L33
# 4) Remove the two requirements from the following line that have "pyodbc" in them:
# https://github.com/level12/webgrid/blob/7d99df84d32b0e70b1531c4d67ad53b1af6bfcb3/setup.py#L11
~/projects/webgrid-src$ pip install --quiet -e .[develop,i18n]
~/projects/webgrid-src$ cd webgrid_ta/
~/projects/webgrid-src/webgrid_ta$ python manage.py create-db
~/projects/webgrid-src/webgrid_ta$ FLASK_ENV=development python manage.py run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment