推荐学习书目
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
pc10201
V2EX  ›  Python

关于 django 项目布局

  •  
  •   pc10201 · Aug 29, 2016 · 3155 views
    This topic created in 3542 days ago, the information mentioned may be changed or developed.
    《 two scoops django 》推荐了

    https://github.com/pydanny/cookiecutter-django

    另外还有 mozilla 公司布局模板

    https://github.com/mozilla/sugardough

    我都下载了试用了一下,觉得很不适应哈,感觉自己功力不行哈,

    有没有推荐的 django 布局模板?还是用原生的?
    8 replies    2016-08-29 15:52:48 +08:00
    nooper
        1
    nooper  
       Aug 29, 2016 via iPad
    啥叫布局模板
    tmackan
        2
    tmackan  
       Aug 29, 2016
    @nooper
    相当于是最佳实践吧
    比如每个 app 的 templates 都单独放在 app 下面。类似这种。
    vicalloy
        3
    vicalloy  
       Aug 29, 2016
    我用 Django 默认的布局。
    最主要的是自己觉得清晰就好。
    nooper
        4
    nooper  
       Aug 29, 2016 via iPad
    @tmackan 不不,最佳实践是拆分,和低耦合。如果可以分离前后端就分离
    NaVient
        5
    NaVient  
       Aug 29, 2016
    可能楼主只是想要一个模版,你们想多了,用 mezzanine 吧。
    tmackan
        6
    tmackan  
       Aug 29, 2016
    @nooper 那搞不懂你要什么了。
    glasslion
        7
    glasslion  
       Aug 29, 2016
    cookiecutter-django 基本是社区公认的最佳实践了

    有啥不适应的可以贴出来让大家看看
    pc10201
        8
    pc10201  
    OP
       Aug 29, 2016
    @glasslion 组件很多,感觉自己不会用哈
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5446 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 01:18 · PVG 09:18 · LAX 18:18 · JFK 21:18
    ♥ Do have faith in what you're doing.