All Posts Create a Post  
0
votes
25
views
How to display serializer in delete action with django rest swagger
Posted at 1 week, 5 days ago / Jan. 8, 2021, 11:21 a.m.

By default, django rest swagger doesn’t displayed the Serializer in DELETE method. But, for some reason I need to implement prevent deletion & force deletion case. So, basicly to implement …

102 1 1 0
0
votes
145
views
Django rest clean up before validation
Posted at 3 months 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 …

102 1 1 0
0
votes
229
views
move multiple files using bash
Posted at 3 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

# This method if the files has no extentions. $ for file in *; do mv "$file" "$file.png"; done # This method if the files has extentions before. $ for …

102 1 1 0
1
votes
390
views
Django Standard API Response Middleware for DRF
Posted at 3 months, 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 …

102 1 1 0
0
votes
171
views
Awesome django books by agiliq.com
Posted at 3 months, 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 …

102 1 1 0
0
votes
247
views
Martor 1.2.7 has been released
Posted at 3 months, 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 …

102 1 1 0
0
votes
224
views
Markdown syntax to resize or styling the image
Posted at 3 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

This case was issued by muradaliyev88 in django-markdown-editor repository. as answered by rudolfbyker If you are writing MarkDown for PanDoc, you can do this: ![image-alt](drawing.jpg){height=100px} or ![image-alt](drawing.jpg){style="border: 1px solid;height:100px"} result …

102 1 1 0
0
votes
163
views
How to custom select language icon in django administration
Posted at 3 months, 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 %} …

102 1 1 0
0
votes
175
views
How to setup all raw_id_fields and search_fields for django
Posted at 3 months, 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. …

102 1 1 0
0
votes
445
views
How to automaticly backup your projects into external hardisk in ubuntu?
Posted at 3 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

Rsync, which stands for “remote sync”, is a remote and local file synchronization tool. It uses an algorithm that minimizes the amount of data copied by only moving the portions …

102 1 1 0
  Page 1 of 11