jvc26

jvc26.org

Age: 27

Can also be found on:

Blog | Github | Twitter

2d
comment How to access request object in model admin changelist_view
def click_to_call(self, obj): does not pass request. You need to provide the request as a parameter: def click_to_call(self, request, obj):
2d
comment How to access request object in model admin changelist_view
This has been previously discussed here. You essentially need to pass request into the view.
2d
awarded Supporter
2d
comment Edditing json object in django admin
Perhaps django-jsonfield?
2d
comment Redirect to another view with dictionary data in django
Post your urls.py. The issue is the call to redirect('add_user_to_rfqentry', data) which is doing a reverse match on 'add_user_to_rfqentry' to find a named URL, and then looking for said named URL with given keyword arguments. I suggest looking at the docs for redirect()
2d
comment How to access request object in model admin changelist_view
I'm slightly confused as to exactly what you're trying to achieve. Why are you resolving view-type issues in the model? I'd just handle the display of information to the user in a view, and then you have access to request etc. in there.
2d
comment Ajax create and update ajax form with Django
Essentially, you just need to use Javascript clientside. I'd use JSON in the response, and parse it clientside via Javascript, using that to update the displayed page.
2d
revised Kill the background process executed by python
Tidied presentation
2d
comment Genetic Algorithm in Django: Defining an Individual?
If you're interested in making sure your Django definitions are correct, I'd work through the Django tutorial first, as this will give you a really solid Django footing, and then your project will be far easier.
2d
comment Deploying django site using wsgi and nginx
How to deploy with WSGI from the django docs.
2d
comment How do I insert a Django template variable into a React script?
Or your react.js code could request the id during its login process, get it via JSON and store it during the duration of the request? I generally feel if you're interacting with JSON and implementing an API, it should be just that, an API, not a templated thing.
2d
comment django query and get the maximum of repeated
The Aggregation docs should be pretty helpful for resolving this.
2d
comment Include subfolder (from another app) in django template
What is /simple which you are trying to include? Are you trying to put a link to your login page (in which case just use <a href="/simple">Login</a> or similar). If you're trying to include a form or HTML snippet, thats slightly different, and if so, it would be helpful if you posted your app layout and a bit more information as to what you're trying to achieve.
Oct
12
comment Django data model policies
I'd have thought signals or manager functions for create/delete which deal with child/relations might be the way forward
Oct
12
comment how to organize users to run the different part of a project?
I use a user per-service I.e. nginx for nginx, redis for redis, appuser for the given app launched by supervisord
Oct
8
accepted d3js error on decrementing datapoints - how to resolve?
Oct
5
comment How to update single text label in D3js enter-update-exit?
That's a great suggestion - thanks!
Oct
5
answered d3js error on decrementing datapoints - how to resolve?
Oct
5
comment d3js error on decrementing datapoints - how to resolve?
Yes it does, thanks!
Oct
5
comment d3js error on decrementing datapoints - how to resolve?
This appears to be closely related to the question at stackoverflow.com/q/19933581/781909
1 2 3 4 5