All Posts Create a Post  


0
votes
213
views
Program Menghitung Tahun Kabisat pada Python
Posted at 6 months, 3 weeks ago / Oct. 11, 2020, 8:04 a.m.

Program Menghitung Tahun Kabisat pada Python – Pada awal perkenalan python, biasanya diajarkan mengenai pembahasan mengenai tahun kabisat. Nah pada script kali ini, intinya adalah user disuruh untuk memasukkan input …

110 2 2 0
0
votes
546
views
Menghitung Jumlah karakter dan spasi pada python
Posted at 6 months, 3 weeks ago / Oct. 11, 2020, 8:04 a.m.

Menghitung Jumlah karakter dan spasi pada python – Dalam menghitung jumlah karakter dan spasi, disini saya membuat project dengan user memasukkan nama file yang ber-ekstensi .txt yang dalam satu folder …

110 2 2 0
0
votes
177
views
Adding BroadCast Mail to All User Registered in Django Admin
Posted at 6 months, 3 weeks ago / Oct. 11, 2020, 8:04 a.m.

Adding BroadCast Mail to All User Registered in Django Admin. This is my last problem, we need custom default Django Admin to can submit BroadCast mail to All User. Because …

110 2 2 0
0
votes
212
views
Django: Remove Duplicates Filter for Related Posts
Posted at 6 months, 3 weeks ago / Oct. 11, 2020, 8:04 a.m.

Django: Remove Duplicates Filter for Related Posts. In yourapp/models.py class Post(models.Model): title = models.CharField(max_length=200) slug = models.SlugField(max_length=200, unique=True) tags = models.ManyToManyField('Tag') In yourapp/views.py class DetailPostView(generic.DetailView): model = Post template_name = …

110 2 2 0


0
votes
189
views
Setup Django in apache2 Raspberry Pi
Posted at 6 months, 3 weeks ago / Oct. 11, 2020, 8:04 a.m.

Setup Django in apache2 Raspberry Pi. Example in this configuration for monitoring the server raspberry pi using https://github.com/k3oni/pydash/ As following this configurations https://github.com/k3oni/pydash/wiki/Install-pyDash#3-setup-apache, how to setup it. Edit in your: …

110 2 2 0
0
votes
182
views
Simple bash scripting for login before open the terminal
Posted at 6 months, 3 weeks ago / Oct. 11, 2020, 8:04 a.m.

Add this in your file of /etc/bash.bashrc, makesure you logged in as root. while true; do # Don't exit at Ctrl-C trap "echo" SIGINT printf "n" echo -n " Who …

110 2 2 0
0
votes
188
views
Free SMS Sender using smsmasking
Posted at 6 months, 3 weeks ago / Oct. 11, 2020, 8:04 a.m.

Free SMS Sender using smsmasking - API Documentation of smsmasking only available for PHP and JavaScript using POST method, in this post i wanna share simply how to use API …

110 2 2 0
0
votes
194
views
How to minify HTML output in Django
Posted at 6 months, 3 weeks ago / Oct. 11, 2020, 8:04 a.m.

So, you want to compress the size of the HTML that Django generates? Here is the Django way to do it. In order to do this, you’ll have to write …

110 2 2 0
0
votes
273
views
E11000 duplicate key error index in mongodb
Posted at 6 months, 3 weeks ago / Oct. 11, 2020, 8:04 a.m.

E11000 duplicate key error index in mongodb. I found this error after migrating my field from “unique” to “non-unique”. And in this problem we use mongoengine for flask. First, i …

110 2 2 0
0
votes
180
views
Custom redirect urls django
Posted at 6 months, 3 weeks ago / Oct. 11, 2020, 8:04 a.m.

Example in this problem we need redirect the url http://localhost:8000/a/b/C/123/4/5/ to http://localhost:8000/abC12345 without / slash. 1. In your views.py from django.http import HttpResponse from django.views.generic.base import RedirectView from django.core.urlresolvers import …

110 2 2 0
  Page 9 of 11