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
73
views
Simple bash scripting for login before open the terminal
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months 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
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
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
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
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
78
views
Change backend gmail to Postmarkapp for Django
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months ago

1. Install module of Python Postmark Install this module manually from souce inside your environtment: https://github.com/themartorana/python-postmark If you work on Django==1.9.*, requirements only mock. 2. Register and Put the Server …

email api settings django module
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
72
views
How to make cronjob for Django in Hosting, VPS or Server
posted at July 12, 2018, 10:13 p.m. - 1 year, 7 months ago

How to make cronjob for Django in Hosing, VPS or Server. This config also what we do in this site. For example, in your file of /yourproject/yourapp/management/commands/autobackup.py from django.core.management.base import …

server linux django
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