Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package a django project and its dependencies for a standalone "product"

Tags:

I've made a small little "application" utilizing Django as a framework. This is an application that is not ment to be deployed to a server but run locally on a machine. Thus the runserver.py works just nice.

I, as an developer is comfortable with fireing up the terminal, running python manage.py runserver and using it.

But I have some Mac OS X and Windows friends wanting to use my application, and they dont have virtualenv, git or anything else.

Is there a way I can package this to be a standalone product? Of course it would depend on Python being installed on the system, but it is possbile to package the virtualenv — with django and everything, and just copy it to another system and make it work?

And maybe even run the runserver in some kind a deamon mode?

like image 277
espenhogbakk Avatar asked Dec 15 '10 16:12

espenhogbakk


People also ask

How do you package Python codes with dependencies?

Project name – enter a name for your project in quotes. Python packages and Python modules to include in the distribution (dist) – the find_packages(',') default argument will incorporate all packages that include an __init__.py file and are located in the local directory (dir) where setup.py is installed.

What is package in Django?

Django Packages is a directory of reusable apps, sites, tools, and more for your Django projects.


1 Answers

Use setuptools and easy_install.

Here's an introductory article.

like image 98
marr75 Avatar answered Sep 22 '22 18:09

marr75