That last part refers to the way *Python* handles arguments and the like.
Whenever you have a complex object, such as an array, Python does not make
a new copy of the object each time the view function is called. Instead, it
passes a reference to the object, which means that if you change that
Check out "How to handle static files" from this page:
https://docs.djangoproject.com/en/1.4/#the-development-process. Also note
that the links on this page can help answer a lot of the basic questions
about Django for you.
Django has a built-in app to handle static files, and cases such as thi
Ah. I believe, the Amount.job_no (i.e. the foreign key) should not be
filled with the *id* of the Client object, but with the actual client *
object*, that is,
job_no = Client.objects.get(cd['job_no'])
That matches the abstract relationship of, "This Client corresponds to this
Amount.", then Dj
Yes, when I put a print statement in my settings file, it prints out twice
everytime I start the server. The file has to be imported in multiple
places, and so it gets executed multiple times. I'm not sure what your
error is, but it doesn't seem to be related to the multiple imports.
On Wednesd
Hello.
*How do I override get_object() from a subclass of CreateView? Is there
something I'm missing?*
I'm trying to override *get_object()* to provide a simple behavior.
However, my *get_object()* is never called. Instead, Django complains that
I didn't set self.model properly.
I opened the
5 matches
Mail list logo