This is a Django project that implements a to-do list application with user authentication. Users can create, manage, and track tasks, as well as sign up, log in, and manage their accounts.
- User Authentication: Sign up, log in, and log out.
- Task Management: Create, read, update, and delete tasks.
- User-Specific Data: Tasks are managed per user account.
- Python 3.x
- Django 5.x
- PostgreSQL (or other database, adjust settings accordingly)
-
Clone the repository:
git clone https://github.com/yourusername/django-todo-app.git cd django-todo-app -
Create and activate a virtual environment:
python -m venv venv venv\Scripts\activate
-
Install the required packages:
pip install -r requirements.txt
-
Set Up Environment Variables: Create a
.envfile in the root directory of the project with the following content:DATABASE_NAME=todolist DATABASE_USER=postgres DATABASE_PASSWORD=0000 DATABASE_HOST=localhost DATABASE_PORT=5432
Note: Make sure to create the database named todolist in PostgreSQL before running migrations.
-
Create Migrations:
python manage.py makemigrations
-
Apply Database Migrations:
python manage.py migrate
-
Run the Development Server:
python manage.py runserver
-
Visit the Application: Open http://127.0.0.1:8000/ in your web browser to use the application.