Tags » Django 2

Setting up mysql for python

OK, after trying to setting up my virtual environment for django I was struggling working with mysql.

What I was getting is after running:

$ pip install MySQL-python

EnvironmentError: mysql_config not found

… 63 more words

How to remove superuser from Django Project

Open Terminal(Ctrl+Alt+T).
Browse to your project source directory(where 'manage.py' exists):
$ cd project

Note: Replace 'project' with your directory name.

Now execute these commands:
$ … 49 more words

Django_mailr - A reusable newsletter sending app

Django_mailr is a simple reusable app for sending newsletters. It is a simplest possible application for sending newsletters via django admin and managing subscribers Every project needs a mailing application, so I created this which can be used everywhere. 122 more words


Very simple Django login code with bootstrap


urlpatterns = patterns('',
                       url(r'^login/$', views.login, name='login'),


from django.contrib.auth import (login as auth_login,  authenticate)
from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
... 411 more words

Django Tutorial - Building URL Shortener with Django

I finally got the time to write a Django tutorial. In this tutorial we are building URL Shortener. If you are confused with what we are building then we are building something similar to ( 2,589 more words


How to modify setting.py file & make message files for Django 1.7

$ sudo apt-get install gettext
$ sudo pip3 install -U Django
$ pwd

$ vi settings.py
... 45 more words

[flask] generate a secret key

To implement CSRF protection, Flask-WTF needs the application to configure an encryption key. This key is used to generate encrypted tokens that are used to verify the authenticity of requests with form data. 245 more words