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
14 changes: 12 additions & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ tasks:
run:
desc: Run a local version of PythonIE
cmds:
- docker compose run --rm --service-ports web python pythonie/manage.py runserver 0.0.0.0:8000
- docker compose run --remove-orphans --rm --service-ports web python pythonie/manage.py runserver 0.0.0.0:8000

django:shell-plus:
desc: Run Django shell_plus
Expand Down Expand Up @@ -183,7 +183,12 @@ tasks:
stack:pull:
desc: Pull the docker images for the stack
cmds:
- docker compose pull postgres minio mc
- docker compose pull postgres minio mc redis

stack:services:
desc: List the services from the docker compose file
cmds:
- docker compose config --services

pycon:import:sessionize:
desc: Import the information from Sessionize
Expand Down Expand Up @@ -221,3 +226,8 @@ tasks:
desc: Run all tests
cmds:
- docker compose run --rm -e DJANGO_SETTINGS_MODULE=pythonie.settings.tests web python pythonie/manage.py test pythonie --verbosity=3

down:
desc: Stop the docker compose stack
cmds:
- docker compose down
2 changes: 0 additions & 2 deletions pythonie/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ class HomePage(Page, MeetupMixin, SponsorMixin):
subpage_types = [
"HomePage",
"SimplePage",
"speakers.SpeakersPage",
"speakers.TalksPage",
]

body = StreamField(
Expand Down
7 changes: 1 addition & 6 deletions pythonie/pythonie/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

# Absolute filesystem path to the Django project directory:
PROJECT_ROOT = dirname(dirname(dirname(abspath(__file__))))
print(f'{PROJECT_ROOT=}')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you and sorry for the delay!


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
Expand Down Expand Up @@ -62,7 +63,6 @@
"storages",
"meetups",
"sponsors",
"speakers",
# 'debug_toolbar',
"django_extensions",
)
Expand Down Expand Up @@ -117,11 +117,6 @@
"level": os.getenv("DJANGO_LOG_LEVEL", "INFO"),
"propagate": True,
},
"speakers": {
"handlers": ["console"],
"level": os.getenv("DJANGO_LOG_LEVEL", "INFO"),
"propagate": True,
},
"core": {
"handlers": ["console"],
"level": os.getenv("DJANGO_LOG_LEVEL", "INFO"),
Expand Down
4 changes: 0 additions & 4 deletions pythonie/pythonie/settings/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
"handlers": ["console"],
"level": os.getenv("DJANGO_LOG_LEVEL", "ERROR"),
},
"speakers": {
"handlers": ["console"],
"level": os.getenv("DJANGO_LOG_LEVEL", "ERROR"),
},
"core": {
"handlers": ["console"],
"level": os.getenv("DJANGO_LOG_LEVEL", "ERROR"),
Expand Down
Empty file removed pythonie/speakers/__init__.py
Empty file.
42 changes: 0 additions & 42 deletions pythonie/speakers/admin.py

This file was deleted.

Empty file.
Empty file.
163 changes: 0 additions & 163 deletions pythonie/speakers/management/commands/import-sessionize.py

This file was deleted.

Loading