Using Django as dependency in an API

18 views
Skip to first unread message

Thierry

unread,
Sep 17, 2015, 5:25:33 AM9/17/15
to Django users
Hi everybody,

Django has got many features really interesting to reuse in APIs like its builtin ORM or template engine.

Maybe I'm wrong but it seems required to initalize Django with the configure() and setup() functions to register models and databases and make the glue between several independent modules. All seems based on the concept of application and it makes really difficult to distribute APIs separately.

How is it possible to avoid this global Django configuration and make this configuration at a module level ? For example, to register models in a database at module import or define the database backend for a module. 

Cheers,

Thierry.

Reply all
Reply to author
Forward
0 new messages