QueryJane is a web application developed with Django that allows to connect with companies and experts in different sectors of the cannabis industry. Beta version is available here.
I have been working in the email notifications. Let me show you.
New Features
I have integrated huey==1.6.1 in the project. This is a task queue manager that will allow to run the emailing as a second level task. This is to prevent the mailing from interfering with the normal application flow.
The detailed code changes related to this feature can be found in this PR.
All emails will be sent using the send_email function. This function has been created using the EmailMessage class of Django, that allows to send emails in a very simple way. You can see the send_email function code in this commit.
Notify users when they receive a new message.
Users can send private messages on the platform. they can find new private messages in the Inbox menu, in the application header:
Now, when a user receives a new private message, he will be notified to his registered email. Take a look to the email content, with a part of the message, a link to visit the inbox page and a link to visit the email notifications settings:
detailed code changes related to this feature can be found in this commit.
Notify users when a new job offer is created.
Users can create job offers in their registered companies. When a new job offer is created, QueryJane searches for users that fit the requirements and creates a notification that they can find in the notifications menu, in the application header:
Users will be notified through their email when a job offer that fits their profile is created. Take a look to the email content, with a part of the job offer description and a link to apply:
detailed code changes related to this feature can be found in this commit.
Added manage email notifications section.
When an application send automated emails to the users, it must allow them to manage the email settings. For this reason I have added a new section in the account settings that allows to the users select by notification type if they want to receive email messages from the app:
If they select "no", the email notifications will be disabled according to the notification type.
detailed code changes related to this feature can be found in this commit.
Code refactoring.
Code refactoring in the "entrepreneur" app views. In the app views there were a lot of code. Now, views for "contact settings", "general settings", "manage job offers", "privacy settings", "roles settings" and "general venture views" can be found in separate files. This will allow contributors to understand the code much more easily.
The detailed code changes related to this code refactoring can be found in this commit.
Find my Github account here
How to contribute?
QueryJane has been developed using the Django framework. You can fork the project, and run it locally is very easy. Follow the steps described in the open source repository installation guide. The project has been configured using Docker. you only need to install Docker and follow these steps.
Future work.
- Activate Spanish site.
- Styles adjustment: I'm backend developer, and my skills as front-end developer are low. I will search for some help to adjust some sections styles.
- Advertising campaign.
Take a look to the public board in trello, maybe there is something for you. I will be adding more activities in different categories to do.
If you want to contribute, please join my Discord.
Have happy days ✌
Posted on Utopian.io - Rewarding Open Source Contributors