积分充值
 首页
前端开发
AngularDartElectronFlutterHTML/CSSJavaScriptReactSvelteTypeScriptVue.js构建工具
后端开发
.NetC#C++C语言DenoffmpegGoIdrisJavaJuliaKotlinLeanMakefilenimNode.jsPascalPHPPythonRISC-VRubyRustSwiftUML其它语言区块链开发测试微服务敏捷开发架构设计汇编语言
数据库
Apache DorisApache HBaseCassandraClickHouseFirebirdGreenplumMongoDBMySQLPieCloudDBPostgreSQLRedisSQLSQLiteTiDBVitess数据库中间件数据库工具数据库设计
系统运维
AndroidDevOpshttpdJenkinsLinuxPrometheusTraefikZabbix存储网络与安全
云计算&大数据
Apache APISIXApache FlinkApache KarafApache KyuubiApache OzonedaprDockerHadoopHarborIstioKubernetesOpenShiftPandasrancherRocketMQServerlessService MeshVirtualBoxVMWare云原生CNCF机器学习边缘计算
综合其他
BlenderGIMPKiCadKritaWeblate产品与服务人工智能亿图数据可视化版本控制笔试面试
文库资料
前端
AngularAnt DesignBabelBootstrapChart.jsCSS3EchartsElectronHighchartsHTML/CSSHTML5JavaScriptJerryScriptJestReactSassTypeScriptVue前端工具小程序
后端
.NETApacheC/C++C#CMakeCrystalDartDenoDjangoDubboErlangFastifyFlaskGinGoGoFrameGuzzleIrisJavaJuliaLispLLVMLuaMatplotlibMicronautnimNode.jsPerlPHPPythonQtRPCRubyRustR语言ScalaShellVlangwasmYewZephirZig算法
移动端
AndroidAPP工具FlutterFramework7HarmonyHippyIoniciOSkotlinNativeObject-CPWAReactSwiftuni-appWeex
数据库
ApacheArangoDBCassandraClickHouseCouchDBCrateDBDB2DocumentDBDorisDragonflyDBEdgeDBetcdFirebirdGaussDBGraphGreenPlumHStreamDBHugeGraphimmudbIndexedDBInfluxDBIoTDBKey-ValueKitDBLevelDBM3DBMatrixOneMilvusMongoDBMySQLNavicatNebulaNewSQLNoSQLOceanBaseOpenTSDBOracleOrientDBPostgreSQLPrestoDBQuestDBRedisRocksDBSequoiaDBServerSkytableSQLSQLiteTiDBTiKVTimescaleDBYugabyteDB关系型数据库数据库数据库ORM数据库中间件数据库工具时序数据库
云计算&大数据
ActiveMQAerakiAgentAlluxioAntreaApacheApache APISIXAPISIXBFEBitBookKeeperChaosChoerodonCiliumCloudStackConsulDaprDataEaseDC/OSDockerDrillDruidElasticJobElasticSearchEnvoyErdaFlinkFluentGrafanaHadoopHarborHelmHudiInLongKafkaKnativeKongKubeCubeKubeEdgeKubeflowKubeOperatorKubernetesKubeSphereKubeVelaKumaKylinLibcloudLinkerdLonghornMeiliSearchMeshNacosNATSOKDOpenOpenEBSOpenKruiseOpenPitrixOpenSearchOpenStackOpenTracingOzonePaddlePaddlePolicyPulsarPyTorchRainbondRancherRediSearchScikit-learnServerlessShardingSphereShenYuSparkStormSupersetXuperChainZadig云原生CNCF人工智能区块链数据挖掘机器学习深度学习算法工程边缘计算
UI&美工&设计
BlenderKritaSketchUI设计
网络&系统&运维
AnsibleApacheAWKCeleryCephCI/CDCurveDevOpsGoCDHAProxyIstioJenkinsJumpServerLinuxMacNginxOpenRestyPrometheusServertraefikTrafficUnixWindowsZabbixZipkin安全防护系统内核网络运维监控
综合其它
文章资讯
 上传文档  发布文章  登录账户
IT文库
  • 综合
  • 文档
  • 文章

无数据

分类

全部后端开发(11)Python(11)Flask(11)

语言

全部英语(10)法语(1)

格式

全部PDF文档 PDF(6)其他文档 其他(5)
 
本次搜索耗时 0.032 秒,为您找到相关结果约 11 个.
  • 全部
  • 后端开发
  • Python
  • Flask
  • 全部
  • 英语
  • 法语
  • 全部
  • PDF文档 PDF
  • 其他文档 其他
  • 默认排序
  • 最新排序
  • 页数排序
  • 大小排序
  • 全部时间
  • 最近一天
  • 最近一周
  • 最近一个月
  • 最近三个月
  • 最近半年
  • 最近一年
  • pdf文档 Flask入门教程

    设置数据库 URI 第 5 章:数据库 35 为了设置 Flask、扩展或是我们程序本身的一些行为,我们需要设置和定义一些配 置变量。Flask 提供了一个统一的接口来写入和获取这些配置变 量: Flask.config 字典。配置变量的名称必须使用大写,写入配置的语句一般 会放到扩展类实例化语句之前。 下面写入了一个 SQLALCHEMY_DATABASE_URI 变量来告诉 接地址: import os # ... app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////' + os.path. join(app.root_path, 'data.db') 注意 这个配置变量的最后一个单词是 URI,而不是 URL。 对于这个变量值,不同的 DBMS 有不同的格式,对于 SQLite 来说,这个值的格式 如下: 称和后缀你可以自由定义,一般会使用 .db、.sqlite 和 .sqlite3 作为后缀。 另外,如果你使用 Windows 系统,上面的 URI 前缀部分需要写入三个斜线(即 sqlite:/// )。在本书的示例程序代码里,做了一些兼容性处理,另外还新设 置了一个配置变量,实际的代码如下: 第 5 章:数据库 36 import os import sys from flask import
    0 码力 | 127 页 | 7.62 MB | 1 年前
    3
  • epub文档 Flask-RESTful Documentation Release 0.3.10

    from flask_restful import fields, marshal_with resource_fields = { 'task': fields.String, 'uri': fields.Url('todo_ep') } class TodoDao(object): def __init__(self, todo_id, task): Url & Other Concrete Fields Flask-RESTful includes a special field, fields.Url, that synthesizes a uri for the resource that’s being requested. This is also a good example of how to add data to your response called api.add_resource() 'uri': fields.Url('todo_resource'), 'random': RandomNumber, } By default fields.Url returns a relative uri. To generate an absolute uri that includes the scheme, hostname
    0 码力 | 42 页 | 84.60 KB | 1 年前
    3
  • pdf文档 Flask-RESTful Documentation Release 0.3.10

    response. from flask_restful import fields, marshal_with resource_fields = { 'task': fields.String, 'uri': fields.Url('todo_ep') } class TodoDao(object): def __init__(self, todo_id, task): self.todo_id Url & Other Concrete Fields Flask-RESTful includes a special field, fields.Url, that synthesizes a uri for the resource that’s being requested. This is also a good example of how to add data to your response when you called api.add_resource() 'uri': fields.Url('todo_resource'), 'random': RandomNumber, } By default fields.Url returns a relative uri. To generate an absolute uri that includes the scheme, hostname
    0 码力 | 39 页 | 212.29 KB | 1 年前
    3
  • pdf文档 Flask-RESTful Documentation Release 0.3.6

    OrderedDict from flask_restful import fields, marshal_with resource_fields = { 'task': fields.String, 'uri': fields.Url('todo_ep') } 6 Chapter 1. User’s Guide Flask-RESTful Documentation, Release 0.3.6 class Url & Other Concrete Fields Flask-RESTful includes a special field, fields.Url, that synthesizes a uri for the resource that’s being requested. This is also a good example of how to add data to your response add_resource() 'uri': fields.Url('todo_resource'), 1.4. Output Fields 15 Flask-RESTful Documentation, Release 0.3.6 'random': RandomNumber, } By default fields.Url returns a relative uri. To generate
    0 码力 | 46 页 | 245.60 KB | 1 年前
    3
  • epub文档 Flask-RESTful Documentation Release 0.3.6

    from flask_restful import fields, marshal_with resource_fields = { 'task': fields.String, 'uri': fields.Url('todo_ep') } class TodoDao(object): def __init__(self, todo_id, task): Url & Other Concrete Fields Flask-RESTful includes a special field, fields.Url, that synthesizes a uri for the resource that’s being requested. This is also a good example of how to add data to your response called api.add_resource() 'uri': fields.Url('todo_resource'), 'random': RandomNumber, } By default fields.Url returns a relative uri. To generate an absolute uri that includes the scheme, hostname
    0 码力 | 49 页 | 91.90 KB | 1 年前
    3
  • pdf文档 Flask-RESTful Documentation Release 0.3.7

    response. from flask_restful import fields, marshal_with resource_fields = { 'task': fields.String, 'uri': fields.Url('todo_ep') } class TodoDao(object): def __init__(self, todo_id, task): self.todo_id Url & Other Concrete Fields Flask-RESTful includes a special field, fields.Url, that synthesizes a uri for the resource that’s being requested. This is also a good example of how to add data to your response when you called api.add_resource() 'uri': fields.Url('todo_resource'), 'random': RandomNumber, } By default fields.Url returns a relative uri. To generate an absolute uri that includes the scheme, hostname
    0 码力 | 50 页 | 253.09 KB | 1 年前
    3
  • pdf文档 Flask-RESTful Documentation Release 0.3.8

    response. from flask_restful import fields, marshal_with resource_fields = { 'task': fields.String, 'uri': fields.Url('todo_ep') } class TodoDao(object): def __init__(self, todo_id, task): self.todo_id Url & Other Concrete Fields Flask-RESTful includes a special field, fields.Url, that synthesizes a uri for the resource that’s being requested. This is also a good example of how to add data to your response when you called api.add_resource() 'uri': fields.Url('todo_resource'), 'random': RandomNumber, } By default fields.Url returns a relative uri. To generate an absolute uri that includes the scheme, hostname
    0 码力 | 50 页 | 253.64 KB | 1 年前
    3
  • epub文档 Flask-RESTful Documentation Release 0.3.8

    from flask_restful import fields, marshal_with resource_fields = { 'task': fields.String, 'uri': fields.Url('todo_ep') } class TodoDao(object): def __init__(self, todo_id, task): Url & Other Concrete Fields Flask-RESTful includes a special field, fields.Url, that synthesizes a uri for the resource that’s being requested. This is also a good example of how to add data to your response called api.add_resource() 'uri': fields.Url('todo_resource'), 'random': RandomNumber, } By default fields.Url returns a relative uri. To generate an absolute uri that includes the scheme, hostname
    0 码力 | 55 页 | 93.30 KB | 1 年前
    3
  • epub文档 Flask-RESTful Documentation Release 0.3.7

    from flask_restful import fields, marshal_with resource_fields = { 'task': fields.String, 'uri': fields.Url('todo_ep') } class TodoDao(object): def __init__(self, todo_id, task): Url & Other Concrete Fields Flask-RESTful includes a special field, fields.Url, that synthesizes a uri for the resource that’s being requested. This is also a good example of how to add data to your response called api.add_resource() 'uri': fields.Url('todo_resource'), 'random': RandomNumber, } By default fields.Url returns a relative uri. To generate an absolute uri that includes the scheme, hostname
    0 码力 | 55 页 | 93.21 KB | 1 年前
    3
  • pdf文档 Flask Documentation (1.1.x)

    configuration: class Config(object): DEBUG = False TESTING = False DATABASE_URI = 'sqlite:///:memory:' class ProductionConfig(Config): DATABASE_URI = 'mysql://user@localhost/foo' (continues on next page) 80 Chapter database server.""" DEBUG = False TESTING = False DB_SERVER = '192.168.1.56' @property def DATABASE_URI(self): # Note: all caps return 'mysql://user@{}/foo'.format(self.DB_SERVER) class ProductionConfig(Config): 'localhost' DEBUG = True class TestingConfig(Config): DB_SERVER = 'localhost' DEBUG = True DATABASE_URI = 'sqlite:///:memory:' There are many different ways and it’s up to you how you want to manage your
    0 码力 | 291 页 | 1.25 MB | 1 年前
    3
共 11 条
  • 1
  • 2
前往
页
相关搜索词
Flask入门教程入门教程RESTfulDocumentationRelease0.3101.1
IT文库
关于我们 文库协议 联系我们 意见反馈 免责声明
本站文档数据由用户上传或本站整理自互联网,不以营利为目的,供所有人免费下载和学习使用。如侵犯您的权益,请联系我们进行删除。
IT文库 ©1024 - 2025 | 站点地图
Powered By MOREDOC AI v3.3.0-beta.70
  • 关注我们的公众号【刻舟求荐】,给您不一样的精彩
    关注我们的公众号【刻舟求荐】,给您不一样的精彩