0
votes
75
views
Free SMS Sender using smsmasking
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months 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
73
views
Django: Redirect HTTP to HTTPS
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months ago

Django: Redirect HTTP to HTTPS, basically the Django already support to handle this redirection at https://docs.djangoproject.com/en/dev/topics/security/#ssl-https Edit in your settings.py # Redirecting from `HTTP` to `HTTPS` for Django 1.8 or …

0
votes
82
views
Create Command Line interfaces with Python
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months ago

Building command line programs has been a long time passion of mine. There’s something magical about making a simple, intuitive, and composable CLI. There’s also nothing more beautiful than chaining …

linux python
0
votes
76
views
Django Blog Python Learning released v.3.6 with feature autobackup
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months ago

Previously, the Django already has a method to backup the database to the json file with quick command: $ ./manage.py dumpdata --format=json > outfile.json Yup, with dumpdata. But why this …

python django project news
0
votes
75
views
Remove all files .pyc with recrusive method
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months ago

Remove all files .pyc with recrusive method - This method simple but important. Example in your project dir is like this: project_dir/ __init__.py __init__.pyc something.py something.pyc ... core/ __init__.py __init__.pyc …

0
votes
67
views
Custom redirect urls django
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months 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 …

0
votes
65
views
E11000 duplicate key error index in mongodb
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months 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
73
views
How to minify HTML output in Django
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months 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
81
views
Setup Django in apache2 Raspberry Pi
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months 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: …

python network project django
0
votes
83
views
Django: Remove Duplicates Filter for Related Posts
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months 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 = …