Skip to content

lsaffre/djangosite

Repository files navigation

djangosite README

A server startup signal for Django

Description

djangosite is a small Django app which adds to Django a powerful mechanism and a new understanding of the terms "application" and "plugin".

It defines a Site class which represents "the application running on this site", and a Plugin class to specify extended meta information about each app.

djangosite has nothing to do with Django's sites framework and SITE_ID setting. More about this vocabulary problem in What is a software application?.

An immediate benefit of djangosite is to implement a server startup signal for Django. The base class provides a startup method which runs after Django has populated it's model cache. This method analyzes the installed apps and emits different "site started" signals.

The real power of djangosite lies in the fact that it brings an additional level of encapsulation to Django applications and is used as the foundation for North and Lino.

Read more on http://site.lino-framework.org

About

(OBSOLETE) A server startup signal for Django

Resources

License

Stars

Watchers

Forks

Packages

No packages published