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

Eatyourpeas/issue20 #22

Open
wants to merge 47 commits into
base: live
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
62328ee
create models
eatyourpeas Dec 12, 2023
475b6c0
fix serializers and views
eatyourpeas Dec 16, 2023
f504d4f
dockerize
eatyourpeas Dec 16, 2023
c0a9dfb
add seed all
eatyourpeas Dec 16, 2023
0661544
refactor views and serializers into folders
eatyourpeas Dec 16, 2023
b5bfdfd
refactor views and serializers into folders
eatyourpeas Dec 17, 2023
96330b7
fix browsable api
eatyourpeas Dec 17, 2023
dc82d7e
organisation order by name
eatyourpeas Dec 17, 2023
0a12012
change app name
eatyourpeas Dec 17, 2023
97e72d6
refactor to rcpchcensusplatform
eatyourpeas Dec 17, 2023
b100c2a
gp surgeries from spine
eatyourpeas Dec 17, 2023
5b2bbd9
update docs
eatyourpeas Dec 17, 2023
2bd6c01
update logo
eatyourpeas Dec 17, 2023
209f32e
update citation
eatyourpeas Dec 17, 2023
4e1411b
update organisations with pdus
eatyourpeas Dec 18, 2023
d9f70c0
pdu seeding from file and ORD
eatyourpeas Dec 19, 2023
bdb2548
replace pdu ods codes with active codes - except Bedford
eatyourpeas Dec 19, 2023
a28a864
add trust to serializers
eatyourpeas Dec 25, 2023
a62635f
fix serializer import issues
eatyourpeas Dec 25, 2023
0e94b93
local health board serializer
eatyourpeas Dec 25, 2023
5c54bf3
open uk network serializer
eatyourpeas Dec 25, 2023
f23c55d
paediatricdiabetesunit serializer
eatyourpeas Dec 25, 2023
7907e00
add london borough serializer
eatyourpeas Dec 25, 2023
9728c99
refactor docker compose and start up file to match e12
eatyourpeas Dec 25, 2023
9ab31eb
update intro documentation
eatyourpeas Dec 25, 2023
d5b325d
background documentation
eatyourpeas Dec 25, 2023
0f76aff
comment out geom in viewset
eatyourpeas Dec 25, 2023
0bf2126
remove welsh_name from country viewset
eatyourpeas Dec 25, 2023
f1563e8
refactor data_zone_code and data_zone_name
eatyourpeas Dec 25, 2023
a78bc06
rebuild migrations
eatyourpeas Dec 26, 2023
741635f
add icb, nhs england region and trust lists
eatyourpeas Dec 26, 2023
8fbec02
trusts serializer with nested organisations
eatyourpeas Dec 26, 2023
e47a2ad
comments to trust and organisation serializers
eatyourpeas Dec 26, 2023
5bc70d3
refactor related_to names in Organisation for serializer nesting
eatyourpeas Dec 27, 2023
e859a9d
add nhs_england_region urls extended and organisation endpoint
eatyourpeas Dec 27, 2023
1f70a01
update organisation examples
eatyourpeas Dec 27, 2023
84a8474
fix organisations by removing boundary data as object too large
eatyourpeas Dec 27, 2023
52908a4
add london boroughs and nested organisations
eatyourpeas Dec 27, 2023
694f26e
add local health boards
eatyourpeas Dec 27, 2023
f88e5c1
documentation changes
eatyourpeas Dec 27, 2023
a3ad096
add seed imd data to migrations
eatyourpeas Dec 27, 2023
dd6551c
getting started documentation
eatyourpeas Dec 27, 2023
8df46a9
update documentation
eatyourpeas Dec 27, 2023
ffc115b
add example.env to documentation
eatyourpeas Dec 27, 2023
6172f46
remove organisations and levels of abstraction from census engine
eatyourpeas Jan 21, 2024
a2880ce
update documentation
eatyourpeas Jan 21, 2024
028237d
restructure project
eatyourpeas Jan 21, 2024
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
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ env.bak/
venv.bak/
*live.env
*development.env
envs/.env

# mypy
.mypy_cache/
Expand All @@ -122,4 +123,8 @@ staticfiles/

# Docker and docker compose
.pip_cache
.data
.data

celerybeat-schedule

staticdocs/
25 changes: 25 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# GLOBALS
{
email {$LETSENCRYPT_EMAIL_ADDRESS}
acme_ca {$LETSENCRYPT_ENDPOINT}
}

# DJANGO
{$SITE_DOMAIN} {
tls {$TLS_SOURCE}

# DJANGO
reverse_proxy http://django:8005

# MKDOCS static files are served from a /docs path
handle_path /docs/* {
root * /srv/staticdocs
file_server {
index index.html
}
}

log {
level ERROR # options are DEBUG, INFO, ERROR from most to least verbose
}
}
20 changes: 14 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# Base Docker image Official Python 3.11
FROM python:3.11
# Set 'build-time' environment variables

# Set 'build-time' environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

# Setup GDAL + PILLOW required for CAPTCHA and postgis
RUN apt-get update &&\
apt-get install -y binutils libproj-dev gdal-bin libgdal-dev python3-gdal &&\
apt-get install -y libz-dev libjpeg-dev libfreetype6-dev

# Extra packages required for Material for MkDocs plugins (dependency for git and pdf plugins)
RUN apt install -y git python3-cffi python3-brotli libpango-1.0-0 libpangoft2-1.0-0

# Add Development requirements
COPY requirements/development-requirements.txt /app/requirements/development-requirements.txt
COPY requirements/common-requirements.txt /app/requirements/common-requirements.txt
Expand All @@ -16,12 +24,12 @@ WORKDIR /app/requirements/
RUN pip install --upgrade pip
RUN pip install -r /app/requirements/development-requirements.txt

# Set safe working directory for git
RUN git config --global --add safe.directory /app

# Set working directory back to main app
WORKDIR /app/

# Copy application code into image
# (Excludes any files/dirs matched by patterns in .dockerignore)
COPY . /app/

# Use port 8001 in development (may be overridden by docker-compose file)
EXPOSE 8001
COPY . /app/
393 changes: 1 addition & 392 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions deprivation_scores/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@


class DeprivationScoresConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'deprivation_scores'
default_auto_field = "django.db.models.BigAutoField"
name = "deprivation_scores"
4 changes: 4 additions & 0 deletions deprivation_scores/constants/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .northern_ireland_postcodes import *
from .scottish_postcodes import *
from .welsh_postcodes import *
from .english_deprivation_test_data import *
Loading