c3foc / hagrid

https://c3foc.net
5 stars 5 forks source link

hagrid

This is a software for merchandise sale at Chaos Communication Congress.

Features

Design principles

Setup

For now, this is a pretty standard Django Application developed with python3.7. Use pip install -U -r requirements.txt (in a seperate python environment/virtualenv) to install the dependencies.

Development

Setting up hagrid for local development is simple.

  1. Run ./manage.py migrate to setup a test database.
  2. Run ./manage.py createsuperuser to setup a default admin user.
  3. Run ./manage.py runserver to start the local development server.

Production

Make sure to adjust the following settings in a local_settings.py for use in production.

See the Django Docs or the comments in settings.py on what these do.

Run python3 manage.py migrate to initialize the database.

Run python3 manage.py collectstatic to collect all static files into the static.dist folder, from where all files under /static/ should be served from. Also, everything under /media/ should point to the MEDIA_ROOT you configured. You probably want to use a webserver and uwsgi or something similar for the setup.

All configuration/management views are only visible to logged in superusers. Using ./manage.py createsuperuser, create a new superuser and login on the webpage.