我如何打包和销售Django应用程序? [英] How would I package and sell a Django app?

查看:174
本文介绍了我如何打包和销售Django应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在为我的客户开发一个Django应用程序,但是现在我开始把它卖给人们,让他们自己主办。

Currently I am hosting a Django app I developed myself for my clients, but I am now starting to look at selling it to people for them to host themselves.

我的问题是:如何打包和销售Django应用程序,同时保护其代码免受盗版或盗窃?分发一堆.py文件听起来不是一个好主意,因为我卖的人也可以复制它们并传递给他们。

My question is this: How can I package up and sell a Django app, while protecting its code from pirating or theft? Distributing a bunch of .py files doesn't sound like a good idea as the people I sell it to too could just make copies of them and pass them on.

我考虑到这个问题的目的,可以安全地假设每个购买这个的人都将运行相同的(LAMP)设置。

I think for the purpose of this problem it would be safe to assume that everyone who buys this would be running the same (LAMP) setup.

推荐答案

我建议销售Django应用程序作为一项服务 - 主持它或为他们销售代码并支持。写一个合同,禁止他们重新分配它。

I would suggest selling the Django application "as a service" - either host it for them, or sell them the code and support. Write up a contract that forbids them from redistributing it.

这就是说,如果你决定以某种方式混淆代码 - 你可以将python应用程序完全分发为.pyc (Python编译的字节码)..它是Py2App的工作原理。

That said, if you were determined to obfuscate the code in some way - you can distribute python applications entirely as .pyc (Python compiled byte-code).. It's how Py2App works.

它仍然可以重新分配,但是这将是非常困难的编辑文件 - 所以你可以添加一些基本的许可证,而不是被几个 s ..

It will still be re-distributable, but it will be very difficult to edit the files - so you could add some basic licensing stuff, and not have it foiled by a few #s..

正如我所说,我不认为你会通过加密或混淆等方式成功反盗版。根据你的客户,一个简单的合同,也许一些真正的基本检查将会远远超过一些复杂的解密系统(并使使用您的应用程序的经验更好,而不是希望不会更糟糕)

As I said, I don't think you'll succeed in anti-piracy via encryption or obfuscation etc.. Depending on your clients, a simple contract, and maybe some really basic checks will go a long much further than some complicated decryption system (And make the experience of using your application better, instead of hopefully not any worse)

这篇关于我如何打包和销售Django应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆