Giter VIP home page Giter VIP logo

dusken-prototype's Introduction

#D.U.S.K.E.N

Dårlig Utrustet Studentsystem som Kommer til å Endre Norge.

Build Status

You can find the documentation at dusken.readthedocs.org.

Installation

sudo apt-get install python-virtualenv python-dev postgresql libpq-dev pgadmin3
cd dusken
virtualenv --distribute venv
. venv/bin/activate
pip install -r requirements.txt
cd dusken
cp settings-sample.py settings.py
# Edit database settings (sqlite3 is easiest to setup, but postgresql is recommended. See discussion below.)
cd ..
./manage.py syncdb --all
./manage.py runserver

If Django is running under Apache and mod_wsgi you need WSGIPassAuthorization On in your VirtualHost.

See the EDB wiki for more info.

Development tasks

# Reset DB
python manage.py reset_db --router=default --noinput && python manage.py syncdb --all

# Generate Fixtures for Test
python manage.py dumpdata dusken.<model> -n --indent=4 > dusken/fixtures/<model>.json

# Database Diagram Generation
sudo apt-get install graphviz libgraphviz-dev # system requirements
pip install pygraphviz django-extensions # python requirements
python manage.py graph_models -o diagramfile.png dusken auth

Development references

Database

Design references

A similar data model might allready exist out there, somewhere.

SQLite3 vs PostgreSQL

  • SQLite runs tests much faster
  • SQLite does not check foreign key constraints out of the box [1] [FIXED].
  • SQLite is easier to set up.
  • SQLite does not provide environment parity between development and production [2].

dusken-prototype's People

Contributors

robertkolner avatar nikolaik avatar markionium avatar paalbra avatar misund avatar ponas avatar

Watchers

Sjur Hernes avatar  avatar  avatar James Cloos avatar Lars Jansøn Engvik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.