100% found this document useful (1 vote)
148 views

How To Install Django and Create Project

This document provides instructions for installing and working with Django. It outlines Django requirements like Python version and PIP. It describes creating a virtual environment for Django and installing Django within the environment. It also explains that a Django project can contain multiple applications and provides the command for creating a new project.

Uploaded by

Venu D
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
148 views

How To Install Django and Create Project

This document provides instructions for installing and working with Django. It outlines Django requirements like Python version and PIP. It describes creating a virtual environment for Django and installing Django within the environment. It also explains that a Django project can contain multiple applications and provides the command for creating a new project.

Uploaded by

Venu D
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Django Requirements

• Python 3.0 or Higher


python --version

• PIP
pip --version

• Text/Code Editor/IDE – Notepad++, VS Code, ATOM, Brackets, PyCharm

• Web Browser – Google Chrome, Mozilla Firefox, Edge


Check Django is installed or Not
django-admin --version
How to install Django
• Separate Virtual Environment

• Globally
Install Django in Separate Environment
Install Virtual Environment Wrapper
pip install virtualenvwrapper-win – This is used to install Virtual environment wrapper.

Create Virtual Environment (VE)


mkvirtualenv envname – This is used to create virtual environment. It will automatically activate
environment.

Active VE
workon envname – This is used to activate environment.

Install Django in Created VE


pip install django – First activate environment then run the command to install django within active
environment. You can also specify version pip install django==2.0
Django Project
A Django Project may contain multiple Project Application, which means a group of
Application and files is called as Django Project.
An Application is a Part of Django Project.

SchoolProject
• Registration App
• Fees App
• Exam App
• Attendance App
• Result App
Create Django Project
Syntax: -
django-admin startproject projectname
Example:-
django-admin startproject schoolproject

schoolproject
schoolproject
__init__.py
asgi.py
settings.py
urls.py
wsgi.py
manage.py
Uninstall Django from Separate Environment
Active Virtual Environment (VE)
workon envname – This is used to activate environment.

Uninstall Django from VE


pip uninstall django – This is used to uninstall django.

Remove Virtual Environment


rmvirtualenv envname – This is used to remove virtual environment.

Uninstall Virtual Environment Wrapper


pip uninstall virtualenvwrapper-win – This is used to uninstall Virtual environment wrapper.
How to install Django
• Separate Virtual Environment

• Globally
Django Requirements
• Python 3.0 or Higher
python --version

• PIP
pip --version

• Text/Code Editor/IDE – Notepad++, VS Code, ATOM, Brackets, PyCharm

• Web Browser – Google Chrome, Mozilla Firefox, Edge


Check Django is installed or Not
django-admin --version
How to Install Django
pip install django – This is used to install Django.

For Version Specific


pip install django==2.0
How to Uninstall Django
pip uninstall django
Django Project
A Django Project may contain multiple Project Application, which means a group of
Application and files is called as Django Project.
An Application is a Part of Django Project.

SchoolProject
• Registration App
• Fees App
• Exam App
• Attendance App
• Result App
Create Django Project
Syntax: -
django-admin startproject projectname
Example:-
django-admin startproject schoolproject

schoolproject
schoolproject
__init__.py
asgi.py
settings.py
urls.py
wsgi.py
manage.py

You might also like