Friday 15 April 2011

How to deploy a completed Django application to an existing apache server? -


I have installed Python and Django, both are testing and working now. I wanted to download a Django app from and then install it on a web server. After opening the tarball file, what instructions should I upload? Created the "Django Project" folder created by running "Python-admin.py startproject myprojectname"? Need to edit some files in app file? thank you in advanced!

The instructions are on the LFS documentation site () ....

  Http://pypi.python.org/pypi/django-lfs $ tar xzf django-lfs-installer-> version & gt; .tar.gz Download the installer from $ cd lfs-installer $ python Bootstrap.py $ bin / buildout -v Widget your database settings on lfs_project / settings.py $ bin / django syncdb $ bin / django $ bin / django lfs_init $ Bin / django collectstatic $ bin / django runner http: // Browse localhost: 8000   

You must either install mysql or postgresql on your server and then according to lfs_project / settings.py Edit it.

I was looking through the various url.py within the lfs app and they look quite broad. If you want to integrate them with your app, it would be better to start with LFS and then instead of making your own stuff, instead, on the contrary.

No comments:

Post a Comment