diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f8366da..091478f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,12 +9,8 @@ jobs: - name: Setup python uses: actions/setup-python@v2 with: - python-version: 3.10.12 + python-version: 3.12.3 architecture: x64 - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/requirements_dev.txt') }} - run: pip install -r requirements.txt - run: pip install -r requirements_dev.txt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 352d723..abf0472 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,12 +9,8 @@ jobs: - name: Setup python uses: actions/setup-python@v2 with: - python-version: 3.10.12 + python-version: 3.12.3 architecture: x64 - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/requirements_dev.txt') }} - run: pip install -r requirements.txt - run: pip install -r requirements_dev.txt diff --git a/README.md b/README.md index ff7384b..77ec5e0 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ $ pip install -r requirements_dev.txt Development server ``` -$ ./registry/manage.py runserver +$ DJANGO_SETTINGS_MODULE=settings.settings_dev ./registry/manage.py runserver ``` ## Tests diff --git a/registry/settings/settings_dev.py b/registry/settings/settings_dev.py new file mode 100644 index 0000000..08f68b5 --- /dev/null +++ b/registry/settings/settings_dev.py @@ -0,0 +1,31 @@ +# flake8: noqa +import os +from settings.settings import * # noqa F401, F403 + +DEBUG = True + +ALLOWED_HOSTS = [".localhost", "127.0.0.1", "[::1]"] + +LOGGING = { + "version": 1, + "disable_existing_loggers": False, + "formatters": { + "simple": { + "format": "{levelname} [{module}] {message}", + "style": "{", + }, + }, + "handlers": { + "console": { + "class": "logging.StreamHandler", + }, + }, + "loggers": { + "": { + "handlers": ["console"], + "level": os.getenv("DJANGO_LOG_LEVEL", "INFO"), + "formatter": "simple", + "propagate": True, + }, + }, +} diff --git a/registry/static/images/linkedin-logo.svg b/registry/static/images/linkedin-logo.svg new file mode 100644 index 0000000..e149999 --- /dev/null +++ b/registry/static/images/linkedin-logo.svg @@ -0,0 +1,40 @@ + + + + + + + diff --git a/registry/ui/templates/index.html b/registry/ui/templates/index.html index cdbea87..635c3d5 100644 --- a/registry/ui/templates/index.html +++ b/registry/ui/templates/index.html @@ -263,7 +263,7 @@

} function noCookieConsent() { - document.cookie = "noEnhancedAnalytics=1 ;max-age=2592000 ;domain=threesixtygiving.org"; + document.cookie = "noEnhancedAnalytics=1; max-age=2592000; domain=threesixtygiving.org"; } @@ -307,12 +307,12 @@