vconf = config.getInstance(verein)
csv_datei_name = vconf.getConfig("csv_datei_name")
if not csv_datei_name:
- template = loader.get_template('index.html')
+ template = loader.get_template('aus_index.html')
context = {
'csv_datei_name': csv_datei_name,
}
INSTALLED_APPS = [
'ausweis.apps.AusweisConfig',
+ 'kassenbrief.apps.KassenbriefConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [],
+ 'DIRS': ["eh_util/templates"],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
"""
from django.contrib import admin
from django.urls import include, path
+import eh_util
+from . import views
urlpatterns = [
+ path('', views.index),
path('admin/', admin.site.urls),
path('eh-abgleich/', include('eh_abgleich.urls')),
+ path('<slug:verein>/', views.vbasis),
path('<slug:verein>/ausweis/', include('ausweis.urls')),
+ path('<slug:verein>/kassenbrief/', include('kassenbrief.urls')),
]
--- /dev/null
+from django.http import HttpResponse, HttpResponseRedirect
+from django.shortcuts import render
+from django.template import loader
+
+
+def index(request):
+ template = loader.get_template('index.html')
+ return HttpResponse(template.render({}, request))
+
+def vbasis(request, verein):
+ template = loader.get_template("vbasis.html")
+ return HttpResponse(template.render({"verein" : verein}, request))
+
+
\ No newline at end of file