This repository is for development, testing and contribution of Django Suit project.
Main repository is here: https://github.com/darklow/django-suit
Read more: http://djangosuit.com/
Documentation: http://django-suit.readthedocs.org/en/latest/
How to setup environment and project using virtualenv and pip
- Requirements:
- Django 1.4/1.5
- Python 2.6.6 - 3.3.0
- lessc compiler - http://lesscss.org/
- package requirements are in
requirements.txt
- pip (or if you know alternative commands you can use
easy_install
)
Setup project environment:
# Create environment/project main directory mkdir djangosuit-contrib cd djangosuit-contrib # Create virtualenv virtualenv env --no-site-packages # Activate virtualenv . env/bin/activate # Clone Django Suit contrib project git clone https://github.com/darklow/django-suit-contrib.git djangosuit cd djangosuit # Clone Django Suit examples app git clone https://github.com/darklow/django-suit-examples.git examples # Install requirements pip install -r requirements.txt
Fork django-suit repo on Github and do following:
# Clone forked Django Suit repo git clone git@github.com:YOUR_USERNAME/django-suit.git suit # Install Django Suit from local fork pip install -e suit # Sync Django DB ./manage.py syncdb
Now project is ready and you can use
manage.py
to start server:./manage.py runserver
- Now go to
/admin/
and you should see login form
suit/
- whole Django Suit packagesuit/suit/
- Django Suit appsuit/docs/
- Django Suit Sphinx documentationsuit/suit/static/suit/less
- Less files directory (Do not change CSS files directly)- You can also contribute to
examples
app, in that case fork it first
Django Suit contrib package uses django-compressor for less compiling (actual compiling is done by lessc
).
Whenever you change any .less
files, on page reload .css
file is recompiled to cache and also copied to suit/static/suit/css/suit.css
. When contributing you should commit both: .less
and suit.css
files.
Page load time for contrib project could be up to 500ms. This happens because of .less
files are recompiled on every request, otherwise django-compressor won't detect changes in @imported .less files, see issue #274