diff --git a/.gitignore b/.gitignore index 17cbc5156..5b42b9cb5 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ __pycache__ /include .coverage .venv +venv static/media .idea/* .vscode diff --git a/organize/urls.py b/organize/urls.py index b5666c3ad..37c9e72b6 100644 --- a/organize/urls.py +++ b/organize/urls.py @@ -11,4 +11,5 @@ path("form//", views.organize_form_wizard, name="form_step"), # 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"), ] diff --git a/organize/views.py b/organize/views.py index 97e88c53d..ce9386a05 100644 --- a/organize/views.py +++ b/organize/views.py @@ -104,3 +104,7 @@ def prerequisites(request): def suspend(request): return render(request, "organize/suspend.html", {}) + + +def event_funding(request): + return render(request, "organize/event_funding.html", {}) diff --git a/requirements.txt b/requirements.txt index 189bace8b..22ef426eb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -183,11 +183,11 @@ pluggy==1.0.0 # via pytest pre-commit==2.21.0 # via -r requirements.in -protobuf==4.22.0 +protobuf==4.24.4 # via # google-api-core # googleapis-common-protos -psycopg2-binary==2.8.3 +psycopg2-binary==2.9.9 # via -r requirements.in py==1.11.0 # via pytest diff --git a/templates/organize/event_funding.html b/templates/organize/event_funding.html new file mode 100644 index 000000000..0d20e5114 --- /dev/null +++ b/templates/organize/event_funding.html @@ -0,0 +1,58 @@ +{% extends "global/base.html" %} +{% load i18n rev static %} + +{% block content %} +
+

{% trans "Apply for Sponsorship from our Global Partners" %}

+ +

{% blocktrans trimmed %} + Some of our global partners also fund Django Girls workshops. However, they prefer that Django Girls Foundation handle + the sponsorship application process and they only handle sending the money to the workshop organizers. Django Girls has + done this in the past with GitHub sponsorships though that is no longer available. + {% endblocktrans %} +

+ +

{% blocktrans trimmed %} + Starting November 2023, Django Girls will be handling sponsorship applications for workshops. The organisations Django + Girls are handling the sponsorship process are listed below with the terms and conditions of the sponsorship. + {% endblocktrans %} +

+ +
+

Django Software Foundation

+

{% blocktrans trimmed %} + Starting November 2023, sponsorship applications to the DSF will be handled by Django Girls Foundation. The terms + and conditions of this sponsorship as laid out by the DSF are as follows: + {% endblocktrans %} +

    +
  • + {% blocktrans trimmed %} + The DSF has set aside a limited budget for Django Girls workshops sponsorship spread out through the year. + For this reason, they will only sponsorship only one event per city per year. + {% endblocktrans %} +
  • +
  • + {% blocktrans trimmed %} + The typical DSF sponsorship will be $300 per event, or $500 when the assumption is that the group has large needs + and difficulty fundraising or events outside of the US or Western Europe. + {% endblocktrans %} +
  • +
  • {% blocktrans trimmed %} + The DSF funds events, not long term boot camps therefore this application form should only be used for Django Girls + workshop applications only. + {% endblocktrans %} +
  • +
  • {% trans "The DSF's support has to be publicly recognised and acknowledged." %}
  • +
  • {% blocktrans trimmed %}The DSF has to receive a report of the event via their email dsfboard@googlegroups.com + which should be copied to hello@djangogirls.org. + {% endblocktrans %} +
  • +
+

+ +

{% trans "To apply for DSF funding, please fill in + this form." %} +

+
+
+{% endblock %} \ No newline at end of file diff --git a/templates/organize/index.html b/templates/organize/index.html index 403f06af9..f48d6164d 100644 --- a/templates/organize/index.html +++ b/templates/organize/index.html @@ -104,6 +104,9 @@

{% trans "Resources for organizers" %}

  • {% trans "Django Girls Workshop Tutorial" %}
  • +
  • + {% trans "Apply for Event Sponsorship" %} +
  • {% blocktrans %}Private mailing list & Slack{% endblocktrans %}
  • diff --git a/tests/organize/test_views.py b/tests/organize/test_views.py index d42e4895c..b1f6df2f5 100644 --- a/tests/organize/test_views.py +++ b/tests/organize/test_views.py @@ -1,6 +1,7 @@ import pytest from django.template.loader import render_to_string from django.urls import reverse +from pytest_django.asserts import assertTemplateUsed def test_form_thank_you(client): @@ -106,3 +107,9 @@ def test_organize_form_wizard_workshops_too_close(client, previous_organizer_in_ response["form.errors"] == "Your workshops should be at least 6 months apart. " "Please read our Organizer Manual." ) + + +def test_event_funding(client): + response = client.get(reverse("organize:event_funding")) + assert response.status_code == 200 + assertTemplateUsed(response, "organize/event_funding.html")