Skip to content

guifi-org/exoadmin

Repository files navigation

Status

Warning this django admin web application is under heavy development.

At the moment app migrations will not be uploaded: I destroy them regularly. Heavy changes on data model can happen, which would be lot of pain if you use this application in production. At your own risk.

Installation

Assuming Debian 8 Jessie

apt-get install --no-install-recommends python3-pip graphviz
pip3 install virtualenv
git clone https://github.com/pedro-nonfree/exoadmin
cd exoadmin
virtualenv env
source env/bin/activate
pip3 install django pyparsing pydot django-extensions
python3 manage.py loaddata 1_fixture_base_ca.json
# add next line if you want to test with fake data
python3 manage.py loaddata 2_fixture_demo_ca.json
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver

if you want to preserve new data, I recommend:

python3 manage.py dumpdata --exclude=contenttypes --exclude=auth --exclude=sessions --exclude=admin --indent 4 --natural-foreign --natural-primary > new_fixture.json

regenerate data model diagram:

python3 manage.py graph_models -a -g -o data_model_diagram.png

Known issues and bad practices