jvc26

jvc26.org

Age: 27

Can also be found on:

Blog | Github | Twitter

Nov
30
asked How unique is /dev/serial/by-id
Nov
30
awarded Student
Nov
30
asked Multiple Arduino-Raspberry Pi serial
Nov
30
awarded Autobiographer
Nov
13
awarded Popular Question
Nov
3
revised Django 1.4 Creating an Edit User Profile Account Settings View
added 11 characters in body
Oct
27
awarded Popular Question
Oct
21
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):
Oct
21
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.
Oct
21
awarded Supporter
Oct
21
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()
Oct
21
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.
Oct
21
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.
Oct
21
revised Kill the background process executed by python
Tidied presentation
Oct
21
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.
Oct
21
comment django query and get the maximum of repeated
The Aggregation docs should be pretty helpful for resolving this.
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!
1 2 3 4 5