Skip to content

acmeguy/django-kickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-kickstart

An attempt to create a private django based kickstart, please view this as "learn by doing" exercise rather than a viable option for anyone other than me. This project includes my favorite django modules making it my ideal starting point for elaborate web application projects.

Goal

Build a solid starting point for new, sizable, web projects with proven components, correctly configured and aligned to work well together.

  • Excellent development setup which handles all the debugging, profiling and exception handling needs
  • User management, registration and authentication from local or social sources
  • Modern architecture providing advanced solution building capabilities
  • Nginx + uwsgi config as fat-free delivery recipe

Major Components/Servers

  • Django 1.4+
  • Redis - Site and session caching as well as message queue (RabbitMQ if huge/high availability messaging)
  • Solr - Advanced search
  • Sentry - Great exception logging
  • Node.js - Fan data out to all the connected clients from Redis messages sent by django apps
  • Posttgres - or any database of choice

Included Django packages

Handy information

Redis

Nodejs

# apt-get install build-essential g++ libssl-dev curl git
# apt-get install python-software-properties
# apt-add-repository ppa:chris-lea/node.js
# apt-get update
# apt-get install nodejs npm
npm install socket.io
npm install redis

view fan.js in the project root and the socket.io code in the script_footer.html template

PIL

Python imaging library needs to be built on Ubuntu 12.04 64bit and it's messy Here are the essentials (Paths may vary depending on architecture etc.)

# apt-get install python-dev
# apt-get install libjpeg8 libpng12-0 libfreetype6 zlib1g
# apt-get install python-imaging
# ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
# ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
# ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
pip install -U PIL

Postgresql

I like to use postgresql for development so this is something worth keeping handy (close but not this close)

Install at lease 9.2 (has some functionality I would like to explore)

# add-apt-repository ppa:pitti/postgresql
# apt-get update
# apt-get install postgresql-9.2

Configure postgresql for remote access (valid for ubunto and my network):

# su postgres

vim /etc/postgresql/9.2/main/postgresql.conf
* listen_addresses = '*'

vim /etc/postgresql/9.2/main/pg_hba.conf
host all all 192.168.1.0/24 trust

/etc/init.d/postgresql restart

About

An attempt to create a private django kickstart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published