Skip to content

Sponsor Section Integration & Initial Setup Fixes #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added portal/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added portal/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added portal/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file added portal/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added portal/__pycache__/views.cpython-310.pyc
Binary file not shown.
5 changes: 2 additions & 3 deletions portal/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = bool(os.environ.get("DEBUG", default=0))

ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS")
if ALLOWED_HOSTS:
ALLOWED_HOSTS = ALLOWED_HOSTS.split(",")
ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", "localhost,127.0.0.1").split(",")

# Application definition

Expand All @@ -48,6 +46,7 @@
"portal",
"volunteer",
"portal_account",
"sponsorship",
]

MIDDLEWARE = [
Expand Down
1 change: 1 addition & 0 deletions portal/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@
path("admin/", admin.site.urls),
path("accounts/", include("allauth.urls")),
path("portal_account/", include("portal_account.urls", namespace="portal_account")),
path("sponsorship/", include("sponsorship.urls", namespace="sponsorship")),
]
Binary file added portal_account/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added portal_account/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Empty file added sponsorship/__init__.py
Empty file.
Binary file added sponsorship/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added sponsorship/__pycache__/apps.cpython-310.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions sponsorship/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions sponsorship/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class SponsorshipConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'sponsorship'
Empty file.
3 changes: 3 additions & 0 deletions sponsorship/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions sponsorship/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
8 changes: 8 additions & 0 deletions sponsorship/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django.urls import path
from . import views

app_name = "sponsorship"

urlpatterns = [
path("profile/", views.sponsorship_profile_create, name="profile_create"),
]
5 changes: 5 additions & 0 deletions sponsorship/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.shortcuts import render
from django.http import HttpResponse

def sponsorship_profile_create(request):
return HttpResponse("This is the sponsorship profile creation form.")
11 changes: 6 additions & 5 deletions templates/portal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ <h3 class="fs-2 text-body-emphasis">Volunteer</h3>
<i class="fa-solid fa-hand-holding-dollar"></i>
</div>
<h3 class="fs-2 text-body-emphasis">Sponsor Us</h3>
<p>Sponsorship package is coming soon!</p>
{# <a href="#" class="icon-link">#}
{# Call to action#}
{# <svg class="bi"><use xlink:href="#chevron-right"></use></svg>#}
{# </a>#}
<p>Want to sponsor PyLadiesCon? Fill out our sponsorship form to get started!</p>
<a href="{% url 'sponsorship:create' %}" class="icon-link">
Sponsor Now
<i class="fa-solid fa-chevron-right"></i>
</a>
</div>

<div class="feature col">
<div class="d-inline-flex align-items-center justify-content-center fa-3x mb-3">
<i class="fa-solid fa-microphone"></i>
Expand Down
Binary file added volunteer/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added volunteer/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added volunteer/__pycache__/constants.cpython-310.pyc
Binary file not shown.
Binary file added volunteer/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added volunteer/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added volunteer/__pycache__/views.cpython-310.pyc
Binary file not shown.
6 changes: 3 additions & 3 deletions volunteer/constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from enum import StrEnum
from enum import Enum


class RoleTypes(StrEnum):
class RoleTypes(Enum):
"""Role types for the volunteer."""

ADMIN = "Admin"
Expand All @@ -10,7 +10,7 @@ class RoleTypes(StrEnum):
VOLUNTEER = "Volunteer"


class ApplicationStatus(StrEnum):
class ApplicationStatus(Enum):
"""Application status for the volunteer."""

PENDING = "Pending Review"
Expand Down