0
votes
22
views
Program Menghitung Tahun Kabisat pada Python
posted at July 12, 2018, 10:13 p.m. - 7 months, 2 weeks 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 ...

beginner python
0
votes
26
views
Menghitung Jumlah karakter dan spasi pada python
posted at July 12, 2018, 10:13 p.m. - 7 months, 2 weeks 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 ...

beginner python
0
votes
28
views
Adding BroadCast Mail to All User Registered in Django Admin
posted at July 12, 2018, 10:13 p.m. - 7 months, 2 weeks 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 ...

tricks python django
0
votes
33
views
Django: Remove Duplicates Filter for Related Posts
posted at July 12, 2018, 10:13 p.m. - 7 months, 2 weeks 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
27
views
Setup Django in apache2 Raspberry Pi
posted at July 12, 2018, 10:13 p.m. - 7 months, 2 weeks 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
25
views
Simple bash scripting for login before open the terminal
posted at July 12, 2018, 10:13 p.m. - 7 months, 2 weeks 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 tricks beginner
0
votes
22
views
Free SMS Sender using smsmasking
posted at July 12, 2018, 10:13 p.m. - 7 months, 2 weeks 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 ...

internet python api
0
votes
24
views
How to minify HTML output in Django
posted at July 12, 2018, 10:13 p.m. - 7 months, 2 weeks 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
25
views
E11000 duplicate key error index in mongodb
posted at July 12, 2018, 10:13 p.m. - 7 months, 2 weeks 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
23
views
Custom redirect urls django
posted at July 12, 2018, 10:13 p.m. - 7 months, 2 weeks 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 ...