diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index f403c4b..715d446 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -29,7 +29,12 @@ ALLOWED_HOSTS = ["localhost", ".herokuapp.com", ".northbaypython.org"] # timezone as the operating system. # If running in a Windows environment this must be set to the same as your # system time zone. -TIME_ZONE = "UTC" +TIME_ZONE = os.environ.get("TZ", "America/Los_Angeles") + + +# Use SSLRedirectMiddleware +SSL_ON = os.environ.get("DJANGO_SSL_ON", True) +SSL_ALWAYS = os.environ.get("DJANGO_SSL_ALWAYS", False) # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html @@ -80,6 +85,14 @@ STATICFILES_FINDERS = [ "compressor.finders.CompressorFinder", ] + +# Amazon S3 setup +DEFAULT_FILE_STORAGE = os.environ.get("DJANGO_DEFAULT_FILE_STORAGE", 'django.core.files.storage.FileSystemStorage') # noqa +AWS_ACCESS_KEY_ID = os.environ.get("DJANGO_AWS_ACCESS_KEY_ID", None) +AWS_SECRET_ACCESS_KEY = os.environ.get("DJANGO_AWS_SECRET_ACCESS_KEY", None) +AWS_STORAGE_BUCKET_NAME = os.environ.get("DJANGO_AWS_STORAGE_BUCKET_NAME", None) + + # Make this unique, and don't share it with anybody. SECRET_KEY = "6r&z0i#!k-thu4nv^zzx!f$fbp(i5mq_^%%@ihu_qxxotl_" @@ -118,6 +131,8 @@ MIDDLEWARE_CLASSES = [ "django.contrib.messages.middleware.MessageMiddleware", "reversion.middleware.RevisionMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", + "ssl_redirect.middleware.SSLRedirectMiddleware", + ] ROOT_URLCONF = "pinaxcon.urls" diff --git a/pinaxcon/templates/_footer.html b/pinaxcon/templates/_footer.html index 07550d6..a05b171 100644 --- a/pinaxcon/templates/_footer.html +++ b/pinaxcon/templates/_footer.html @@ -1,13 +1,13 @@ {% load staticfiles %}
This site is free and open source software, powered by Symposion and Registrasion.
We acknowledge that our small team has limited perspective, and that to build a truly inclusive event, we need to seek the perspectives of a diverse range of people. We thank the following people and organizations for providing us with advice along the way.
Wednesday, August 16, 2017—We are proud to announce that North Bay Python is now a member project of Software Freedom Conservancy, a 501(c)(3) charity dedicated to ethical technology and the development and promotion free and open source software. Conservancy will act as our fiscal sponsor, allowing our team to operate without managing our own corporate structure and administrative services.
-Conservancy is home to many popular free and open source software projects, like Selenium, phpMyAdmin, Twisted, and Outreachy, some of which run their own events. North Bay Python has the distinct honor of being the first member project that is exclusively focused on organizing community events.
+Conservancy is home to many popular free and open source software projects, like Selenium, PyPy, phpMyAdmin, Twisted, and Outreachy, some of which run their own events. North Bay Python has the distinct honor of being the first member project that is exclusively focused on organizing community events.
We couldn't be more excited. We're celebrating by donating five free tickets to Outreachy participants and will be promoting member projects relevant to the Python community at the conference. Interested Outreachy alums (past or present) should contact us. We'll also have discounted tickets available for active financial supporters of Software Freedom Conservancy.
diff --git a/requirements/base.txt b/requirements/base.txt index 36a1dc5..721638f 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -1,4 +1,5 @@ Django>=1.11,<1.12 +boto3==1.4.6 pinax-theme-bootstrap==7.3.0 django-user-accounts==1.3.1 metron==1.3.7 @@ -7,6 +8,8 @@ dj-static==0.0.6 dj-database-url==0.4.0 pinax-pages==0.4.2 pinax-boxes==2.1.2 +django-ssl-redirect==2.0 +django-storages==1.6.5 django-libsass==0.7 django-markdown-deux==1.0.5 django-sitetree==1.8.0 diff --git a/static/scss/custom.scss b/static/scss/custom.scss index 276eb9c..ad78220 100644 --- a/static/scss/custom.scss +++ b/static/scss/custom.scss @@ -259,8 +259,6 @@ $homepage-block-min-height: 480px; background-image: url("../images/django-girls-2014.jpg"); } - - .sponsor-list a img { width: 100%; }