• 大小: 75KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-09
  • 语言: Python
  • 标签:

资源简介

使用Flask和sqlite3编写的项目目录应用程序

资源截图

代码片段和文件信息


from flask import Flask render_template request redirect url_for flash
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.exc import IntegrityError
from database_setup import base Category Item User
from flask import session as login_session
import random
import string
from oauth2client.client import flow_from_clientsecrets
from oauth2client.client import FlowExchangeError
import httplib2
import json
from flask import make_response jsonify
import requests

app = Flask(__name__)

engine = create_engine(‘sqlite:///catalogapp.db‘)
base.metadata.bind = engine

DBSession = sessionmaker(bind=engine)
session = DBSession()

# Google+ client id and application name
CLIENT_ID = json.loads(
    open(‘client_secrets.json‘ ‘r‘).read())[‘web‘][‘client

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-01-10 01:30  Cool-Item-Cataloger-master\
     文件       22983  2017-01-10 01:30  Cool-Item-Cataloger-master\application.py
     文件        1656  2017-01-10 01:30  Cool-Item-Cataloger-master\database_setup.py
     文件        1737  2017-01-10 01:30  Cool-Item-Cataloger-master\db_seed.py
     文件         812  2017-01-10 01:30  Cool-Item-Cataloger-master\readme.md
     目录           0  2017-01-10 01:30  Cool-Item-Cataloger-master\static\
     目录           0  2017-01-10 01:30  Cool-Item-Cataloger-master\static\css\
     文件         383  2017-01-10 01:30  Cool-Item-Cataloger-master\static\css\home.css
     目录           0  2017-01-10 01:30  Cool-Item-Cataloger-master\static\css\vendor\
     文件      121260  2017-01-10 01:30  Cool-Item-Cataloger-master\static\css\vendor\bootstrap.min.css
     目录           0  2017-01-10 01:30  Cool-Item-Cataloger-master\static\js\
     文件           0  2017-01-10 01:30  Cool-Item-Cataloger-master\static\js\home.js
     目录           0  2017-01-10 01:30  Cool-Item-Cataloger-master\static\js\vendor\
     文件       36868  2017-01-10 01:30  Cool-Item-Cataloger-master\static\js\vendor\bootstrap.min.js
     文件       85659  2017-01-10 01:30  Cool-Item-Cataloger-master\static\js\vendor\jquery-2.2.3.min.js
     目录           0  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\
     文件        4134  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\application.html
     目录           0  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\categories\
     文件        1013  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\categories\delete.html
     文件        1533  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\categories\edit.html
     文件        1097  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\categories\new.html
     文件        1330  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\categories\show.html
     文件         912  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\home.html
     目录           0  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\items\
     文件        1070  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\items\delete.html
     文件        1407  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\items\edit.html
     文件        1398  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\items\new.html
     文件         718  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\items\show.html
     文件        1790  2017-01-10 01:30  Cool-Item-Cataloger-master\templates\login.html

评论

共有 条评论