Skip to content

This repository is only for contributors and developers of Django Suit project. For main repository see links in README.

Notifications You must be signed in to change notification settings

Bendaas/django-suit-contrib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Suit contribution

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 Django Suit dev environment

How to setup environment and project using virtualenv and pip

  1. 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)
  1. 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
  2. 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
  3. Now project is ready and you can use manage.py to start server:

    ./manage.py runserver
  4. Now go to /admin/ and you should see login form

Structure

  1. suit/ - whole Django Suit package
  2. suit/suit/ - Django Suit app
  3. suit/docs/ - Django Suit Sphinx documentation
  4. suit/suit/static/suit/less - Less files directory (Do not change CSS files directly)
  5. You can also contribute to examples app, in that case fork it first

Less/css files handling

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.

Notes

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

About

This repository is only for contributors and developers of Django Suit project. For main repository see links in README.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published