推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
shawlib
V2EX  ›  Python

django 日志问题

  •  
  •   shawlib · Dec 24, 2018 · 2577 views
    This topic created in 2710 days ago, the information mentioned may be changed or developed.
    想让 django 输出每次 request POST 过来的 json 数据,LOGGING 应该怎么配置?求大佬解答 0.0
    14 replies    2018-12-25 12:14:14 +08:00
    Trim21
        1
    Trim21  
       Dec 24, 2018 via Android   ❤️ 1
    自己手动加一个中间件
    Vegetable
        2
    Vegetable  
       Dec 24, 2018   ❤️ 2
    https://docs.djangoproject.com/en/2.1/topics/http/middleware/

    if request.method=="POST":
    logger.debug(request.body)
    ithou
        3
    ithou  
       Dec 24, 2018 via Android
    跑个题。Django 怎么用 Pycharm 打开 db.sqlite3 数据库文件
    Trim21
        4
    Trim21  
       Dec 24, 2018 via Android
    @ithou 找一下 有一个 database 的功能,可以用来连接数据库的
    xpresslink
        5
    xpresslink  
       Dec 24, 2018
    @ithou Django 怎么用 Pycharm 打开 db.sqlite3 数据库文件

    你这不是跑跑题而是语无论次
    shawlib
        6
    shawlib  
    OP
       Dec 24, 2018
    哈哈,感谢感谢
    fei110339
        7
    fei110339  
       Dec 24, 2018
    lifeintools
        8
    lifeintools  
       Dec 24, 2018
    问个问题。django 需要 join 多张表的查询数据,怎么写比较合适?
    neoblackcap
        9
    neoblackcap  
       Dec 24, 2018
    @lifeintools raw sql
    ithou
        10
    ithou  
       Dec 24, 2018 via Android
    @xpresslink 写代码写傻了?戾气。麻烦你 Block me. 我重新组织语言:在 PyCharm 里面的 Django Project 里,请问如何才能打开,并浏览 db.sqlite3 数据库文件?
    Phishion
        11
    Phishion  
       Dec 24, 2018
    @ithou 帮你找了一个 https://www.jianshu.com/p/32556afe548f 希望能帮到你
    julyclyde
        12
    julyclyde  
       Dec 25, 2018
    @ithou 是该 block 你。你为什么来这里跑题啊!
    xpresslink
        13
    xpresslink  
       Dec 25, 2018
    @ithou 其实你的问题和 django 根本没有关系好吧,再者你需要把文件和库两个不同概念搞清楚。尽管你努力地重新组织了语言,但还是没有什么轮次。我第一次回复你的那句无论是从你的做法上还是事实上并没有说错,你回复里头一句就说我写代码写傻了?反倒说我戾气。确实要 block 你。
    ithou
        14
    ithou  
       Dec 25, 2018 via Android
    @xpresslink 谢谢您!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5732 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 02:40 · PVG 10:40 · LAX 19:40 · JFK 22:40
    ♥ Do have faith in what you're doing.