This is a software for merchandise sale at Chaos Communication Congress.
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.
Setting up hagrid for local development is simple.
./manage.py migrate
to setup a test database../manage.py createsuperuser
to setup a default admin user../manage.py runserver
to start the local development server.Make sure to adjust the following settings in a local_settings.py
for use in production.
ALLOWED_HOSTS
DEBUG
(should be False
)SECRET_KEY
(should be random and secret)SITE_URL
(URL for building absolute links)MEDIA_ROOT
(where to put user-uploaded content)DATABASES
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.