django-request Questions
3
Solved
What does resolve_variable do? And could I use it for accessing the request outside of the view?
Edit
So template.Variable is the correct way to go - but I'm still unsure of its purpose. The do...
Goldoni asked 15/11, 2010 at 10:3
2
The HttpRequest.is_ajax() method is deprecated as it relied on a jQuery-specific way of signifying AJAX calls, while current usage tends to use the JavaScript Fetch API. Depending on your use case,...
Hiragana asked 14/2, 2022 at 5:38
3
Solved
I'm currently working on a Django app, and I'm trying to set the current user as default on a model, but it doesn't work.
created_by = models.ForeignKey(User, default=request.user, null=True, bla...
Feodora asked 18/10, 2018 at 10:27
7
Solved
Is there a way to get the current page URL and all its parameters in a Django template?
For example, a templatetag that would print a full URL like /foo/bar?param=1&baz=2
Flagpole asked 14/7, 2010 at 17:14
1
Solved
I have two forms named GoodAtForm and PaidForForm. What these do is as follows...
GoodAtForm Takes an input from a list in request.session['love'] and presents it to the user.
Then user is presen...
Embrue asked 7/9, 2019 at 5:37
1
Solved
I want to implement a middleware in django, that will append a header on the request's existing headers, before the get_response(request) function.
Though, when trying like this:
request.headers[...
Heavierthanair asked 17/6, 2019 at 14:5
1
Solved
What I am trying to do:
I am trying to access request object in my django models so that I can get the currently logged in user with request.user.
What I have tried:
I found a hack on this sit...
Amnion asked 7/9, 2018 at 9:48
1
© 2022 - 2024 — McMap. All rights reserved.