English 中文(简体)
我可以采取什么措施,从其他方面保护我贾戈地区的源法?
原标题:What measures can I take to safeguard the source code of my django site from others?

我仅仅花了一年时间才拿起猪又.。 部署django站点仍然是我有许多问题,尽管我已成功地用人工部署了我的场址。 我在部署方面的最大问题之一是,我可以采取哪些措施来保障我的手稿的来源代码,包括登戈时的密码。 py, from others, especially when my website conducted on a factshop provided by some 3rd party. 我要求我不要再说一遍,但我的源码正在第三方服务器上运行,而有人在服务器上可以查阅任何/任何地方,这使我感到不安。

问题回答

几乎不存在贵国主办机构对你的来源代码感兴趣的情况。 大部分网站的源代码只值很高。

如果你真的认为有必要保护你的源代码,那么,最好的办法是使其不受你拥有和控制的系统的影响,并且完全可以进入。

否则,有几种混淆假的技术,其中最直截了当的只是把pyc文档推向生产服务器,而不是将py文档推给生产服务器。 然而,与Django相比,这不是标准做法,因为接收供应商偷窃网站来源代码实际上不是一个紧迫问题。 我不知道这一技术是否与Django具体合作。

If someone has the privileges to access anything/anywhere on the server you can t do much, because what you can do others can do too, you can try some way of obfuscation but that will not work. Only solution is NOT to use such shared repository.

Edit: options

  1. Keep working with shared repository if your data is not very sensitive
  2. Use dedicated hosting from companies like rack-space etc
  3. Use AWS to run your own instance
  4. Use google-app-engine server but that may require a DB change
  5. Run your own server (most secure)

虽然你的来源代码可能罚款,但我建议不要将你的配置密码存放在平原上,而不论是否编纂法典。 相反,服务器上有适当密码的斜体,服务器生成了在日志中提交的密码的斜体,而相比之下。 标准安全做法。

Then again I could just be talking out my rear end since I haven t fussed about with Django yet.

Protecting source code is not that important IMHO. I would just deploy compiled files and not worry too much about it.

保护你的信条(特别密码)确实很重要。 友好点很好。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签