Logo F2FInterview

Django Interview Questions

Q   |   QA

Configuration and Setup

  1. download django latest version from https://www.djangoproject.com/download/
  2. extract the file and paste it in to desire path (Eg. /opt/..). If can't paste directly use terminal mode using following command (sudo cp -fr Current_location/Django-1.3 /opt/)
  3. cd /opt/Django-1.3/ in terminal
  4. create a symbolic link for django-admin.py
    • sudo ln -s /opt/Django-1.3/django/bin/django-admin.py /usr/local/bin
  5. create a symbolic link fo django
    • sudo ln -s /opt/Django-1.3/django /usr/lib/python2.7/dist-packages/django

Start Project

  • django-admin.py startproject <proj name>
  • django-admin.py startapp <app name>

To Run Django Development Server

  • /directory/project_name$ python manage.py runserver (Eg. /Desktop/dj$ python manage.py runserver)
  • /directory/project_name$ python manage.py runserver your ip address (Eg. /Desktop/dj$ python manage.py runserver 192.168.2.6:8000)

For more Pls visit Django projects website.

In order to link this F2FInterview's page as Reference on your website or Blog, click on below text area and pres (CTRL-C) to copy the code in clipboard or right click then copy the following lines after that paste into your website or Blog.

Get Reference Link To This Page: (copy below code by (CTRL-C) and paste into your website or Blog)
HTML Rendering of above code: