Category Archives: Django

Django Template extending

Posted on in Django Python

In this tutorial I will describe how you can extend from Django’s templates, and create your own. 1. Create a templates folder in the root of your site. 2 visit the website. Create a static folder in the root of your site. 3. Enable the templates folder in your root settings.py file: TEMPLATES = [ […]

Read more »

Setup a Django Project with a MySQL database.

Posted on in Django MySQL Python

This tutorial requires Python 2.7. First make sure virtualenv is installed: $ pip install virtualenv To set up a virtual environment for your project, use: $ virtualenv myproject To join the environment: $ source myproject/bin/activate Install Django: $ pip install Django Create a Django project. $ django-admin startproject mysite By default Django will make use […]

Read more »