0
votes
39
views
Program Menghitung Tahun Kabisat pada Python
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

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 ...

python beginner
0
votes
41
views
Menghitung Jumlah karakter dan spasi pada python
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

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 ...

python beginner
0
votes
37
views
Adding BroadCast Mail to All User Registered in Django Admin
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

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 ...

python django tricks
0
votes
43
views
Django: Remove Duplicates Filter for Related Posts
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

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 = ...

0
votes
40
views
Setup Django in apache2 Raspberry Pi
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

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: ...

0
votes
33
views
Simple bash scripting for login before open the terminal
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

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 ...

linux beginner tricks
0
votes
30
views
Free SMS Sender using smsmasking
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

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 ...

python api internet
0
votes
38
views
How to minify HTML output in Django
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

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 ...

0
votes
44
views
E11000 duplicate key error index in mongodb
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

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 ...

0
votes
35
views
Custom redirect urls django
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

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 ...