#29554: Missing feature: load apps dynamically at runtime
----------------------------------------------+------------------------
               Reporter:  Christian González  |          Owner:  nobody
                   Type:  New feature         |         Status:  new
              Component:  Core (Other)        |        Version:  2.0
               Severity:  Normal              |       Keywords:
           Triage Stage:  Unreviewed          |      Has patch:  0
    Needs documentation:  0                   |    Needs tests:  0
Patch needs improvement:  0                   |  Easy pickings:  0
                  UI/UX:  0                   |
----------------------------------------------+------------------------
 I stumbled upon a problem I am not able to solve, and I think this is a
 feature that should be in Django core AFAIKT.
 Until Django 1.x it was possible to add apps dynamically to INSTALLED_APPS
 during runtime, and reload the cache, see here:
 https://stackoverflow.com/questions/19833393/django-dynamically-add-apps-
 as-plugin-building-urls-and-other-settings-automat

 Even if I think this is a bit of a hack and it was never really meant that
 way (?), nevertheless there should be an official possibility to do so.

 I have made a Django application with dynamically apps at server startup
 time - this is no problem, just search for a plugins dir during
 settings.py and add the dotted paths to INSTALLED_APPS. Works fine, but
 one problem remains:

 If I want to enable dynamic app installation - like an "app store" in my
 application - users can download apps from my "store", and enable them
 using my web interface - there currently is no way to achieve that besides
 restarting the Django server, right?

 During setup, Apps.populate() is called - and its docstring says that the
 method is idempotent. Is it possible/allowed/recommended to add some paths
 to django.conf.settings.INSTALLED_APPS and call that populate() again
 later during runtime?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29554>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.76a246a80cbd0a4b4c087565e21cc35c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to