django实现开发、测试、生产环境配置区分
Tags
attack-pattern: | Python - T1059.006 |
Common Information
Type | Value |
---|---|
UUID | b7f9ca9f-a797-49f6-b9fb-b6232380520b |
Fingerprint | b230917cbab2ea36 |
Analysis status | DONE |
Considered CTI value | 0 |
Text language | |
Published | June 20, 2024, midnight |
Added to db | Sept. 16, 2024, 2:29 p.m. |
Last updated | Nov. 17, 2024, 6:50 p.m. |
Headline | django实现开发、测试、生产环境配置区分 |
Title | django实现开发、测试、生产环境配置区分 |
Detected Hints/Tags/Attributes | 5/1/25 |
Source URLs
Redirection | Url | |
---|---|---|
Details | Source | https://cn-sec.com/archives/3174056.html |
URL Provider
RSS Feed
Details | Id | Enabled | Feed title | Url | Added to db |
---|---|---|---|---|---|
Details | 483 | ✔ | CN-SEC 中文网 | https://cn-sec.com/feed/ | 2024-08-30 22:08 |
Attributes
Details | Type | #Events | CTI | Value |
---|---|---|---|---|
Details | Domain | 1 | ishareblog.com |
|
Details | Domain | 14 | manage.py |
|
Details | Domain | 1 | xiejava.ishareread.com |
|
Details | File | 1 | 针对不同的环境创建不同的设置文件settings.py |
|
Details | File | 1 | 如开发环境settings_dev.py |
|
Details | File | 1 | 测试环境setting_test.py |
|
Details | File | 1 | 正式生产环境使用默认的setting.py |
|
Details | File | 1 | 对于共性的配置可以抽取到base.py |
|
Details | File | 1 | 其他的设置文件可以继承base.py |
|
Details | File | 1 | 其他的设置文件要继承base.py |
|
Details | File | 1 | setting_test.py |
|
Details | File | 2 | 'django.db |
|
Details | File | 1 | backends.sql |
|
Details | File | 1 | 'test_db.sql |
|
Details | File | 1 | setting_dev.py |
|
Details | File | 1 | 否则多对多模型迁移报django.db |
|
Details | File | 1 | 可以在wsgi.py |
|
Details | File | 1 | 在开发环境中使用manage.py |
|
Details | File | 1 | 可以修改manage.py |
|
Details | File | 13 | manage.py |
|
Details | File | 1 | ishareblog.settings |
|
Details | File | 1 | 可以配置成ishareblog.settings |
|
Details | File | 1 | 解决不同环境去频繁修改settings.py |
|
Details | IPv4 | 1441 | 127.0.0.1 |
|
Details | Url | 1 | http://xiejava.ishareread.com |