aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--site/allegiance_site/templates/base-contact.html2
-rw-r--r--site/allegiance_site/templates/base.html2
-rw-r--r--site/allegiance_site/urls.py4
-rw-r--r--site/allegiance_site/views.py18
4 files changed, 24 insertions, 2 deletions
diff --git a/site/allegiance_site/templates/base-contact.html b/site/allegiance_site/templates/base-contact.html
index e2f9469..a7d148c 100644
--- a/site/allegiance_site/templates/base-contact.html
+++ b/site/allegiance_site/templates/base-contact.html
@@ -67,7 +67,7 @@
{% with dropdown=True %}
{% show_menu 0 100 100 100 "menu/menu.html" %}
{% endwith %}
- <li class="nav-item"><a class="nav-link" href="https://www.paypal.com" target="_blank">Donate</a></li>
+ <li class="nav-item"><a class="nav-link" href="https://www.paypal.com/donate/?token=dxxPxwhgytWuM0nY5kLISdVFX1892_nfBp9qKU-0p2OaiUk1daSVTuQgVN9PKgWMxKfUIm&country.x=US&locale.x=EN_US" target="_blank">Donate</a></li>
</ul>
</div>
<!--</div>-->
diff --git a/site/allegiance_site/templates/base.html b/site/allegiance_site/templates/base.html
index 666b84e..4eb932b 100644
--- a/site/allegiance_site/templates/base.html
+++ b/site/allegiance_site/templates/base.html
@@ -67,7 +67,7 @@
{% with dropdown=True %}
{% show_menu 0 100 100 100 "menu/menu.html" %}
{% endwith %}
- <li class="nav-item"><a class="nav-link" href="https://www.paypal.com" target="_blank">Donate</a></li>
+ <li class="nav-item"><a class="nav-link" href="https://www.paypal.com/donate/?token=dxxPxwhgytWuM0nY5kLISdVFX1892_nfBp9qKU-0p2OaiUk1daSVTuQgVN9PKgWMxKfUIm&country.x=US&locale.x=EN_US" target="_blank">Donate</a></li>
</ul>
</div>
<!--</div>-->
diff --git a/site/allegiance_site/urls.py b/site/allegiance_site/urls.py
index 254c6ba..732ea33 100644
--- a/site/allegiance_site/urls.py
+++ b/site/allegiance_site/urls.py
@@ -9,6 +9,8 @@ from django.contrib import admin
from django.contrib.sitemaps.views import sitemap
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.static import serve
+#from django.urls import path
+from . import views
admin.autodiscover()
@@ -20,6 +22,8 @@ urlpatterns = [
urlpatterns += i18n_patterns(
url(r'^admin/', admin.site.urls), # NOQA
url(r'^', include('cms.urls')),
+ path("events/"),
+ path("<int:pk>/", views.event_detail, name="event_detail"),
)
# This is only needed when using runserver.
diff --git a/site/allegiance_site/views.py b/site/allegiance_site/views.py
new file mode 100644
index 0000000..c39ebee
--- /dev/null
+++ b/site/allegiance_site/views.py
@@ -0,0 +1,18 @@
+from django.shortcuts import render
+from . import models
+
+'''
+def event_index(request):
+ event = Events.objects.all()
+ context = {
+ 'event': event
+ }
+ return render(request, 'event_index.html', context)
+'''
+
+def event_detail(request, pk):
+ event = Event.objects.get(pk=pk)
+ context = {
+ 'event': event
+ }
+ return render(request, 'event_detail.html', context)