All Posts Create a Post  
0
votes
54
views
Django rest clean up before validation
Posted at 1 month ago / Oct. 22, 2020, 11:14 a.m.

Sometime we need to clean up the value before it validated by an exiting validations. For example, when user sended an longitude and latitude data into backend with multiple length …

101 1 1 0
0
votes
127
views
How to custom select language icon in django administration
Posted at 1 month, 1 week 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
141
views
How to setup all raw_id_fields and search_fields for django
Posted at 1 month, 1 week ago / Oct. 11, 2020, 8:04 a.m.

For example I have this 3 fields as question_set, question and folder. I need to assign all of this fields into raw_id_fields inside the admin.ModelAdmin without add manually per-single fields. …

101 1 1 0
0
votes
134
views
Awesome django books by agiliq.com
Posted at 1 month, 1 week ago / Oct. 11, 2020, 8:04 a.m.

This awesome django books for refference is also open sourced at https://github.com/agiliq/books Django Admin Cookbook (Django 2.0) Django ORM Cookbook (Django 2.0) Building APIs with Django and Django Rest Framework …

101 1 1 0
0
votes
167
views
How to create Django Language Middleware
Posted at 1 month, 1 week 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
1
votes
345
views
Django Standard API Response Middleware for DRF
Posted at 1 month, 1 week ago / Oct. 11, 2020, 8:04 a.m.

As you can see, if you using django-rest-framework, you will found many different response format. This middleware to solve all of these problems with implement the Standard API Response. All …

101 1 1 0
0
votes
237
views
Deploy Django at Heroku
Posted at 1 month, 1 week ago / Oct. 11, 2020, 8:04 a.m.

1. Install heroku cli https://devcenter.heroku.com/articles/heroku-cli 2. Add Procfile to your project, and add this command below: $ cd yourenv/yourproject/ $ vim Procfile # then, add this command below to the …

101 1 1 0
0
votes
228
views
Martor 1.2.7 has been released
Posted at 1 month, 1 week ago / Oct. 11, 2020, 8:04 a.m.

This Martor is one of many plugin for django markdown editor. But in this case, martor still use Semantic UI for the front-end. For the previous version, martor included the …

101 1 1 0
0
votes
215
views
Simple Adding Django Disqus Comments
Posted at 1 month, 1 week ago / Oct. 11, 2020, 8:04 a.m.

Simple Adding Django Disqus Comments, Disqus adalah salah satu comments plugin yang sangat populer saat ini. Selain facebook comments, google+ comments, disqus ini juga merupakan salah satu plugin favorite yang …

101 1 1 0
0
votes
177
views
Backup and Restore database Postgres Django in terminal ssh
Posted at 1 month, 1 week ago / Oct. 11, 2020, 8:04 a.m.

Backup and Restore database Postgres Django in terminal ssh. Bismillahirrahmanirrahim, malam hari ini kita akan berbagi sedikit tutorial yang diambil dari dokumentasi saya pribadi mengenai problem solved backup and restore …

101 1 1 0
  Page 1 of 6