python - Creating portable Django apps - help needed -


I am creating a Django app, which I run comfortably on Ubuntu Linux host (test :)). I want to package the app code without the source code and distribute it to another production machine. Ideally the app / runapp can be executed by the command, which starts a cherry server that runs the dragon / digengo code.

I've suggested several ways to do this:

  1. Distribute the .pyc files only and create and install all the requirements on the target machine.
  2. Using one of several tools to package the python app in a distributed package.

I'm actually hunting for the option nr.2, I have to add my own demo application, so it is possible to distribute it without the need to install or configure additional things. . From the search of the interwaves, I get more questions than the answer and a lot of coughing taste. Digenango Packing is a mysterious art that everyone knows, but no one speaks about it :)

I have freeze (unsuccessful) Have tried, (easy install version fails, repository version works, but app output fails) and red at dbuilder.py (which is working, t actually work - I think) if i rightI understand from Ng that the more problems arise does Dijengo import module (for example), but I have no idea how to solve it.

If anybody can provide signals or good resources about online packing / distribution of standon DJing applications.

I recommend that you base on your disks (a tool that increases standard python distro mechanizm).

Using setuptools, you should be able to create a Python egg containing your application. Egg metadata can have a list of dependencies that will be automatically installed by easy_install (this may include Django + any third-party modules / packages you use).

The setuptools / distutils can be included in the distros that can be installed in the / usr / bin so that you can set your runapp script How can incorporate

If you are not familiar with it, I suggest that you take a look at it. This is a way to create a different Python environment, it will be very useful to test your disto.

Here is a blog post, which contains some information on VirtualVNVI, as well as a few other good information tools:


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -