-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
770 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,13 @@ DJANGO_SUPERUSER_USERNAME=admin | |
DJANGO_SUPERUSER_EMAIL=[email protected] | ||
DJANGO_SUPERUSER_PASSWORD=admin | ||
|
||
NEXT_PUBLIC_API_URL= http://localhost:8000/api/v1 | ||
# for running with docker, else put these variables inside .env in frontend folder | ||
|
||
# Server-side URL (not prefixed with NEXT_PUBLIC_) | ||
API_URL=http://djangoindia-backend:8000/api/v1 | ||
# without docker: API_URL=http://localhost:8000/api/v1 | ||
|
||
# Client-side URL (prefixed with NEXT_PUBLIC_) | ||
NEXT_PUBLIC_API_URL=http://localhost:8000/api/v1 | ||
|
||
NEXT_PUBLIC_NODE_ENV=development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,129 @@ | ||
# djangoindia.org | ||
<div align="center"> | ||
<img src="assets/djangoindia-logo.png" alt="Django India Logo" /> | ||
</div> | ||
|
||
|
||
|
||
<hr> | ||
|
||
<h1 align="center">Welcome to Django India Community!</h1> | ||
|
||
|
||
**Django India Community** is a vibrant and inclusive hub for Django developers, offering a supportive environment for learning, growth, and networking. Join us to connect with like-minded individuals, share knowledge, and collaborate on exciting projects. Whether you're a beginner or an experienced developer, our community welcomes everyone with open arms. Discover new opportunities, expand your professional network, and contribute to the growth of the Django ecosystem in India. | ||
|
||
## Table of Contents | ||
- [Code of Conduct](#code-of-conduct) | ||
- [Get Involved and Make a Difference](#get-involved-and-make-a-difference) | ||
- [Contributing to djangoindia website](#contributing-to-djangoindia-website) | ||
- [Maintainers](#maintainers) | ||
- [License](#license) | ||
|
||
|
||
## Code of Conduct | ||
|
||
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, gender identity and expression, level of experience, education, socioeconomic status, nationality, personal appearance, race, religion, or sexual identity and orientation. | ||
|
||
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. | ||
For more details, please see our [Code of Conduct.](https://github.com/djangoindia/djangoindia.org/blob/main/CODE_OF_CONDUCT.md) | ||
|
||
## Get Involved and Make a Difference | ||
|
||
|
||
Join our community. Here's how you can get involved: | ||
|
||
- **Star the Repo:** Show your support by giving us a star! ⭐️ | ||
- **Spread the Word:** Share Django India with your colleagues and friends. 📣 | ||
- **Report Issues:** Notice something not quite right? Let us know by creating an issue. Your feedback is invaluable! 🐛 | ||
- **Contribute Code:** Dive into open issues and send pull requests to help us squash bugs and implement exciting enhancements. 🛠️ | ||
- **Review Pull requests:** By actively reviewing pull requests, you can help maintain the quality and integrity of the project, while also supporting other contributors and fostering a collaborative environment within the Django India community.🕵️ | ||
|
||
Together, let's build something incredible! ✨🚀 | ||
|
||
|
||
## Contributing to djangoindia website | ||
|
||
We welcome contributions from everyone, whether you're fixing bugs, adding new features, or improving documentation. To contribute, please fork the repository, create a new branch for your changes, and submit a pull request. Make sure to follow our coding standards and include tests where applicable. We also encourage you to discuss significant changes by opening an issue before starting development. Your contributions help us build a stronger community—thank you for being a part of Django India! | ||
For more details, please see our [Contributing.md](https://github.com/djangoindia/djangoindia.org/blob/main/contributing.md) | ||
|
||
## Maintainers | ||
|
||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<td align="center" width="150px"> | ||
<a href="https://github.com/ankanchanda"> | ||
<img src="https://avatars.githubusercontent.com/u/108596468?v=4" width="75" height="75" | ||
alt="Saurabh Sharma" /> | ||
<br /> | ||
Ankan Chanda | ||
</a> | ||
<br /> | ||
<p align="center"> | ||
<a target="_blank" href="https://www.linkedin.com/in/ankanchanda/"> | ||
<img width="32" height="32" src="https://img.icons8.com/color/32/linkedin.png" alt="LinkedIn" /> | ||
</a> | ||
<!-- <a href="mailto:[email protected]"> | ||
<img width="32" height="32" src="https://img.icons8.com/color/32/gmail-new.png" alt="Gmail" /> --> | ||
</a> | ||
</p> | ||
</td> | ||
<td align="center" width="150px"> | ||
<a href="https://github.com/nikhil25803"> | ||
<img src="https://avatars.githubusercontent.com/u/93156825?v=4" width="75" height="75" | ||
alt="Nikhil Raj" /> | ||
<br /> | ||
Nikhil Raj | ||
</a> | ||
<br /> | ||
<p align="center"> | ||
<a target="_blank" href="https://www.linkedin.com/in/nikhil25803/"> | ||
<img width="32" height="32" src="https://img.icons8.com/color/32/linkedin.png" alt="LinkedIn" /> | ||
</a> | ||
<!-- <a href="mailto:[email protected]"> | ||
<img width="32" height="32" src="https://img.icons8.com/color/32/gmail-new.png" alt="Gmail" /> --> | ||
</a> | ||
</p> | ||
</td> | ||
<td align="center" width="150px"> | ||
<a href="https://github.com/Knighthawk-Leo"> | ||
<img src="https://avatars.githubusercontent.com/u/72437494?v=4" width="75" height="75" | ||
alt="Sanskar Dwivedi" /> | ||
<br /> | ||
Sanskar Dwivedi | ||
</a> | ||
<br /> | ||
<p align="center"> | ||
<a target="_blank" href="https://www.linkedin.com/in/sanskar-dwivedi-a20201200/"> | ||
<img width="32" height="32" src="https://img.icons8.com/color/32/linkedin.png" alt="LinkedIn" /> | ||
</a> | ||
<!-- <a href="mailto:[email protected]"> | ||
<img width="32" height="32" src="https://img.icons8.com/color/32/gmail-new.png" alt="Gmail" /> | ||
</a> --> | ||
</p> | ||
</td> | ||
<td align="center" width="150px"> | ||
<a href="https://github.com/Saurabhsharma884"> | ||
<img src="https://avatars.githubusercontent.com/u/65456653?v=4" width="75" height="75" | ||
alt="Saurabh Sharma" /> | ||
<br /> | ||
Saurabh Sharma | ||
</a> | ||
<br /> | ||
<p align="center"> | ||
<a target="_blank" href="https://www.linkedin.com/in/saurabh-sharma-555a501b7/"> | ||
<img width="32" height="32" src="https://img.icons8.com/color/32/linkedin.png" alt="LinkedIn" /> | ||
</a> | ||
<!-- <a href="mailto:[email protected]"> | ||
<img width="32" height="32" src="https://img.icons8.com/color/32/gmail-new.png" alt="Gmail" /> --> | ||
</a> | ||
</p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License, one of the most permissive and widely used open-source licenses.This means that you can integrate this project into your applications, modify it to fit your needs, and even distribute it as part of a commercial product without any concern for legal restrictions. | ||
For more details, please see our [License.](https://github.com/djangoindia/djangoindia.org/blob/main/LICENSE) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from .event import EventSerializer, EventRegistrationSerializer | ||
from .communication import NewsletterSubscriptionSerializer, ContactUsSerializer | ||
from .communication import SubscriberSerializer, ContactUsSerializer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from django.urls import path | ||
|
||
from djangoindia.api.views.communication import NewsletterSubscriptionAPIView, ContactUsAPIView | ||
from djangoindia.api.views.communication import SubscriberAPIView, ContactUsAPIView | ||
|
||
urlpatterns = [ | ||
path('newsletter/', NewsletterSubscriptionAPIView.as_view(), name='newsletter-subscription'), | ||
path('subscriber/', SubscriberAPIView.as_view(), name='subscriber'), | ||
path('contact-us/', ContactUsAPIView.as_view(), name='contact-us'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from .event import EventAPIView | ||
from .communication import NewsletterSubscriptionAPIView, ContactUsAPIView | ||
from .communication import SubscriberAPIView, ContactUsAPIView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from celery import shared_task | ||
from django.core.mail import send_mass_mail | ||
|
||
from django.conf import settings | ||
|
||
@shared_task | ||
def send_mass_update_email_task(update_id): | ||
from djangoindia.db.models.update import Update | ||
try: | ||
update = Update.objects.get(id=update_id) | ||
except Update.DoesNotExist: | ||
raise ValueError("Update not found") | ||
|
||
email_objs=[] | ||
for subscriber in update.recipients.all(): | ||
email_tuple = ( | ||
f"Django India: {update.get_formatted_type()}", | ||
update.html_template, | ||
settings.DEFAULT_FROM_EMAIL, | ||
[subscriber.email], | ||
) | ||
email_objs.append(email_tuple) | ||
try: | ||
send_mass_mail((email for email in email_objs), fail_silently=False) | ||
update.mail_sent=True | ||
update.save() | ||
except Exception as e: | ||
# Didn't throw error at django level even for wrong emails. | ||
print(f"Failed to send email : {str(e)}") |
Oops, something went wrong.