Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facelift #146

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
yarn.lock
package-lock.json

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down Expand Up @@ -61,7 +63,9 @@ local_settings.py
db.sqlite3
db.sqlite3-journal
*.dump
src/static/node_modules
src/staticfiles
src/staticroot
src/media

# Flask stuff:
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": ["src"],
// linter
"ruff.organizeImports": true
"ruff.organizeImports": true,
"git.ignoreLimitWarning": true
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies = [
"django-celery-beat>=2.6.0",
"django-celery-results>=2.5.1",
"django-crispy-forms>=2.1",
"django-handyhelpers>=0.3.22",
"django-handyhelpers>=0.3.28",
"django-markdownify>=0.9.3",
"django-storages[azure]>=1.14.2",
"dj-database-url>=2.1.0",
Expand Down
11 changes: 10 additions & 1 deletion requirements.dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ asgiref==3.8.1
# via
# spokanetech (pyproject.toml)
# django
async-timeout==4.0.3
# via
# aiohttp
# redis
attrs==24.2.0
# via aiohttp
azure-common==1.1.28
Expand Down Expand Up @@ -131,7 +135,7 @@ django-debug-toolbar==4.4.6
# via spokanetech (pyproject.toml)
django-filter==24.3
# via djangorestframework-filters
django-handyhelpers==0.3.26
django-handyhelpers==0.3.28
# via spokanetech (pyproject.toml)
django-markdownify==0.9.5
# via spokanetech (pyproject.toml)
Expand All @@ -149,6 +153,8 @@ drf-dynamic-fields==0.4.0
# via django-handyhelpers
eventbrite==3.3.5
# via spokanetech (pyproject.toml)
exceptiongroup==1.2.2
# via pytest
flower==2.0.1
# via spokanetech (pyproject.toml)
freezegun==1.5.1
Expand Down Expand Up @@ -349,10 +355,13 @@ tinycss2==1.2.1
# bleach
# cairosvg
# cssselect2
tomli==2.0.1
# via pytest
tornado==6.4.1
# via flower
typing-extensions==4.12.2
# via
# asgiref
# azure-core
# azure-storage-blob
# beautifulsoup4
Expand Down
7 changes: 6 additions & 1 deletion requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ asgiref==3.8.1
# via
# spokanetech (pyproject.toml)
# django
async-timeout==4.0.3
# via
# aiohttp
# redis
attrs==24.2.0
# via aiohttp
azure-common==1.1.28
Expand Down Expand Up @@ -110,7 +114,7 @@ django-crispy-forms==2.3
# crispy-bootstrap5
django-filter==24.3
# via djangorestframework-filters
django-handyhelpers==0.3.26
django-handyhelpers==0.3.28
# via spokanetech (pyproject.toml)
django-markdownify==0.9.5
# via spokanetech (pyproject.toml)
Expand Down Expand Up @@ -242,6 +246,7 @@ tornado==6.4.1
# via flower
typing-extensions==4.12.2
# via
# asgiref
# azure-core
# azure-storage-blob
# beautifulsoup4
Expand Down
25 changes: 4 additions & 21 deletions src/spokanetech/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []
ALLOWED_HOSTS = [
"localhost",
"127.0.0.1",
]

INTERNAL_IPS = [
"localhost",
Expand Down Expand Up @@ -280,26 +283,6 @@
}


# Django Debug Toolbar
DEBUG_TOOLBAR_CONFIG = {
"DISABLE_PANELS": {
"debug_toolbar.panels.cache.CachePanel",
"debug_toolbar.panels.headers.HeadersPanel",
"debug_toolbar.panels.history.HistoryPanel",
"debug_toolbar.panels.profiling.ProfilingPanel",
"debug_toolbar.panels.redirects.RedirectsPanel",
"debug_toolbar.panels.request.RequestPanel",
"debug_toolbar.panels.settings.SettingsPanel",
"debug_toolbar.panels.signals.SignalsPanel",
"debug_toolbar.panels.sql.SQLPanel",
"debug_toolbar.panels.staticfiles.StaticFilesPanel",
"debug_toolbar.panels.templates.TemplatesPanel",
"debug_toolbar.panels.timer.TimerPanel",
"debug_toolbar.panels.versions.VersionsPanel",
}
}


# Crispy Forms
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"

Expand Down
Loading