primercuervo / cgran

cgran.org Django website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is the Django web app for CGRAN.org

The information in the main table is automatically generated by parsing gr-recipes and gr-etcetera (PyBOMBS recipes).

To Install

To launch app

docker-compose up --build --no-deps

or

docker-compose up

Current TODO list

  • make the parsing script automatically run once a day, at like 3am

Notepad to self

  • For shell accessing- docker exec -ti nginx bash or docker exec -ti web bash
  • docker ps lists docker containers that are running
  • docker ps -a lists all built containers
  • you can stop and remove all docker containers using docker stop $(docker ps -a -q) then docker rm $(docker ps -a -q)
  • three-step guide to making model changes:
    1. Change your models (in models.py).
    2. Run python manage.py makemigrations to create migrations for those changes
    3. Run python manage.py migrate to apply those changes to the database.
  • save db to yaml file- python manage.py dumpdata --format yaml ootlist.Outoftreemodule -o db.yaml
  • load yaml file to db- python manage.py loaddata db.yaml

About

cgran.org Django website


Languages

Language:Python 79.9%Language:HTML 18.9%Language:CSS 0.6%Language:Dockerfile 0.6%