Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielfalcao/django_dreamhost
Super-duper script that configures a clean Python 2.5, Django, PIL, FLUP and Mysql support in Dreamhost
https://github.com/gabrielfalcao/django_dreamhost
Last synced: about 1 hour ago
JSON representation
Super-duper script that configures a clean Python 2.5, Django, PIL, FLUP and Mysql support in Dreamhost
- Host: GitHub
- URL: https://github.com/gabrielfalcao/django_dreamhost
- Owner: gabrielfalcao
- Created: 2009-05-25T23:41:09.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-05-28T06:20:56.000Z (over 14 years ago)
- Last Synced: 2024-10-03T00:27:10.976Z (about 1 month ago)
- Language: Shell
- Homepage: http://gabrielfalcao.com/2008/12/02/hosting-and-deploying-django-apps-on-dreamhost/
- Size: 86.9 KB
- Stars: 12
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nutshell
access your dreamhost account through SSH and run:
curl http://github.com/gabrielfalcao/django_dreamhost/raw/master/django_dreamhost.sh -o - | bashafterwards you'll be able to setup new django projects with the command:
djangify myproj# what is this about
There are many ways to set up a Python environment without root
permissions.I really don't like virtualenv, easy_install and other python's
workaroundish solutions.This is a structure that creates a brand new python environment to
your user, so you can put your Django projects running on Dreamhost in
a few minutes.# how does it works
The main script, django_dreamhost.sh does everything in a single shot.
* Download the following tarballs:
* Python 2.6.5
* Setuptools 0.6c11* Create a fake-root directory in user's home: $HOME/.myroot
* Create "etc" subdir
* Compile and install Python under $HOME/usr as $prefix
* Install the rest of python modules (Django, PIL, etc.)* Download install auxiliary scripts, through script-templates and replace its internal strings.
* per project .htaccess template
* per project WSGI passenger template
* djangifier template* Create the default projects dir:
* $HOME/projects# djangifier, the big deal!
The big feature of this project is the djangifier, it is a script that
setup a new Django project structure.You just get to run.
I.e:
djangify my-project-name
creates a directory: `$HOME/projects/my-project-name`
adds a ready-to-run copy of files: `.htaccess` and `passenger_wsgi.py`That's all!