Skip to content
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
5 changes: 1 addition & 4 deletions cmp/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ def protect_patterns(patterns):
path('ranks/', views.ranks, name='ranks'),
path('acknowledgements/', views.acknowledgements, name='acknowledgements'),

path('ww1-diaries/', views.ww1_diaries, name='ww1-diaries'),
path('inter-war/', views.inter_war, name='inter-war'),
path('ww2-diaries/', views.ww2_diaries, name='ww2-diaries'),
path('post-ww2/', views.post_ww2, name='post-ww2'),
path('histories/', views.histories, name='histories'),

path('accounts/', include('allauth.urls')),
path('', include(protect_patterns(mgmt_patterns))),
Expand Down
16 changes: 2 additions & 14 deletions cmp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,20 +1044,8 @@ def about(request):
}
return render(request, 'cmp/about.html', context)

def war_diaries(request):
return render(request, 'cmp/war-diaries.html')

def ww1_diaries(request):
return render(request, 'cmp/ww1-diaries.html')

def inter_war(request):
return render(request, 'cmp/inter-war.html')

def ww2_diaries(request):
return render(request, 'cmp/ww2-diaries.html')

def post_ww2(request):
return render(request, 'cmp/post-ww2.html')
def histories(request):
return render(request, 'cmp/histories.html')

def decorations_report(request):
# Get top 10 soldiers with most decorations
Expand Down
2 changes: 1 addition & 1 deletion core/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
path('reports/years/', views.year_report, name='year-report'),
]

urlpatterns += [path("", include("cmp.urls"))]
urlpatterns += [path("", include("cmp.urls"))]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
6 changes: 6 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def main():
print("Hello from cmp!")


if __name__ == "__main__":
main()
32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[project]
name = "cmp"
version = "0.1.0"
description = "Corps of Military Police Database"
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
"azure-identity>=1.25.1",
"azure-storage-blob>=12.27.1",
"black>=25.11.0",
"crispy-bootstrap5>=2025.6",
"django>=5.2.8",
"django-allauth>=65.13.0",
"django-crispy-forms>=2.5",
"django-debug-toolbar>=6.1.0",
"django-environ>=0.12.0",
"django-extensions>=4.1",
"django-htmx>=1.26.0",
"django-storages>=1.14.6",
"flake8>=7.3.0",
"folium>=0.20.0",
"gunicorn>=23.0.0",
"ipdb>=0.13.13",
"logzero>=1.7.0",
"pillow>=12.0.0",
"pip>=25.3",
"pip-tools>=7.5.2",
"pytest-cov>=7.0.0",
"pytest-django>=4.11.1",
"sentry-sdk>=2.44.0",
"whitenoise>=6.11.0",
]
131 changes: 65 additions & 66 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,47 +1,43 @@
#
# This file is autogenerated by pip-compile with Python 3.13
# by the following command:
#
# pip-compile
#
asgiref==3.8.1
# This file was autogenerated by uv via the following command:
# uv pip compile requirements.in -o requirements.txt
asgiref==3.10.0
# via
# django
# django-allauth
# django-htmx
asttokens==3.0.0
asttokens==3.0.1
# via stack-data
azure-core==1.33.0
azure-core==1.36.0
# via
# azure-identity
# azure-storage-blob
azure-identity==1.21.0
azure-identity==1.25.1
# via -r requirements.in
azure-storage-blob==12.25.1
azure-storage-blob==12.27.1
# via -r requirements.in
black==25.1.0
black==25.11.0
# via -r requirements.in
branca==0.8.1
branca==0.8.2
# via folium
build==1.2.2.post1
build==1.3.0
# via pip-tools
certifi==2025.1.31
certifi==2025.11.12
# via
# requests
# sentry-sdk
cffi==1.17.1
cffi==2.0.0
# via cryptography
charset-normalizer==3.4.1
charset-normalizer==3.4.4
# via requests
click==8.1.8
click==8.3.1
# via
# black
# pip-tools
coverage[toml]==7.8.0
coverage==7.11.3
# via pytest-cov
crispy-bootstrap5==2025.4
crispy-bootstrap5==2025.6
# via -r requirements.in
cryptography==44.0.2
cryptography==46.0.3
# via
# azure-identity
# azure-storage-blob
Expand All @@ -51,7 +47,7 @@ decorator==5.2.1
# via
# ipdb
# ipython
django==5.2
django==5.2.8
# via
# -r requirements.in
# crispy-bootstrap5
Expand All @@ -61,37 +57,37 @@ django==5.2
# django-extensions
# django-htmx
# django-storages
django-allauth==65.7.0
django-allauth==65.13.0
# via -r requirements.in
django-crispy-forms==2.4
django-crispy-forms==2.5
# via
# -r requirements.in
# crispy-bootstrap5
django-debug-toolbar==5.1.0
django-debug-toolbar==6.1.0
# via -r requirements.in
django-environ==0.12.0
# via -r requirements.in
django-extensions==4.1
# via -r requirements.in
django-htmx==1.23.0
django-htmx==1.26.0
# via -r requirements.in
django-storages==1.14.6
# via -r requirements.in
executing==2.2.0
executing==2.2.1
# via stack-data
flake8==7.2.0
flake8==7.3.0
# via -r requirements.in
folium==0.19.5
folium==0.20.0
# via -r requirements.in
gunicorn==23.0.0
# via -r requirements.in
idna==3.10
idna==3.11
# via requests
iniconfig==2.1.0
iniconfig==2.3.0
# via pytest
ipdb==0.13.13
# via -r requirements.in
ipython==9.1.0
ipython==9.7.0
# via ipdb
ipython-pygments-lexers==1.1.1
# via ipython
Expand All @@ -105,83 +101,90 @@ jinja2==3.1.6
# folium
logzero==1.7.0
# via -r requirements.in
markupsafe==3.0.2
markupsafe==3.0.3
# via jinja2
matplotlib-inline==0.1.7
matplotlib-inline==0.2.1
# via ipython
mccabe==0.7.0
# via flake8
msal==1.32.0
msal==1.34.0
# via
# azure-identity
# msal-extensions
msal-extensions==1.3.1
# via azure-identity
mypy-extensions==1.1.0
# via black
numpy==2.2.5
numpy==2.3.4
# via folium
packaging==25.0
# via
# black
# build
# gunicorn
# pytest
parso==0.8.4
parso==0.8.5
# via jedi
pathspec==0.12.1
# via black
pexpect==4.9.0
# via ipython
pillow==11.2.1
pillow==12.0.0
# via -r requirements.in
pip-tools==7.4.1
pip==25.3
# via
# -r requirements.in
# pip-tools
pip-tools==7.5.2
# via -r requirements.in
platformdirs==4.3.7
platformdirs==4.5.0
# via black
pluggy==1.5.0
# via pytest
prompt-toolkit==3.0.51
pluggy==1.6.0
# via
# pytest
# pytest-cov
prompt-toolkit==3.0.52
# via ipython
ptyprocess==0.7.0
# via pexpect
pure-eval==0.2.3
# via stack-data
pycodestyle==2.13.0
pycodestyle==2.14.0
# via flake8
pycparser==2.22
pycparser==2.23
# via cffi
pyflakes==3.3.2
pyflakes==3.4.0
# via flake8
pygments==2.19.1
pygments==2.19.2
# via
# ipython
# ipython-pygments-lexers
pyjwt[crypto]==2.10.1
# via
# msal
# pyjwt
# pytest
pyjwt==2.10.1
# via msal
pyproject-hooks==1.2.0
# via
# build
# pip-tools
pytest==8.3.5
pytest==9.0.1
# via
# pytest-cov
# pytest-django
pytest-cov==6.1.1
pytest-cov==7.0.0
# via -r requirements.in
pytest-django==4.11.1
# via -r requirements.in
requests==2.32.3
pytokens==0.3.0
# via black
requests==2.32.5
# via
# azure-core
# folium
# msal
sentry-sdk==2.26.1
sentry-sdk==2.44.0
# via -r requirements.in
six==1.17.0
# via azure-core
setuptools==80.9.0
# via pip-tools
sqlparse==0.5.3
# via
# django
Expand All @@ -192,24 +195,20 @@ traitlets==5.14.3
# via
# ipython
# matplotlib-inline
typing-extensions==4.13.2
typing-extensions==4.15.0
# via
# azure-core
# azure-identity
# azure-storage-blob
urllib3==2.4.0
urllib3==2.5.0
# via
# requests
# sentry-sdk
wcwidth==0.2.13
wcwidth==0.2.14
# via prompt-toolkit
wheel==0.45.1
# via pip-tools
whitenoise==6.9.0
whitenoise==6.11.0
# via -r requirements.in
xyzservices==2025.1.0
xyzservices==2025.10.0
# via folium

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
Loading