Django translation in URLs and locale switching

Adding locale switcher to templates Django comes with a view, django.views.i18n.set_language(), that sets a user’s language preference and redirects back to the previous page. This view ca be activated by adding URL like (r’^i18n/’, include(‘django.conf.urls.i18n’)), to urlconf (see Below example). In order to add locale switcher to your templates you will have to add a […]

Screen Shot 2015-03-30 at 10.43.51

Django imageField show image

Problem: Django imageField now shows image ( like <img src=”image_path.ext”/>), i want to display path as image Solution:  So that i create one file with

and when we want to display in app then simply we import this file and call this class as :

formfield_for_dbfield : This is default function in Django […]

Titanium – Hiding the Action Bar

There are two ways to hide the Action Bar. You can either hide the activity’s Action Bar in your JavaScript code or modify the default theme to hide the Action Bar. In your JavaScript code, get the activity’s action bar instance and call the hide method. This hides the action bar once it appears on […]

WordPress Page Template Overrid

Simply we create page template by writing some code in file as codex

without writing template name inside the file we can also override the page template simply we can create…

Happy coding……….. 😀

WordPress Child Theme

WordPress Child Theme According to our recent WordPress Themes Survey, 85% of our customers customize their themes, and only 35% use a child theme when doing so. This may be due to a lack of understanding as to what a child theme is, or due to the perceived difficulty of creating one. In this tutorial, […]

1 2 3 4 5 6 10