Simply how to fix .rst (reStructuredText) for PyPi

By: summonagus ● at Oct. 15, 2016, 2:54 a.m. ● Posted under: #Tricks, #Solution, #Problem

Hello guys, this night i want to share simply tutorial how to fix .rst (reStructuredText) format for PyPi. This problem simple but important. previously, i was confused to handle this situation. I has been checkout at, but yeah maybe the problem only about a little characters.You can checkout at ...

Read More →

Djipsum: Plugin to generate the lorem ipsum (fu*ck content) for django model

By: summonagus ● at Oct. 11, 2016, 4:51 p.m. ● Posted under: #Solution, #Project, #News, #Django, #APP, #Module

Djipsum Plugin to generate the lorem ipsum (fu*ck content) for django model. Sometimes, I feel bored when i want to create many contents such as fuck content in once time. and thid Djipsum specially maded to solved it. This plugin is made using management.commands from django. InstallDjipsum is available directly ...

Read More →

Understanding Google reCAPTCHA in Django

By: summonagus ● at Oct. 9, 2016, 7:01 p.m. ● Posted under: #API, #Security, #Django

Understanding Google reCAPTCHA in Django. I found this awesome answer to simply understand how to use API from Google reCAPTCHA. import urllib, urllib2 def recaptcha(request, postdata): rc_challenge = postdata.get('recaptcha_challenge_field', '') rc_user_input = postdata.get('recaptcha_response_field', '').encode('utf-8') url = '' values = { 'privatekey': 'XXXXXXXXXXXXXXXXXXXXXXX', 'remoteip': request.META['REMOTE_ADDR'], 'challenge': rc_challenge, 'response': rc_user_input } data ...

Read More →

Django: Redirect HTTP to HTTPS

By: summonagus ● at Oct. 8, 2016, 4:24 a.m. ● Posted under: #Django, #Solution, #Security, #Settings

Django: Redirect HTTP to HTTPS, basically the Django already support to handle this redirection at in your # Redirecting from `HTTP` to `HTTPS` for Django 1.8 or later SECURE_SSL_REDIRECT = True SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') Hope it usefull..

Read More →

Create Command Line interfaces with Python

By: summonagus ● at Oct. 8, 2016, 3:58 a.m. ● Posted under: #Tricks, #Module

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 together a series of CLI programs to solve a complex problem quickly. Here at Stormpath, we’ve built our entire product ...

Read More →

Quick to understanding git step by step

By: summonagus ● at Oct. 6, 2016, 6:56 a.m. ● Posted under: #Tricks, #Beginner

Quick to understand git step by step. Git is a version control system that is used for software development and other version control tasks. As a distributed revision control system it is aimed at speed, data integrity, and support for distributed, non-linear workflows. Git was created by Linus Torvalds in ...

Read More →

Django Blog Python Learning released v.3.6 with feature autobackup

By: summonagus ● at Oct. 4, 2016, 9:28 a.m. ● Posted under: #Project, #News, #Django, #APP, #Database, #Problem

Previously, the Django already has a method to backup the database to the json file with quick command: $ ./ dumpdata --format=json > outfile.json Yup, with dumpdata. But why this "Django Blog Python Learning" not use it? We need to explore and use another method, so we know what we ...

Read More →

How to make cronjob for Django in Hosting, VPS or Server

By: summonagus ● at Oct. 2, 2016, 5:23 p.m. ● Posted under: #Django, #Tricks, #Solution, #Database, #Project

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/ from import BaseCommand, CommandError class Command(BaseCommand): help = 'To backup your app!' def add_arguments(self, parser): parser.add_argument( 'backup', help='To backup your app!' ) ...

Read More →

Remove all files .pyc with recrusive method

By: summonagus ● at Oct. 2, 2016, 5:15 p.m. ● Posted under: #Tricks, #Solution

Remove all files .pyc with recrusive method - This method simple but important. Example in your project dir is like this: project_dir/ __init__.pyc something.pyc ... core/ __init__.pyc build.pyc Deleting the .pyc files one by one would be spending a lot of time. and you will be ...

Read More →

Change backend gmail to Postmarkapp for Django

By: summonagus ● at Oct. 2, 2016, 5:11 p.m. ● Posted under: #API, #Solution, #Project, #News, #Django, #Module, #Settings

1. Install module of Python Postmark Install this module manually from souce inside your environtment: If you work on Django==1.9.*, requirements only mock.2. Register and Put the Server KeysRegister and put your server API token here: . 101010 is id of your server.Makesure verified your SPF and DKIM. ...

Read More →