This is a todo application written on django for storing your tasks
By design, our app should be able to:
- Create task categories
- Edit task categories
- Delete task categories
- Create tasks
- Edit tasks
- Delete tasks
- Register users
- Allow to login users in their accounts
- Search tasks
What can our application do now:
- Create task categories
- Edit task categories
- Delete task categories
- Create tasks
- Edit tasks
- Delete tasks
- Register users
- Allow to login users in their accounts
- Search tasks
- Install all dependences with command:
pip install -r requirments.txt
- create folder
project_settings
into_do_list/to_do_list
and and inside theproject_settings
directory createsettings_for_db.json
- Open
settings_for_db.json
file and write config for database and django settings like this:
{ "SECRET_KEY": "Your django's project secret key",
"NAME": "Name of your db",
"USER": "User for your db",
"PASSWORD": "Your db user's password",
"HOST": "Your host",
"PORT": "Your port"
}
- In terminal go to directory
to_do_list
(Wheremanage.py
file) and run command for applying ready-made migrations:
python manage.py migrate
- In
to_do_list
(Wheresettings.py
file) createasgi.py
andwsgi.py
files and inside them paste django-generated code like this:
#asgi.py
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'to_do_list.settings')
application = get_asgi_application()
#wsgi.py
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'to_do_list.settings')
application = get_wsgi_application()
Or write your custom code for these files
6. Run command:
python manage.py runserver
And use my project
- Html templates
Category
view- Models
Category
,Task
Category
creating
Todos
view forTask
model- Base rendering for
Todos
view
- Created
todo.html
to render tasks associated with categories andtodo.css
for this html file - Css-code for
category.html
is placed frombase.css
tocategory.css
- In
views.py
classTodos
was rewritten, now if you haven't any tasks, intodo.html
a message will be displayed that there are no tasks
- Implemented tasks creating
- Realized
post()
method, which processes POST requests todo.html
is supplemented with new code
- Marking tasks as completed has been implemented
todo.html
has a small redesign, now pending and completed tasks are in different blocks- Also implemented some minor things
- Implemented task editing
- Implemented task deleting
- New templates and stylesheets was implemented
- User registration is implemented
- Now you can log in and log out
- After this release, you can only see and do things with your tasks
- Implemented tasks searching
- Now you can sort tasks by some condition
- Minor bugs was fixed