Blog

Blog

Using GeoDjango in your Django project

In this tutorial, I will explain to you how to use GeoDjango in Django project. Let us assume you have UserProfile in your Django project.

Building single page applications easily with cowhite.js

In this tutorial, I will explain you how to build single page applications easily using cowhite.js.

Database API and Django Admin

Database API

In last tutorial we left off by creating and migrating models. This means that we have everything ready and the only thing we need to do is add data into the database. For doing so Django has a Database API which allows us to access and manipulate the database using Python code only. Let's play with this API and learn them on the way. We can use the Python shell to do so. Type the following to open the Python shell

URLDispatcher

Django comes packaged with a URL dispatcher which let's you design cool elegant URL scheme. It let's you design URLs the way you want with no limitations as such. Also there is no URL extentions such as .php, .html or .cgi, which means a much more beautiful URL.

Models and Migrations

Setting up Database

Before we start with models let's understand how to setup database to work with Django. Django comes pre bundled and ready to work with SQLite database, which for development and for very small lightweight websites would be enough to wor with, but if the scale of the website or the user-base of the website is even moderately high, SQLite is definitely not enough.

Recent Posts

Archive

2022
2021
2020
2019
2018
2017
2016
2015
2014

Tags

Authors

Feeds

RSS / Atom