Skip to content

Commit

Permalink
Merge pull request #333 from uw-it-aca/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jlaney authored Oct 19, 2023
2 parents c630ca8 + c0d3631 commit d45df93
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
12 changes: 7 additions & 5 deletions docker/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os

if os.getenv("ENV", "localdev") == "localdev":
DEBUG = True
else:
DEBUG = False

ALLOWED_HOSTS += [
"test.mobile.washington.edu", # for testing purposes
"mobile.uw.edu", # Extraneous after DNS switch
Expand All @@ -16,6 +11,13 @@
"m.washington.edu", # Extraneous after DNS switch unless 301
]

if os.getenv("ENV", "localdev") == "localdev":
DEBUG = True
else:
DEBUG = False
CSRF_TRUSTED_ORIGINS = [
f"https://{host}" for host in ALLOWED_HOSTS if host.endswith(".edu")]

GOOGLE_ANALYTICS_KEY = os.getenv('GOOGLE_ANALYTICS_KEY', None)

INSTALLED_APPS += [
Expand Down
3 changes: 2 additions & 1 deletion docker/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
1. Add an import: from blog import urls as blog_urls
2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls))
"""
from django.urls import include, path
from django.urls import path
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from django.conf import settings
from django.conf.urls import include
from django.conf.urls.static import static

from mdot.admin import admin_site
Expand Down
3 changes: 2 additions & 1 deletion mdot/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from django.urls import include, path
from django.urls import path
from django.conf.urls import include
from . import views
from django.contrib import admin
from django.contrib.auth.decorators import login_required
Expand Down
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
include_package_data=True,
install_requires=[
'setuptools',
'django~=3.2',
'django~=4.2',
'django-compressor',
'UW-RestClients-Core~=1.3',
'UW-RestClients-Core~=1.4',
'django-htmlmin',
'lesscpy',
'django-pyscss',
Expand All @@ -26,19 +26,18 @@
'UW-Django-SAML2',
],
license='Apache License, Version 2.0',
description='A Django app to ...',
description='Mobile UW web application',
long_description=README,
url='http://www.example.com/',
author='Your Name',
author_email='[email protected]',
url='https://github.com/uw-it-aca/mdot',
author='UW-IT T&LS',
author_email='[email protected]',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
Expand Down

0 comments on commit d45df93

Please sign in to comment.