Skip to content

Commit bb4a763

Browse files
committed
Remove support for speakers and sessions
1 parent 7456320 commit bb4a763

27 files changed

+47
-918
lines changed

Taskfile.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tasks:
4545
run:
4646
desc: Run a local version of PythonIE (works)
4747
cmds:
48-
- docker compose run --rm --service-ports web python pythonie/manage.py runserver 0.0.0.0:8000
48+
- docker compose run --remove-orphans --rm --service-ports web python pythonie/manage.py runserver 0.0.0.0:8000
4949

5050
django:shell-plus:
5151
desc: Run a local version of PythonIE
@@ -100,7 +100,12 @@ tasks:
100100
stack:pull:
101101
desc: Pull the docker images for the stack
102102
cmds:
103-
- docker compose pull postgres minio mc
103+
- docker compose pull postgres minio mc redis
104+
105+
stack:services:
106+
desc: List the services from the docker compose file
107+
cmds:
108+
- docker compose config --services
104109

105110
pycon:import:sessionize:
106111
desc: Import the information from Sessionize
@@ -122,3 +127,8 @@ tasks:
122127
DJANGO_SETTINGS_MODULE: pythonie.settings.tests
123128
cmds:
124129
- docker run --rm -p 8000:8000 --env-file development.env -e DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE -v $PWD:/app -w /app -it $DOCKER_IMAGE python pythonie/manage.py test pythonie --verbosity=3
130+
131+
down:
132+
desc: Stop the docker compose stack
133+
cmds:
134+
- docker compose down

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ services:
2121

2222

2323
postgres:
24-
image: postgres:13.21
24+
image: postgres:14
2525
ports:
2626
- "5432:5432"
2727
environment:

pythonie/core/models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ class HomePage(Page, MeetupMixin, SponsorMixin):
108108
subpage_types = [
109109
"HomePage",
110110
"SimplePage",
111-
"speakers.SpeakersPage",
112-
"speakers.TalksPage",
113111
]
114112

115113
body = StreamField(

pythonie/pythonie/settings/base.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
# Absolute filesystem path to the Django project directory:
1616
PROJECT_ROOT = dirname(dirname(dirname(abspath(__file__))))
17+
print(f'{PROJECT_ROOT=}')
1718

1819
# Quick-start development settings - unsuitable for production
1920
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
@@ -61,7 +62,6 @@
6162
"storages",
6263
"meetups",
6364
"sponsors",
64-
"speakers",
6565
# 'debug_toolbar',
6666
"django_extensions",
6767
)
@@ -116,11 +116,6 @@
116116
"level": os.getenv("DJANGO_LOG_LEVEL", "INFO"),
117117
"propagate": True,
118118
},
119-
"speakers": {
120-
"handlers": ["console"],
121-
"level": os.getenv("DJANGO_LOG_LEVEL", "INFO"),
122-
"propagate": True,
123-
},
124119
"core": {
125120
"handlers": ["console"],
126121
"level": os.getenv("DJANGO_LOG_LEVEL", "INFO"),

pythonie/pythonie/settings/tests.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@
3737
"handlers": ["console"],
3838
"level": os.getenv("DJANGO_LOG_LEVEL", "ERROR"),
3939
},
40-
"speakers": {
41-
"handlers": ["console"],
42-
"level": os.getenv("DJANGO_LOG_LEVEL", "ERROR"),
43-
},
4440
"core": {
4541
"handlers": ["console"],
4642
"level": os.getenv("DJANGO_LOG_LEVEL", "ERROR"),

pythonie/speakers/__init__.py

Whitespace-only changes.

pythonie/speakers/admin.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

pythonie/speakers/management/__init__.py

Whitespace-only changes.

pythonie/speakers/management/commands/__init__.py

Whitespace-only changes.

pythonie/speakers/management/commands/import-sessionize.py

Lines changed: 0 additions & 163 deletions
This file was deleted.

0 commit comments

Comments
 (0)