Skip to content

Commit

Permalink
Make changes to donate app
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Mar 23, 2024
1 parent 1010ab9 commit 012f560
Show file tree
Hide file tree
Showing 14 changed files with 231 additions and 145 deletions.
1 change: 1 addition & 0 deletions donations/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

urlpatterns = [
path("", views.index, name="index"),
path("donate/", views.donate, name="donate"),
path("charge/", views.charge, name="charge"),
path("success/<str:currency>/<str:amount>/", views.success, name="success"),
path("error/", views.error, name="error"),
Expand Down
7 changes: 7 additions & 0 deletions donations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@


def index(request):
context = {
"patreon_stats": FundraisingStatus.objects.all().first(), # TODO: This isn't used
}
return render(request, "donations/corporate_sponsorships.html", context)


def donate(request):
context = {
"patreon_stats": FundraisingStatus.objects.all().first(), # TODO: This isn't used
}
Expand Down
1 change: 1 addition & 0 deletions organize/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
# path('remote_or_in_person/', views.remote_or_in_person, name='remote_or_in_person'),
path("suspend/", views.suspend, name="suspend"),
path("event_funding/", views.event_funding, name="event_funding"),
path("slack/", views.slack, name="slack"),
]
4 changes: 4 additions & 0 deletions organize/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,7 @@ def suspend(request):

def event_funding(request):
return render(request, "organize/event_funding.html", {})


def slack(request):
return render(request, "organize/slack.html")
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions templates/core/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<section id="box-with-picture">
<div class="black-canvas">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="row justify-content-center">
<div class="col-md-8">
<h1>{% trans "We inspire women to fall in love with programming." %}</h1>
<p>
{% trans "Django Girls organize free Python and Django workshops, create open sourced online tutorials and curate amazing first experiences with technology." %}
Expand Down
198 changes: 198 additions & 0 deletions templates/donations/corporate_sponsorships.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
{% extends 'global/base.html' %}
{% load i18n static %}

{% block content %}
{% url 'contact:landing' as contact_url %}

<script src="https://js.stripe.com/v3/"></script>

<div class="container">
<section>
<div class="row clearfix">
<div class="col-md-12">
<h2>{% trans "Why give to the Django Girls Foundation?" %}</h2>
</div>
</div>

<div class="row clearfix">
<div class="col-md-6">
<h3>{% trans "Our mission:" %}</h3>
<p>
{% url 'core:foundation' as foundation_url %}
{% blocktrans trimmed %}
Django Girls is a volunteer-run <a href="{{ foundation_url }}">registered charity</a>.
We use your generous donations to teach thousands of women to build websites
using Python and Django by providing resources and tools volunteer organizers all over the world.
{% endblocktrans %}
</p>

<p>
{% blocktrans trimmed %}
Since July 2014, our workshops have reached {{ attendees_sum|default_if_none:'0' }} women
in {{ countries_count|default_if_none:'0' }} countries
and our <a href="https://tutorial.djangogirls.org/">online tutorial</a> has been read by more than 3,958,285 people.
{% endblocktrans %}
</p>

<p>
{% blocktrans trimmed %}
Our focus and mission for this year is in improving diversity and inclusion in Django
Girls, ensuring our workshops are accessible to all, specifically including those from
marginalised groups.
{% endblocktrans %}
</p>

<p>
{% url 'core:year_2016_2017' as sixteen_seventeen_url %}
{% blocktrans trimmed %}
We're transparent about our finances. See our <a href="{{ sixteen_seventeen_url }}">Annual Report for 2016-2017</a>
to see how we spend donations and what impact they made.
{% endblocktrans %}
</p>
</div>
<div class="col-md-6">
<img class="img-responsive center-block" alt="{% trans 'A woman looking at her laptop during Django Girls Lagos 2016.' %}" src="{% static 'img/global/donate/lagos.jpg' %}">
</div>
</div>
</section>

<section id="support">
<div class="row clearfix">
<div class="col-md-12">
<h2>{% trans "Start supporting Django Girls Foundation today 💕" %}</h2>
</div>
</div>

<div class="row clearfix">
<div class="col-md-6">
<h3>{% trans "Monthly donations" %}</h3>
<p>
{% blocktrans trimmed %}
If you would like to setup a recurring donation, we encourage you to do so via our
<a href="https://www.patreon.com/djangogirls" target="_blank">Patreon page</a>.
Our corporate pledges start at 100 USD per month.
{% endblocktrans %}
</p>
{# TODO: Can this data be dynamic? #}
<p>
<span class="highlighted-number">$1,060</span> of <span class="highlighted-number">$2,500</span> monthly goal pledged</p>
<div class="support-bar">
<div class="pledge" style="width: 42%">42%
</div>
</div>
<a class="btn" href="http://patreon.com/djangogirls">{% trans "Make a recurring donation on Patreon" %}</a>
</div>
<div class="col-md-6">
<h3>{% trans "Annual sponsorships" %}</h3>
<p>
{% blocktrans trimmed %}
Are you a company interested in annual sponsorships?
Our <a href="https://drive.google.com/file/d/1fAmyAiEyLGiE0s6_z3PzgLByHNKzEVHB/view?usp=sharing">corporate sponsorships</a>
start at 500 USD per year. <a href="{{ contact_url }}">Contact us!</a> 📨
{% endblocktrans %}
</p>
<h3>{% trans "One-time donations" %}</h3>
<p>
{% blocktrans trimmed %}
You can send us a one-time donation via PayPal to
<a href="mailto:hello@djangogirls.org">hello@djangogirls.org</a>
{% endblocktrans %}
</p>

<p>
{% blocktrans trimmed %}
If you would like to discuss a bigger partnership or a corporate sponsorship,
<a href="{{ contact_url }}">please get in touch.</a>
{% endblocktrans %}
</p>
</div>
</div>

<br>

<section>
<div class="row clearfix">
<div class="col-md-12">
<h2>{% trans "Our current projects that will benefit from your help" %}</h2>
<h3>{% trans "Django Girls Awesomeness Ambassador:" %}</h3>

<p>
{% blocktrans trimmed %}
In September 2015, <a href="http://blog.djangogirls.org/post/127160095788/meet-our-awesomeness-ambassador-lucie">the
Foundation hired a part-time contractor</a> to help with the daily operations of the organization. After year and a half,
Django Girls’ 1st Awesomeness Ambassador <a href="http://blog.djangogirls.org/post/128559723068/your-django-story-meet-lucie-daeye">
Lucie Daeye</a> resigned to start her new adventure as Systems Engineer at Mapbox.
{% endblocktrans %}
</p>
<p>
{% blocktrans trimmed %}
In June 2017, <a href="https://blog.djangogirls.org/post/161441111423/claire-wicher-joins-django-girls-as-awesomeness">
Claire Wicher</a> joined us as our Awesomeness Ambassador to take over from where Lucie left.
<a href="https://blog.djangogirls.org/post/161441111423/claire-wicher-joins-django-girls-as-awesomeness">Claire Wicher</a> as
our Awesomeness Ambassador, is in charge of responding to organizer's requests, handling our mail, improving our processes,
doing administrative tasks, updating the blog and newsletter, and maintaining the website and resources.
{% endblocktrans %}

{% blocktrans trimmed %}

{% endblocktrans}
</p>

<p>{% trans "Your donations will help us make her position secure." %}</p>

<h3>{% trans "Django Girls Fundraising Coordinator:" %}</h3>

<p>
{% blocktrans trimmed %}
In June 2017, we introduced the role of <a href="https://blog.djangogirls.org/post/162673547790/anna-makarudze-joins-as-the-django-girls">
Fundraising Coordinator</a> to help with coordinating the fundraising activities of the organization.
<a href="https://blog.djangogirls.org/post/162673547790/anna-makarudze-joins-as-the-django-girls">Anna Makarudze</a> as our
Fundraising Coordinator engages sponsors and the community to get funding to ensure the organization remains sustainable.
{% endblocktrans %}
</p>

<p>
{% blocktrans trimmed %}
In August 2020, we also asked her to help us by providing technical support for our website, and
help maintain and keep our website up-to-date.
{% endblocktrans %}
</p>

<p>{% trans "Your donations will help us make her position secure." %}</p>

<h3>{% trans "Django Girls Communications Officer:" %}</h3>

<p>
{% blocktrans trimmed %}
In 2023, we introduced the part-time paid position of Communications Officer to help us
increase outreach following the pandemic and increase the number of workshops.
{% endblocktrans %}
</p>

<h3>{% trans "Django Girls Chief Emoji Officer:" %}</h3>
<p>
{% blocktrans trimmed %}

{% endblocktrans %}
</p>

<h3>{% trans "Django Girls Bootcamp:" %}</h3>

<p>
{% blocktrans trimmed %}
Django Girls Summit is a two days unconference where organizers will meet and share their
experiences about Django Girls workshops.
{% endblocktrans %}
</p>

<p>
{% blocktrans trimmed %}
Your donations will help us organize this event and give financial assistance to conference's attendees who need it.
{% endblocktrans %}
</p>
</div>
</div>
</section>
</div>

{% endblock %}
129 changes: 0 additions & 129 deletions templates/donations/donate.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,55 +7,6 @@
<script src="https://js.stripe.com/v3/"></script>

<div class="container">
<section>
<div class="row clearfix">
<div class="col-md-12">
<h2>{% trans "Why give to the Django Girls Foundation?" %}</h2>
</div>
</div>

<div class="row clearfix">
<div class="col-md-6">
<h3>{% trans "Our mission:" %}</h3>
<p>
{% url 'core:foundation' as foundation_url %}
{% blocktrans trimmed %}
Django Girls is a volunteer-run <a href="{{ foundation_url }}">registered charity</a>.
We use your generous donations to teach thousands of women to build websites
using Python and Django by providing resources and tools volunteer organizers all over the world.
{% endblocktrans %}
</p>

<p>
{% blocktrans trimmed %}
Since July 2014, our workshops have reached {{ attendees_sum|default_if_none:'0' }} women
in {{ countries_count|default_if_none:'0' }} countries
and our <a href="https://tutorial.djangogirls.org/">online tutorial</a> has been read by more than 3,958,285 people.
{% endblocktrans %}
</p>

<p>
{% blocktrans trimmed %}
Our focus and mission for this year is in improving diversity and inclusion in Django
Girls, ensuring our workshops are accessible to all, specifically including those from
marginalised groups.
{% endblocktrans %}
</p>

<p>
{% url 'core:year_2016_2017' as sixteen_seventeen_url %}
{% blocktrans trimmed %}
We're transparent about our finances. See our <a href="{{ sixteen_seventeen_url }}">Annual Report for 2016-2017</a>
to see how we spend donations and what impact they made.
{% endblocktrans %}
</p>
</div>
<div class="col-md-6">
<img class="img-responsive center-block" alt="{% trans 'A woman looking at her laptop during Django Girls Lagos 2016.' %}" src="{% static 'img/global/donate/lagos.jpg' %}">
</div>
</div>
</section>

<section id="support">
<div class="row clearfix">
<div class="col-md-12">
Expand All @@ -78,14 +29,6 @@ <h3>{% trans "Monthly donations" %}</h3>
Our pledges start at 5 USD per month.
{% endblocktrans %}
</p>

<p>
{% blocktrans trimmed %}
Are you a company interested in sponsoring us?
Our <a href="https://drive.google.com/file/d/1fAmyAiEyLGiE0s6_z3PzgLByHNKzEVHB/view?usp=sharing">corporate sponsorships</a>
start at 100 USD per month. <a href="{{ contact_url }}">Contact us!</a> 📨
{% endblocktrans %}
</p>
</div>

<div class="col-md-6">
Expand Down Expand Up @@ -155,78 +98,6 @@ <h4>{% trans "Humble Bundle Store" %}</h4>
</div>
</section>

<section id="supporters">
<div class="row clearfix">
<div class="col-md-12">
<h2>{% trans "They already support us:" %}</h2>
{% include 'includes/_main_sponsors.html' %}
</div>
</div>
</section>

<section>
<div class="row clearfix">
<div class="col-md-12">
<h2>{% trans "Our current projects that will benefit from your help" %}</h2>
<h3>{% trans "Django Girls Awesomeness Ambassador:" %}</h3>

<p>
{% blocktrans trimmed %}
In September 2015, <a href="http://blog.djangogirls.org/post/127160095788/meet-our-awesomeness-ambassador-lucie">the
Foundation hired a part-time contractor</a> to help with the daily operations of the organization. After year and a half,
Django Girls’ 1st Awesomeness Ambassador <a href="http://blog.djangogirls.org/post/128559723068/your-django-story-meet-lucie-daeye">
Lucie Daeye</a> resigned to start her new adventure as Systems Engineer at Mapbox.
{% endblocktrans %}
</p>
<p>
{% blocktrans trimmed %}
In June 2017, <a href="https://blog.djangogirls.org/post/161441111423/claire-wicher-joins-django-girls-as-awesomeness">
Claire Wicher</a> joined us as our Awesomeness Ambassador to take over from where Lucie left.
<a href="https://blog.djangogirls.org/post/161441111423/claire-wicher-joins-django-girls-as-awesomeness">Claire Wicher</a> as
our Awesomeness Ambassador, is in charge of responding to organizer's requests, handling our mail, improving our processes,
doing administrative tasks, updating the blog and newsletter, and maintaining the website and resources.
{% endblocktrans %}
</p>

<p>{% trans "Your donations will help us make her position secure." %}</p>

<h3>{% trans "Django Girls Fundraising Coordinator:" %}</h3>

<p>
{% blocktrans trimmed %}
In June 2017, we introduced the role of <a href="https://blog.djangogirls.org/post/162673547790/anna-makarudze-joins-as-the-django-girls">
Fundraising Coordinator</a> to help with coordinating the fundraising activities of the organization.
<a href="https://blog.djangogirls.org/post/162673547790/anna-makarudze-joins-as-the-django-girls">Anna Makarudze</a> as our
Fundraising Coordinator engages sponsors and the community to get funding to ensure the organization remains sustainable.
{% endblocktrans %}
</p>

<p>
{% blocktrans trimmed %}
In August 2020, we also asked her to help us by providing technical support for our website, and
help maintain and keep our website up-to-date.
{% endblocktrans %}
</p>

<p>{% trans "Your donations will help us make her position secure." %}</p>

<h3>{% trans "Django Girls Summit:" %}</h3>

<p>
{% blocktrans trimmed %}
Django Girls Summit is a two days unconference where organizers will meet and share their
experiences about Django Girls workshops.
{% endblocktrans %}
</p>

<p>
{% blocktrans trimmed %}
Your donations will help us organize this event and give financial assistance to conference's attendees who need it.
{% endblocktrans %}
</p>
</div>
</div>
</section>
</div>

<script>
Expand Down
Loading

0 comments on commit 012f560

Please sign in to comment.