开发者

How to structure a Django reusable app

开发者 https://www.devze.com 2023-03-11 09:48 出处:网络
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.

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

精彩评论

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