Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danny-dasilva/flask-url-shortener
https://github.com/danny-dasilva/flask-url-shortener
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/danny-dasilva/flask-url-shortener
- Owner: Danny-Dasilva
- Created: 2019-06-18T05:24:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T06:31:52.000Z (almost 2 years ago)
- Last Synced: 2024-04-18T14:16:50.435Z (8 months ago)
- Language: HTML
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask-Url-Shortener
commands to remake the database
### Step 1
change the database uri
*in settings.py*
`SQLALCHEMY_DATABASE_URI = 'sqlite:///db.sqlite3' `
### Step 2
type ` python`
then
from url_shortener import create_app
from url_shortener.extensions import db
from url_shortener.models import Link
db.create_all(app=create_app())