extensive Linux user with python and php programming

Mar
25
comment Adding multidict values to a list
Try to copy the read-only dictionary like dd = d.copy() and see if you can modify dd as d is readonly. Also you could check type with isinstance(v, basestring)
Mar
25
answered How to print the spaces between variables?
Mar
25
comment Does django mess up with python's datetime?
Django by default uses America/Chicago as time zone in settings if you have not defined any. See: docs.djangoproject.com/en/1.6/ref/settings/#time-zone
Mar
25
comment Installed12.04 LTS 64-bit results in 32-bit OS
could you paste the output of uname -a or uname -m?
Mar
25
comment Django passing value from template to view
'<input name="username" />' basically username should be your form class attribute. Also if you donot have any styling thing {{user_form.username}} will render you input box in html template according to your Form class definition. docs.djangoproject.com/en/dev/ref/forms/api
Mar
25
comment Django passing value from template to view
Your user_form is Form instance so it should not be in value. The data in forms are populated through name attribute, so you should name your forms according to your Form class
Mar
20
comment Django contact form doesn't show up
Seems like your form is not initialized. Try form = ContactForm() and then if request.method part without else and see it works.
Mar
19
comment django queryset convert tofixed format
Are you using Decimalfield or Floatfield for data ?
Mar
17
awarded Popular Question
Mar
17
comment DetailView template is not showing value of selected record. in django
OR set context_object_name="post" in DetailView
Mar
17
comment DetailView template is not showing value of selected record. in django
By default the context of DetailView is object and not post. You need to either change the context to object.name
Mar
14
comment Django subclass (model) not implementing attributes of superclass
@Imray see the update
Mar
14
revised Django subclass (model) not implementing attributes of superclass
added 852 characters in body
Mar
14
comment Django subclass (model) not implementing attributes of superclass
self is the the object argument from which class is initialized/called. It is something like this in c++ or java. In python world Explicit is better than implicit.. Basically what you can do is create foreignkey to inbuilt user model and just add extra fields[Not provided by user model itself].
Mar
13
answered Django subclass (model) not implementing attributes of superclass
Mar
13
comment What is a program similar to WinSCP?
Just do gksu nautilus to run nautilus as sudo user
Feb
22
revised What is a program similar to WinSCP?
deleted 6 characters in body
Jan
26
answered How to determine the mime type of a file being hosted by a remote server?
Jan
23
comment How to determine the mime type of a file being hosted by a remote server?
There is a command called mimetype in ubuntu. you can give it a try mimetype URL
Jan
22
answered Linux Shell: remove all HTML files in tree while leaving directory structure
1 2 3 4 5