A simple to-do list app built with Django.
- Project Introduction
- How to install Django
- How to create tasks in the database
- Add fake entries to your todo list
- How to add URLs, Views & Templates
- How to add a form
- Add CSS to templates
- CRUD: updating objects
- CRUD: deleting objects
- Filtering lists
- Create a virtual environment
python3 -m venv venv
Activate environment
source venv/bin/activate
- Install requirements
pip install -r requirements.txt
- Create a .env file in mysite directory
Add the following code:
SECRET_KEY=yoursecretkeywhichwillbemoresecurethanthisone
- Test the server runs
python manage.py runserver
- Migrate
python manage.py migrate
- Create a superuser
python manage.py createsuperuser