Skip to content

ridzRUSH/django_todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project Setup for Django To-Do List Application

This guide walks you through the steps to set up and run the Django-based to-do list application. The project allows users to add new tasks and view a list of tasks.


Prerequisites

Before starting, make sure you have the following installed:

  • Python 3.10 or later
  • Pip (Python package installer)
  • Git (for cloning the repository)
  • Virtual Environment (optional but recommended for managing dependencies)

Steps for Setting Up the Project

1. Clone the Repository

First, clone the repository to your local machine:

git clone https://github.com/ridzRUSH/django_todo.git

This will create a local copy of the project in the current directory.

2. Create and Activate a Virtual Environment (Optional but Recommended)

Creating a virtual environment ensures that the project dependencies are isolated and won't conflict with other Python projects on your machine.

For Windows:

python -m venv env
env\Scripts\activate

For macOS/Linux:

python3 -m venv env
source env/bin/activate

Once the virtual environment is activated, you'll see (env) in your command prompt or terminal.

3. Install Dependencies

Install the project dependencies using pip from the requirements.txt file:

pip install -r requirements.txt

This will install Django and any other dependencies needed to run the project.

4. Apply Database Migrations

The project uses SQLite by default, which is the default database in Django. To set up the database, apply the migrations:

python manage.py migrate

This will create the necessary database tables for the project.

5. Run the Development Server

Start the Django development server by running:

python manage.py runserver

This will start the server on http://127.0.0.1:8000/.

6. Access the Application

Open a web browser and visit the following URLs:

On the Add Task Page, you can add new tasks, and on the Task List Page, you can view the tasks.


Common Commands

Here are some useful Django commands that you might need during development:

  • Start the server:

    python manage.py runserver
  • Create migrations for changes in models:

    python manage.py makemigrations
  • Apply migrations:

    python manage.py migrate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published