Task Management System Development
Introduction
this documentation, you'll be guided through the process of developing a Task Management System using Django. This system will empower users to create, assign, update, and mark tasks as completed. Additionally, it will include features such as user authentication and authorization, enabling users to manage their tasks efficiently and collaborate with team members seamlessly.
Getting Started
- Prerequisites:
• To ensure Python is installed on my system. Checked by typing:
python --version
- Install Django:
• I then opened my command prompt.
• Installed Django using pip by typing:
pip install django
- Set Up Virtual Environment:
• I created a virtual environment for the project. This isolates project dependencies from other
Python projects on my system:
python -m venv venv
4.. Activate the virtual environment:
For activating the virtual environment I run the code:
venv\Scripts\activate
- Start Development Server:
• To check if the server is working, I started the Django development server:
python manage.py runserver
- Access the Project:
• Then, I opened a web browser and went to http://127.0.0.1:8000/ to access the Django project.
- 7.Create a new Django project:
django-admin startproject system
- Create Django App
Created a new Django app within my project:
python manage.py startapp home
Configure Static Files
Created a directory named static to store static files such as CSS, JavaScript, and images.
Configure Template Directory
In Django project settings (settings.py), I configured the template directory by adding the following line:
TEMPLATES = [
{
'DIRS': [os.path.join(BASE_DIR, 'templates')]
},
]
Load Static Files
In my HTML file, load static files are loaded using the {% load static %} template tag
and {% static %} template tag, respectively.
Task Management System Development
Introduction
this documentation, you'll be guided through the process of developing a Task Management System using Django. This system will empower users to create, assign, update, and mark tasks as completed. Additionally, it will include features such as user authentication and authorization, enabling users to manage their tasks efficiently and collaborate with team members seamlessly.
Getting Started
- Prerequisites:
• To ensure Python is installed on my system. Checked by typing:
python --version
- Install Django:
• I then opened my command prompt.
• Installed Django using pip by typing:
pip install django
- Set Up Virtual Environment:
• I created a virtual environment for the project. This isolates project dependencies from other
Python projects on my system:
python -m venv venv
4.. Activate the virtual environment:
For activating the virtual environment I run the code:
venv\Scripts\activate
- Start Development Server:
• To check if the server is working, I started the Django development server:
python manage.py runserver
- Access the Project:
• Then, I opened a web browser and went to http://127.0.0.1:8000/ to access the Django project.
- 7.Create a new Django project:
django-admin startproject system
- Create Django App
Created a new Django app within my project:
python manage.py startapp home
Configure Static Files
Created a directory named static to store static files such as CSS, JavaScript, and images.
Configure Template Directory
In Django project settings (settings.py), I configured the template directory by adding the following line:
TEMPLATES = [
{
'DIRS': [os.path.join(BASE_DIR, 'templates')]
},
]
Load Static Files
In my HTML file, load static files are loaded using the {% load static %} template tag
and {% static %} template tag, respectively.