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
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 9 years ago.
Is it possible to make a to-do-list web application in Django in which the admin sets the things to do and the user are only allowed to see what the admin put in their profiles? Which could be the steps to reach this goal? (example: first create admin, user and things model then...) thank you for your help!!
Not really the place for this open question on stack, however here a step by step tutorial on just what you are after.
http://net.tutsplus.com/tutorials/python-tutorials/intro-to-django-building-a-to-do-list/
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/
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.
I am new to django-rest-framework. And I wonder if this module give user self generating documentation of his API. What I mean is if drf provides a page on which I will have all my api methods listed (with required permissions, params, urls and description)?
Thanks
Take a look at the django-rest-framework-docs package:
https://github.com/marcgibbons/django-rest-framework-docs
Also the newer django-rest-swagger package, by the same author:
https://github.com/marcgibbons/django-rest-swagger
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.
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.
If so, can you please supply a sample test.
This might help:
http://weblogs.asp.net/rashid/archive/2009/03/12/unit-testable-httpmodule-and-httphandler.aspx