Homepage | Simple index


author Iacopo Spalletti
  • Development Status :: 4 - Beta
  • Environment :: Web Environment
  • Framework :: Django
  • Intended Audience :: Developers
  • Operating System :: OS Independent
  • Programming Language :: Python
  • Topic :: Internet :: WWW/HTTP :: Dynamic Content
  • Topic :: Software Development
  • Topic :: Software Development :: Libraries :: Application Frameworks
license see LICENCE
  • OS Independent
File Size Python Type Tox results History
8 KB
Uploaded to nephila/dev by nephila 2015-11-30 11:19:47
14 KB
Python Wheel
Uploaded to nephila/dev by nephila 2015-11-30 11:19:47


DJerarchy is a tiny proof-of-concept Django project that handles a basic user hierarchy.

Users come in three “flavours”: admin, school managers and normal users.

School managers and normal users are associated to a school, through a FK to a dedicated model.

Admin is standard Django admin user and has access to http://localhost:8000/admin/.

A school manager for school Alpha can:

  • view all normal users belonging to school Alpha
  • create a number of new users through an automated procedure
  • perform some basic user editing

At the time being, normal users can’t do anything.


  • create a dedicated virtualenv:

    mkvirtualenv djerarchy
  • install requirements:

    pip install -r requirements.txt
  • set a few environment variables:

    export DJANGO_SETTINGS_MODULE='djerarchy.settings'
    export DEBUG='True'
    export TEMPLATE_DEBUG='True'
    export DATABASE='sqlite:////path-to-djerarchy.sqlite'
    export SECRET_KEY='some-secret-key-here'
    export STATIC_ROOT='/path-to-djerarchy-static/'
    export MEDIA_ROOT='/path-to-djerarchy-media/'
    export ADMINS='[["John Doe", ""]]'
  • create database tables and load data from fixtures:

    python syncdb --noinput --no-initial-data
    python migrate
  • run locally with command:

    python runserver