- This is a basic web application, which allows the user to login and create tasks/to-do items.
- User creates task by entering the task heading, task description and the deadline (till when the task is to be completed) .
- The user can update, delete the tasks accordingly. The application also sends email notification to the registered email about the deadline of the task.
- The user has to first register himself/herself using basic details like email.
- Once the registration is complete the user gets a Welcome Email.
- The user can the login and start creating tasks.
- The user gets an email notification 24 hrs prior to the task deadline.
- In config.py use your own environment variables
- database URL
- Email (Mandatory for email notification)
- Password (Mandatory for email notification)
| Environment Variable | Description |
|---|---|
SECRET_KEY |
Secret key for your application |
MAIL_SERVER |
Mail server for the email notifications |
EMAIL |
Email address from which notifications would be sent |
EMAIL_TOKEN |
Password for the email address account |
TASK_LISTER_DEBUG |
To specify if the environment is production or development |
TASK_LISTER_KOYEB_DB |
Database URL for the database hosted on Koyeb |
When using psycopg2 in Flask, ensure that the database URI starts with postgresql:// instead of postgres://.
For example, use:
postgresql://username@localhost:5432/template1
SQLAlchemy previously supported both postgres:// and postgresql://, but support for the postgres scheme has been removed. Make sure to update your connection string to avoid compatibility issues.
If you are using a Google SMTP server for sending emails in your application, follow the steps below:
- Log in to your Google account.
- Navigate to Google Account Settings.
- Go to 2-Step Verification and enable it if not already enabled.
- Access App Passwords from the security settings.
- Provide a desired name for the app and click Create. This will generate a password for your application.
- Copy the password displayed on the screen and use it as the value for the
EMAIL_TOKENenvironment variable in your application.


