gopalraha / boot-django

Bootstrap Project for installing Django on ubuntu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

boot-django

Bootstrap Django 1.4.1 on ubuntu

About

This project contains a script for a fresh install of Django. It is based on ami-82fa58eb, an Ubuntu Precise 12.04 AMD64 Server AMI. I used Eddy Chan's Blog as the source.

To install, once you get a fresh instance, do a

git clone https://github.com/singhj/boot-django.git

in a user directory. Then, run the a_base_install.sh script. When the script completes, edit settings.py appropriately and populate project files.

Caveats

  • Django admin interfaces are turned on in this build. You can comment them out if you want.
  • It's been tested for the AMI mentioned above. For other AMIs, your mileage will vary.
  • The script calls for three inputs. There are no defaults -- all three inputs must be provided.
  • It would be nice if the script was restartable in the event of errors.
  • It is set up to install and use Postgres as the back end database.

Open to pull requests

If you get the script working on another platform, or another AMI, please send me a pull request.

Postscript

You will probably want to make these adjustments on your machine

  • Keep the clock synchronized: Ubuntu Time
  • Set up ownership of /var/log/apache2 and any Django loggers to www-data (the Apache user) and ubuntu, respectively. See this for how to.

Securing Django

With inspiration from Red Robot Studios...

About

Bootstrap Project for installing Django on ubuntu


Languages

Language:Shell 52.3%Language:Python 43.7%Language:HTML 2.7%Language:ApacheConf 1.3%