Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
this is my view
def mydate(request):
date = datetime.datetime.strptime(request.GET.get('date'),"%Y-%m-%d")
return HttpResponse(data)
and i want call this view in another method in the django project
how to deal with this problem ?
yup you can do it
like this
def other_view(request):
item = mydate()
// now do what you need to do
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
This is how the data stored in Firebase
This is the output
This is the code
from firebase import firebase
url = "https://xxxx.firebaseio.com/"
fb = firebase.FirebaseApplication(url,None)
Humidity = fb.get("/Humidity",None)
for key, value in Humidity.items():
print("Humidity :{}".format(value["hum"]))
Try this...
snapshot = ref.order_by_child('/Humidity').get()
for more look at this link
https://firebase.google.com/docs/database/admin/retrieve-data
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'd like to add or remove some form_extra_fields based on the instance that will be displayed. The documentation is extensive around customizing the form for every member of the class but I'm having problems finding a hook where I can access the instance itself.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'd like to be able to generate and publish a google form using python code. Is this possible?
Below link will give you an idea:
https://www.reddit.com/r/learnprogramming/comments/32xd4s/how_can_i_use_python_to_submit_a_google_form_or/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm going to write a post/comment function in Django with models and views.
I need a good example and tutorial.
Or I need an example.
Take a look at Django tutorial: https://docs.djangoproject.com/en/1.6/intro/tutorial01/
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Does anyone know how to integrate MoinMoin into Pyramide? Are there any manuals? The similarity of this pylons+moinmoin
You maybe want to ask about "how to integrate any WSGI app into pyramid".
If that is answered, you can apply that to moin as it is just a WSGI app.