Creating an administration site for your models in Django

Django comes with a built-in administration interface that is very useful for editing content. The Django admin site is built dynamically by reading your model metadata and providing a production-ready interface for editing content. You can use it out-of-the-box, configuring how you want your models to be displayed in it. Remember that django.contrib.admin is already included in the INSTALLED_APPS setting…

Continue Reading →

Know about default Django Project settings

  Let’s open the settings.py file and take a look at the configuration of our project.     DEBUG is a boolean that turns on/off the debug mode of the project. If set to True , Django will display detailed error pages when an uncaught exception is thrown by your application. When you move to a production environment, remember you…

Continue Reading →

Installing Django and creating your first project

  If you have already installed Django, you can skip and jump directly to Creating your first project. If you haven’t installed Django yet, here is a quick guide to installing Django for local development. Django works well with Python versions 2.7 or 3.If you are not sure if Python is installed in your computer, you can verify it by…

Continue Reading →

Introduction to python IDLE

Before you Write and run Python code, you need to make sure the Python interpreter is on your computer. Let’s check your computer for Python 3. Open up a command-line prompt: If you are using Mac OS X or Linux, Type: python3 -V (That’s an UPPERCASE “V”) On windows , Type: c:\Python31\Python.exe -V Without the UPPERCASE “v” you are taken…

Continue Reading →