Added *.db to .gitignore and now a database is created when running

database.py
This commit is contained in:
benaryorg 2014-05-22 16:42:46 +02:00
parent 5299fdd309
commit b629942b84
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
*.swp *.swp
*.pyo *.pyo
*.pyc *.pyc
*.db

View file

@ -13,5 +13,5 @@ def init_db():
import models import models
Base.metadata.create_all(bind=engine) Base.metadata.create_all(bind=engine)
if __name__=='__name__': if __name__=='__main__':
init_db() init_db()