svbal (0.1-%BUILD%) unstable; urgency=medium
- * initial version: Ausweiserstellung
+ * initial version: Ausweiserstellung, Kassenbrief
-- Michael Wagner <info@wagnertech.de> Sat, 06 Jun 2020 20:03:04 +0100
Package: eigenheimer-util
Architecture: all
-Depends: texlive-latex-base, texlive-latex-recommended, texlive-lang-german, python3, apache2, libapache2-mod-wsgi-py3
+Depends: texlive-latex-base, texlive-latex-recommended, texlive-lang-german, python3, apache2, libapache2-mod-wsgi-py3, python3-django
Description: Mitgliederverwaltung Eigenheimerverband
.
set -e
mkdir -p $1/opt
-cp -r python/eh_util $1/opt
+cp -r python/eh_util $1/opt/
# DB löschen
rm $1/opt/eh_util/db.sqlite3
# DB anlegen/migrieren
/opt/eh_util/manage.py migrate
-# activate verleihnix configuration
+# activate eh_util configuration
if ! test -e /etc/apache2/sites-enabled/eh_util.conf
then
a2ensite eh_util
def index(request, verein):
template = loader.get_template("vbasis.html")
+ raise RuntimeError("blub")
return HttpResponse(template.render({"verein" : verein}, request))
def tex_bearbeiten(request, verein):
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-
+MEDIA_ROOT = BASE_DIR
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
ALLOWED_HOSTS = []
+LOGIN_URL = "/eh-util/login"
# Application definition
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': ["eh_util/templates", "eh_utils/eh_app/templates/svbal"],
+ 'DIRS': [os.path.join(BASE_DIR, "eh_util/templates"), os.path.join(BASE_DIR, "eh_utils/eh_app/templates/svbal")],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': 'db.sqlite3',
+ 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
urlpatterns = [
path('', views.index),
- path('accounts/login/', views.login),
+ path('login/', views.login),
path('admin/', admin.site.urls),
path('eh-abgleich/', include('eh_abgleich.urls')),
# path('<slug:verein>/', views.vbasis),
def vbasis(request, verein):
template = loader.get_template("vbasis.html")
+ raise RuntimeError("blub")
return HttpResponse(template.render({"verein" : verein}, request))