All Posts Create a Post  
0
votes
112
views
How to custom select language icon in django administration
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

1. Add the base_site file inside templates/admin/base_site.html. {% extends "admin/base.html" %} {% load static i18n %} {% block title %}{{ title }} | {{ site_title|default:_('Situs django admin') }}{% endblock %} …

101 1 1 0
0
votes
145
views
How to create Django Language Middleware
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

This example below to setup default language code as id (Indonesian). Your file middleware.py # -*- coding: utf-8 -*- from django.conf import settings from django.utils import translation from django.utils.deprecation import …

101 1 1 0
0
votes
126
views
How to implement Django Internationalization
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

Django is real fucking awesome, this morning i want to share a basic tutorial how to implement the django internationalization with GeoIP. Of course this tutorial if you need to …

101 1 1 0