From: Dave Page Date: Wed, 14 Jun 2023 11:41:49 +0000 (+0100) Subject: Add skin code X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=35aacbd25a9b970ddf11c80f03d7cdd27b68d5d0;p=pguk-website.git Add skin code --- diff --git a/code/.gitignore b/code/.gitignore new file mode 100644 index 0000000..4c9f69a --- /dev/null +++ b/code/.gitignore @@ -0,0 +1,2 @@ +skin_local_settings.py +*.pyc diff --git a/code/__init__.py b/code/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/code/selinvoices.py b/code/selinvoices.py new file mode 100644 index 0000000..ba553fc --- /dev/null +++ b/code/selinvoices.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +import os +from django.conf import settings + +from postgresqleu.util.misc.baseinvoice import BaseInvoice, BaseRefund + + +class PGEUBase(object): + logo = os.path.join(settings.PROJECT_ROOT, '../media/img/PostgreSQL_logo.1color_blue.300x300.png') + headertext = """Slonik Enterprises Ltd. +128 City Road +London +EC1V 2NX + +Company number: 14737028 +""" + sendertext = """Your contact: +Function: Slonik Enterprises Treasurer +Email: treasurer@slonik.enterprises""" + + bankinfotext = """Name: Slonik Enterprises Ltd +IBAN: GB49 TRWI 2314 7077 8042 80 +Account: 77804280 +Sort Code: 23-14-70 +Bank:Wise Payments Ltd +""" + + paymentterms = """Slonik Enterprises Ltd is not VAT registered and does not charge VAT. +Discount for prepayment: None. +""" + + +class PGEUInvoice(PGEUBase, BaseInvoice): + pass + + +class PGEURefund(PGEUBase, BaseRefund): + pass diff --git a/code/setup.cfg b/code/setup.cfg new file mode 100644 index 0000000..38d2325 --- /dev/null +++ b/code/setup.cfg @@ -0,0 +1,4 @@ +[pycodestyle] +statistics=True +ignore=E123,E124,E731,E501 +max-line-length=120 diff --git a/code/skin_settings.py b/code/skin_settings.py new file mode 100644 index 0000000..392b04b --- /dev/null +++ b/code/skin_settings.py @@ -0,0 +1,32 @@ +import os + +SKIN_APPS = [ + +] + +SITEBASE = "https://pgday.uk" +ORG_NAME = "PostgreSQL UK" +ORG_SHORTNAME = "PGUK" + +# Modules +ENABLE_PG_COMMUNITY_AUTH = True +ENABLE_MEMBERSHIP = True +ENABLE_ELECTIONS = True +ENABLE_AUTO_ACCOUNTING = True + +# Emails +DEFAULT_EMAIL = "webmaster@pgday.uk" +SERVER_EMAIL = "webmaster@pgday.uk" +TREASURER_EMAIL = "treasurer@slonik.enterprises" +INVOICE_SENDER_EMAIL = "treasurer@slonik.enterprises" +INVOICE_NOTIFICATION_RECEIVER = "treasurer@slonik.enterprises" +SCHEDULED_JOBS_EMAIL = "webmaster@pgday.uk" + +# Ugh +EU_VAT = False +EU_VAT_HOME_COUNTRY = "GB" +EU_VAT_VALIDATE = False + +# Invoice +INVOICE_PDF_BUILDER = 'selinvoices.SELInvoice' +REFUND_PDF_BUILDER = 'selinvoices.SELRefund' diff --git a/code/skin_urls.py b/code/skin_urls.py new file mode 100644 index 0000000..8cd51c7 --- /dev/null +++ b/code/skin_urls.py @@ -0,0 +1,9 @@ +from django.conf.urls import url + +import postgresqleu.static.views +import postgresqleu.membership.views + +PRELOAD_URLS = [ + url(r'^(events/services)/$', postgresqleu.static.views.static_fallback), + url(r'^community/members/$', postgresqleu.membership.views.userlist), +]