[Django] #21459: Allow easy reload of appcache.

6 views
Skip to first unread message

Django

unread,
Nov 18, 2013, 11:39:27 AM11/18/13
to django-...@googlegroups.com
#21459: Allow easy reload of appcache.
-------------------------------------+---------------------------------
Reporter: zaharid@… | Owner: nobody
Type: New feature | Status: new
Component: Core (Cache system) | Version: 1.6
Severity: Normal | Keywords: interactive, models
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+---------------------------------
I need to work interactively with my Django models, and I think there
should be a easier way to reload the models modules that this fancy stuff:
http://stackoverflow.com/questions/890924/how-do-you-reload-a-django-
model-module-using-the-interactive-interpreter-via-m

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

Django

unread,
Nov 29, 2013, 10:20:39 AM11/29/13
to django-...@googlegroups.com
#21459: Allow easy reload of appcache.
-------------------------------------+-------------------------------------
Reporter: zaharid@… | Owner: nobody
Type: New feature | Status: closed

Component: Core (Cache system) | Version: 1.6
Severity: Normal | Resolution: wontfix

Keywords: interactive, models | Triage Stage:
Has patch: 0 | Unreviewed
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by apollo13):

* status: new => closed
* needs_docs: => 0
* resolution: => wontfix
* needs_tests: => 0
* needs_better_patch: => 0


Comment:

See #3591 for more issues into that direction; supporting `reload()` might
be a nice side-effect, but imo not worth any effort.

--
Ticket URL: <https://code.djangoproject.com/ticket/21459#comment:1>

Django

unread,
Jan 30, 2015, 6:15:32 PM1/30/15
to django-...@googlegroups.com
#21459: Allow easy reload of appcache.
-------------------------------------+-------------------------------------
Reporter: zaharid@… | Owner: nobody
Type: New feature | Status: closed

Component: Core (Cache system) | Version: 1.6
Severity: Normal | Resolution: wontfix

Keywords: interactive, models | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by danpetrikin):

Replying to [comment:1 apollo13]:


> See #3591 for more issues into that direction; supporting `reload()`
might be a nice side-effect, but imo not worth any effort.

I'd like to know details as to why this isn't worth any effort.

Models in modern software are getting defined more frequently at runtime.
It's been quite a pain researching how I tell Django that "my model
definition has changed, please reload the model definition"

Simple python reloads have not sufficed nor has working with the available
information on appcache. Unless I'm just incredibly stupid, which I never
rule out as a possibility, I don't see any information within the
documentation on AppCache or how it gets loaded.

Granted, I am using a fork of Django that supports nosql, and am defining
models on the fly based on values of other models. However, I can easily
see a similar use case for anyone who wants to automate migrations and run
them based on other model changes, still supporting dynamic models
(although it'd probably crush performance on a traditional SQL DB).

Without ease of access to model reloads within the Django framework, truly
sophisticated systems that are programmed to respond to their own internal
data states with additional logic must come up with their own solutions.
I'm sorry if I seem like an edge case, but I have a feeling in the coming
years runtime generated, and altered, model definitions will become a far
more standard need within the industry.

--
Ticket URL: <https://code.djangoproject.com/ticket/21459#comment:2>

Reply all
Reply to author
Forward
0 new messages