1d
awarded Pundit
Apr
25
accepted Why isn't my optional group greedy? /(5)?.*/
Apr
25
comment Why isn't my optional group greedy? /(5)?.*/
And yet, re.compile('(.*)(.*)').search('abc').groups() yields ('abc', '') . Do you know why?
Apr
25
asked Why isn't my optional group greedy? /(5)?.*/
Apr
21
awarded Popular Question
Apr
17
comment How do you override a ModelViewSet's get_queryset in Django Rest Framework 3?
In your urls.py file, you create a router like router = routers.DefaultRouter(). Then you call router.register() on each of your viewsets. When you call router.register(), you must provide a third parameter like foobar-detail. e.g. router.register('/rest/FooBar'/, views.FooBarViewSet, 'foobar-detail')
Apr
17
awarded Popular Question
Apr
16
awarded Nice Question
Apr
13
comment How to synchronise jEdit settings between multiple computers
One thought is that you will eventually settle on a set of settings. You're not going to spend your entire career monkeying around with settings. Then your settings will be mostly static and you can just copy them around. Anyways, an alternative may be the dropbox solution. If you're on mac or linux, you can do a soft link to your dropbox destination like ln -s ~/Dropbox/jedit_settings ~/.jedit
Apr
13
revised Why use Redux over Facebook Flux?
misspelling. devloper -> developer
Apr
12
comment How to install PyQt for python3 in ubunt 14.10?
Small note for those that follow. The module is found by importing like import PyQt5 .
Apr
6
revised Django rest framework DjangoFilterBackend icontains not work
deleted 107 characters in body
Apr
6
answered Django rest framework DjangoFilterBackend icontains not work
Mar
31
comment AS400 Online Server For Practicing
I only see Linux LE on that page for "open source developers". I was hoping for as/400 on Power PC hardware.
Mar
21
comment port binding debugging in specman
print_stack_trace() is very very useful in large environments.
Mar
15
revised get UTC offset from time zone name in python
adding example
Mar
15
revised get UTC offset from time zone name in python
adding link to specific method
Mar
10
awarded Famous Question
Mar
7
revised django rest API route showing same api link for all end point
edited body
Mar
7
comment django rest API route showing same api link for all end point
I'm not sure how to do that. I once tried to do that. I set a breakpoint and started going down the rabbit hole. Anyways, I gave up, so I'm not sure how one does that. You'll probably want to step into the router.register code base to figure out how to get DRF to do exactly what you're asking. In the mean time: Filters! :-)
1 2 3 4 5