Python SimpleHTTPServer

python-simplehttpserver

Python’s SimpleHTTPServer is very lightweight and very useful. If you want to share files from your localhost or if you want a quick web server without messing with setting up apache or something similar SimpleHTTPServer is here for you. All you

Read More Python SimpleHTTPServer

Links inside widgets, SEO juice, Unnatural links

widget link seo

A couple of days ago I was reading this post named A reminder about widget links. There they said stuff that sounded like your site might get penalized for having a link from your widgets back to your site. Check out

Read More Links inside widgets, SEO juice, Unnatural links

Responsive Table with Divs Using Bootstrap

Responsive Table with Divs Using Bootstrap Yes, this is what I am doing at 00:24 am on Saturday 🙂 There is and have been a trend to create HTML tables using divs instead of classic table, tr and td tags. Actually,

Read More Responsive Table with Divs Using Bootstrap

Difference between window.onload and $(document).ready()

Do you think $(document).ready() and window.onload are the same thing? Do you use one for the other? Do you use them interchangeably? If you do so, you are wrong. $(document).ready() and window.onload are not the same thing. What did you

Read More Difference between window.onload and $(document).ready()

How to Remove Bitnami Banner from Your Discourse Forum Site on GoDaddy

bitnami-godaddy

I recently created a cloud server instance on GoDaddy and installed a Bitnami application (Discourse) on it for one of my domains. Then I realized this Bitnami banner on the lower right corner. After some research and trials, I was

Read More How to Remove Bitnami Banner from Your Discourse Forum Site on GoDaddy

django – ‘int’ object has no attribute ‘keys’

django-int object has no attribute keys

Being new to Django, sometimes I face interesting problems. If it is very late and you are very tired, It may not always be easy to see the problem looking at the displayed error message like this int’ object has no attribute

Read More django – ‘int’ object has no attribute ‘keys’

Django NoReverseMatch Error

Django NoReverseMatch Error

Django’s reverse method can be found under django.core.urlresolvers (new versions: django.urls). To be able to use it you should import it like so:

reverse method is used to generate urls so that you can use them in your template files,

Read More Django NoReverseMatch Error

What is “related_name” used for in Django

django related_name

related_name is an attribute you use while defining relations like many-to-one, many-to-many, one-to-one etc. The value of this attribute is used as the name of the reverse relation between models. Example:

Here we define a many-to-one relation using a

Read More What is “related_name” used for in Django

Python – Difference between “.append()” and “+= []”

In my new Django project, I was trying to append a list of tuples (which contained more than 1 tuple in it) into another list of tuples. Then I got this error: ValueError: too many values to unpack (expected 2) I

Read More Python – Difference between “.append()” and “+= []”