remove mapping model on base on @scollins suggestion Updated models, enabled it in the admin backup to get an idea of the structure. will need to rebuild, updating restframework current state of experiment into rfid api Change docs url started looking into web tokens Refactor models More experimenting Custom view now works, needs tiding up and data to test |
||
---|---|---|
.. | ||
base | ||
blog | ||
contact | ||
contrib | ||
core/templatetags | ||
feeds | ||
members | ||
requests | ||
rfid | ||
static | ||
subscriptions | ||
templates | ||
users | ||
.coveragerc | ||
.dockerignore | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.pylintrc | ||
.travis.yml | ||
README.org | ||
__init__.py | ||
celeryapp.py |
README.org
Maidstone hackspace website
Repository for the maidstone hackspace website
Requirements
Before getting started make sure you have compose and docker and git installed on your machine The simplest way to setup this site is to use docker-compose so please install that from this site https://docs.docker.com/engine/installation/ and make sure the quick start guide works https://docs.docker.com/machine/get-started/ then you can use the commands below to test and make changes.
Setup
To get started checkout the project to your machine.
git clone https://github.com/olymk2/maidstone-hackspace.git
Once checked out build your containers locally if needed, only needed when you first start or if requirements change.
docker-compose -fdev.yml build
Startup your new containers containing a database and django
docker-compose -fdev up
Test django is serving pages http://127.0.0.1:8180
Run migrations and setup admin user
to run django command just prefix them with docker-compose -f dev.yml run django
docker-compose -f dev.yml run django python manage.py makemigrations
docker-compose -f dev.yml run django python manage.py migrate
docker-compose -f dev.yml run django python manage.py createsuperuser