extensive Linux user with python and php programming

May
20
awarded Yearling
May
20
revised Check for empty list
added 48 characters in body
May
20
comment Check for empty list
@gojomo Do you mean any([]) will be True? I think all([]) is True and not any.The problem I see with any is if the list allows other values as [0] etc where any is wrong.
May
20
answered Check for empty list
May
19
comment Python : Writing a dictionary to a csv (short way)
@EmmetB It should not repeat as it is not much different than what you are doing with loop AFAIK. Also testing in your code snippet it works as expected. You could make a list with the comprehension and use that as well. [dict(mydict[key], name=key) for key in mydict]
May
19
answered Python : Writing a dictionary to a csv (short way)
May
19
answered what makes a python webscrape output unicode?
May
2
comment Bad Gateway on Nginx Server
did you install php5-fpm ? You need to install that for php with nginx.
Apr
27
awarded Famous Question
Apr
24
revised How to check if two instances are of the same class Python
added 94 characters in body
Apr
24
revised How to check if two instances are of the same class Python
deleted 200 characters in body
Apr
24
answered How to check if two instances are of the same class Python
Apr
23
answered Better way to set default value in django model field
Apr
23
comment Better way to set default value in django model field
I am currently checking out select_for_update to see if that will work out. I guess this is also a valid alternative approach so accepting it. Wouldn't there be break after save inside the loop ?
Apr
22
asked Better way to set default value in django model field
Apr
14
answered Scraping and writing output to text file
Apr
14
comment How to set Plain Email Sender Name in Django?
Basically do DEFAULT_FROM_EMAIL = 'No-Reply <noreply@host.com>' if that is what you are looking for.
Apr
14
comment Is it possible to generically access the response object in a Django Rest Framework ModelViewSet?
I have not used rest framework that much but looking into its documentation the design is basically django class based views. I think you can create a subclass of ModelViewSet overriding dispatch method which is usually called for response and returns a response object and add your response to that.
Apr
9
awarded Nice Answer
Mar
27
answered python django - how to unittest endpoints
1 2 3 4 5