Creating Your First App in Django

by Emmanuel D. on February 9, 2012

Django is all over the internet now. Most popular website uses the Django framework for its portability, ease and support community for its an open-source system. You probably heard it about Django and phyton now and if you own a website  or under a website and domain hosting services and has an access to the cPanel, then you can see that it is being endorsed now as an alternative CMS or Content Management System.

If this is the first time that you are creating an app in Django, then you have to take note and follow the pointers below to improve your familiarity with Django and the processes involves:

The Initial Set-up – Django requires an initial setup of the software which contains of predominantly 2 files, the phyton server and the Django core files.  Starting a Django project requires you to auto-generate the code for it to set-up the Django project which includes databases, settings and other aplications.

Here is the command line:

django-admin.py startproject mysite

This will create a “mysite” directory in your current Django directory.

It is important that you avoid naming the directory after built-in Python or Django components.  Example of this is not using names like django for it will conflict with Django itself or test which will cause  conflicts with a built-in Python package.

Another issue to consider, django-admin.py can be found your system path if you use python in installing the Dajngo setup.py. If you are not able to find it then try the directory site-packages/django/bin, where `site-packages` is a directory within your Python installation.

it is best to familiarize yourself first on the installation and directories of Django and Python before proceeding to major tweaking of core files in order to prevent bug issues.

Previous post:

Next post:

About |  Contact |  Sitemap |  Terms of Service |  Privacy