DJango
Full stack web development using Django
Value
Added
Course
[DATE]
[Company name]
[Company address]
14/8/24
1.How to create virtual
environment
AIM:
To develop the create virtual environment in Django.
Algorithm:
1. Install virtualenv:
2. Navigate to Project Directory.
3. Create Virtual Environment.
4. Activate Virtual Environment.
5. Install Django.
6. Create Django Project.
7. Deactivate Virtual Environment.
Commands:
python --version
pip install django
python -m django --version
python –m venv django-venv
cd django-venv ( change directory)
cd scripts
activate
Command prompt:
pip list
cd..
python –m pip install django
pip list
cd scripts
deactivate
Result:
Thus the Django virtual environment successfully created.
21/8/24
2.How to install dajnago and create
project
AIM:
To develop the create virtual environment in Django.
Algorithm:
1. Install virtualenv:
2. Navigate to Project Directory.
3. Create Virtual Environment.
4. Activate Virtual Environment.
5. Install Django.
6. Create Django Project.
7. Deactivate Virtual Environment.
Commands:
python –m venv django-venv
cd django-venv
cd scripts
activate
pip install django
cd..
django-admin --version
django-admin startproject new
Open visual studio:
• Open folder Django-venv
• Open terminal
• Cd new
• Python manage.py runserver
• Copy the path and paste in the
browser
Result:
Thus the Django was installed and Django project page successfully created.
21/8/24
3.HOW TO CREATE FIRST DJANGO
APPLICATION
AIM:
To develop the create virtual environment in Django.
Algorithm:
1. Install virtualenv:
2. Navigate to Project Directory.
3. Create Virtual Environment.
4. Activate Virtual Environment.
5. Install Django.
6. Create Django Project.
7. Deactivate Virtual Environment.
Visual Studio:
• Open folder Django-venv
• Cd new
• Python manage.py startapp
My_application
• Open Settings.py
• Installed_Apps= ‘ My_application’,
• Open Terminal
• Cd new
• Python manage.py runserver
Open visual studio:
• Open folder Django-venv
• Open terminal
• Cd new
• Python manage.py runserver
• Copy the path and paste in the
browser
Result:
Thus the Django application page was created successfully created.