Contraz / demosys-py

A light high performance modern OpenGL 3.3+ Python Framework https://demosys-py.readthedocs.io/
ISC License
64 stars 5 forks source link

Support easy access to different project configurations #49

Open einarf opened 6 years ago

einarf commented 6 years ago

We should support easy access to different project configurations. This way we can configure up a subset of the project when needed. When projects grow large this will be handy.

Currently the project is described in settings like this:

PROJECT = "myproject.project.Project"

Users should also be able to enter multiple projects with an alias:

PROJECTS = {
    "default": "myproject.project.Project",
    "testing": "myproject.project.ProjectTesting",
    "stuff": "myproject.project.ProjectStuff",
}

What project config config should be used can be overriden in the run command.

./manage.py run --project testing