Django – create your first model
In Django, a “model” is a Python class which turns database entities into objects. You create the class, and then use it to build the database tables and to add/edit/delete database entities. Here is a...
In Django, a “model” is a Python class which turns database entities into objects. You create the class, and then use it to build the database tables and to add/edit/delete database entities. Here is a...
After PostgreSQL, MySQL is probably the most popular DBMS (database management system) used with Django. Here is how I set it up Install MySQL, etc Use the Software Manager to install mysql-server (write down...
Pre-requisites: easy_install, pip, virtualenv – getting ready for Django Installing Django Hello World project in <dev root>/Projects/HelloWorldDjango Switch to <dev root>/Projects django-admin.py startproject HelloWordDjango (create the basic project files) cd HelloWorldDjango Check if it works...
I like running Django within a virtual environment (for installation instructions see easy_install, pip, virtualenv – getting ready for Django) I use the following folder structure: <dev root> — envs (short for “environments”) —– Project...
I like running Django within a virtual environment. It gives each project its own set of programmes, libraries, etc. Updating a library for one project then doesn’t affect (and possibly break) all the other...
I’m using an Acer laptop , and started this blog with a fresh installation of LinuxMint 17 Here are the basic tools which I’ve installed since (and this list may grow): Keepass 2 – for password...