Skip to content
tpllaha edited this page Sep 17, 2014 · 27 revisions

What we are using from other sources:

Server Side

  • south external library described here

  • Django extensions documented here . Pretty cool things like models visualizations and urls easy view. Also adds the shell_plus which can have history

  • Django-guardian: Per-object permissions, documented here

  • Django pipeline to compile sass bootstrap and js files. Documented here. Also, uses yuglify to uglify the js and css files from here. For yuglify install npm and link node

    sudo apt-get install npm
    sudo npm -g install yuglify
    sudo ln -s /usr/bin/nodejs /usr/bin/node
    sudo npm -g install sass
    

    Use --strict-ssl=false if npm is giving certificate errors

To install sass with gem:

sudo apt-get install rbenv
sudo gem install sass
  • Redis caching system. Explanation how to install and do basic operations are explained here. To understand the django caching system click here. To install redis server you have to do the following:
  1. sudo apt-get install redis-server

  2. Edit /etc/redis/redis.conf (example command sudo gedit /etc/redis/redis.conf)

  3. Uncomment the following two lines (you should find them at lines 61-62) :

    unixsocket /var/run/redis/redis.sock
    unixsocketperm 777
    
  4. restart the redis server sudo service redis-server restart

  • You also need those extra libraries to run the Connect for

postgresql (psycopg2) (1), django-extensions (2), Pillow (3-4),

sudo apt-get install libpq-dev 
sudo apt-get install graphviz-dev
sudo apt-get install python-dev python-setuptools
sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk

Client Side

  • moment.js from here version 2.7.0
  • bootstrap 3 datetime picker from here and manual and docs here . This is downloaded on 20/06/2014 while having 255 commits.
  • InfoViz Javascript toolkit for data visualization (now used on the admin page to visualize the category tree) http://philogb.github.io/jit/

Javascript libraries used for welcome_page:

  • modernizr.custom.js
  • retina.js
  • jquery.easing.1.3.js
  • smoothscroll.js
  • jquery-func.js

Clone this wiki locally