It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Is it possible to define your own query which will be executed when calling save method?
You can simply override the save method of your object. See the doc here: https://docs.djangoproject.com/en/1.5/ref/models/instances/#saving-objects.
And once you have overridden the save method of your model you can perform raw SQL queries :
https://docs.djangoproject.com/en/dev/topics/db/sql/
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
The object in this case is a dictionary with some search methods. Only reading operations.
Quick answer: No.
Quite the opposite, it will speed up your program, especially if you have an object that needs to load a lot of data into memory.
Just make sure nothing can write to the object while the threads run.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Looking for some opinions on this as it's unclear in reading the C++ 11 documentation.
Absolutely. This takes care of the rule of three for you.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I already know how to use one of the class-based generic views CreateView, UpdateView and FormView, but I can't figure out how to write something clean in order to create or update an object.
Can somebody help me to subclass one of those views and mixins ?
Thanks
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
Good evening every body~
As the title, How can i create a new object in a class? and i want to give it a number.
How can i do that?
Thank you very much~
class MyClass {
int yourNumber;
};
or what do you mean?
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i don't know what the remote_api will do
thanks
You can read about remote_api here: http://code.google.com/appengine/articles/remote_api.html
At a high level, it allows you to write code which interacts with your appengine application code and datastore without having to go through the request/response model.