开发者

How to structure a Django reusable app

I've written a bit of code to add version information to Django models. I'd like to 开发者_C百科release it out into the wild.

So, what's the best way to structure the project and also package it for distribution?

Thanks!


Here are some hints.


You should package your app up and upload it to pypi. Follow the guide here. It's a simple process. Make sure you have documentation, a README and LICENSE. Tests are pretty huge. Most people won't even bother with your app if you don't have tests. Django Pluggable Patterns is a great talk from Pycon 2011 about best practices for Django apps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜