Skip to content

jsmitka/cz.pycon.org

 
 

Repository files navigation

PyCon CZ webpage

How to run on localhost

Prerequisites

For local development you only need to install Docker. Tested on version 23.0.2.

For Docker installation manuals check the following links:

  • Ubuntu - install Docker engine using the apt repository and add user to docker group as described here so you can run Docker locally as a non-root user
  • Windows & Mac - you can use Docker Desktop, check out this manual for Windows and this for Mac

Local setup

  1. Build an image
make build
  1. Run migrations
make migrate

[OPTIONAL] 2.2 Import content into Wagtail tables, so not to have empty pages

make default-content
  1. Run dev stack
make up
  1. You can stop the server by pressing Ctrl+C, optionally you can run
make down 

if there are any hanging containers

Admin & WagTail

In case you want to access admin page, either Django or Wagtail one, you need to create a superuser and log in with its credentials:

make create-user

The development server runs at the address http://0.0.0.0:8000/. Beta instance on fly.io runs on https://pycon-cz-beta.fly.dev/team/.

Contributing

If you want to contribute, please run make lint before pushing BE code to format it. This step will be automated in the future.

Debugging

How to restart machine in fly.io if something gets stuck
fly machines list --app pycon-cz-beta-db
fly machines restart machine-id --app pycon-cz-beta-db

About

PyCon CZ webpage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 49.4%
  • Python 47.6%
  • Dockerfile 2.0%
  • Makefile 1.0%