Opened 6 years ago
Closed 6 years ago
#3 closed task (fixed)
config management
| Reported by: | zhangjr | Owned by: | zhangjr |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | component1 | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Parent ID: | Parent Tickets: | ||
| Estimated Number of Hours: | 0.0 | Add Hours to Ticket: | 0 |
| Billable?: | yes | Total Hours: | 0 |
Description
app = Flask(name, instance_relative_config=True)
# load configure file from config
app.config.from_object('config.production')
# load configure file from instance
app.config.from_pyfile('default.py')
├── config
│ ├── development.py
│ └── production.py
├── instance
│ └── default.py
Subtickets
Child Tickets
Change History (2)
comment:1 Changed 6 years ago by zhangjr
- Owner changed from somebody to zhangjr
- Status changed from new to accepted
comment:2 Changed 6 years ago by zhangjr
- Resolution set to fixed
- Status changed from accepted to closed
Note: See
TracTickets for help on using
tickets.
