Go to file
Oliver Marks bb2e071f44 Merge pull request #32 from maidstone-hackspace/pyup-update-lxml-3.7.2-to-3.7.3
Update lxml to 3.7.3
2017-02-19 16:41:32 +00:00
compose Add django file logging for stage 2017-02-05 14:22:35 +00:00
config Added some tests for subscription sign up, improved drone conf to cache pip packages 2017-02-19 10:50:17 +00:00
docs Moved all files up one folder 2017-01-04 18:11:25 +00:00
mhackspace Added some tests for subscription sign up, improved drone conf to cache pip packages 2017-02-19 10:50:17 +00:00
requirements Update lxml from 3.7.2 to 3.7.3 2017-02-18 22:38:59 +00:00
utility Moved all files up one folder 2017-01-04 18:11:25 +00:00
.drone.yml Added some tests for subscription sign up, improved drone conf to cache pip packages 2017-02-19 10:50:17 +00:00
.gitignore Added some tests for subscription sign up, improved drone conf to cache pip packages 2017-02-19 10:50:17 +00:00
.travis.yml Added support for Circle CI tests (#16) 2017-01-26 09:03:03 +00:00
CONTRIBUTORS.txt Moved all files up one folder 2017-01-04 18:11:25 +00:00
COPYING Moved all files up one folder 2017-01-04 18:11:25 +00:00
LICENSE Moved all files up one folder 2017-01-04 18:11:25 +00:00
README.org Separated payment options, for testing 2017-01-25 22:15:43 +00:00
circle.yml Updated circle config to be Python 3 2017-01-26 13:30:14 +00:00
dev.yml sass now compiles, cleanup unused files, hooked in sign up form to post to gocardless 2017-02-08 20:32:42 +00:00
docker-compose.yml stage config, and contact form setup to send email 2017-02-05 12:59:20 +00:00
env.example fix env file loading 2017-01-26 08:52:41 +00:00
live.yml initial docker setup for staging now works 2017-02-02 14:04:17 +00:00
manage.py Moved all files up one folder 2017-01-04 18:11:25 +00:00
package.json sass now compiles, cleanup unused files, hooked in sign up form to post to gocardless 2017-02-08 20:32:42 +00:00
pytest.ini Moved all files up one folder 2017-01-04 18:11:25 +00:00
requirements.txt Added support for Circle CI tests (#16) 2017-01-26 09:03:03 +00:00
setup.cfg Moved all files up one folder 2017-01-04 18:11:25 +00:00
stage.yml add node to stage compose file 2017-02-12 21:50:29 +00:00

README.org

https://cdn.rawgit.com/maidstone-hackspace/administration/2ede7cb1/images/hackspace-banner.png

Maidstone Hackspace website

https://pyup.io/repos/github/maidstone-hackspace/maidstone-hackspace-website/shield.svg

Repository for the maidstone hackspace website

Requirements

Before getting started make sure you have git, docker and docker-compose 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 you only need to do this when first start or if requirements change.

docker-compose -fdev.yml build

Start 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 commands 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

Creating an admin user

docker-compose -f dev.yml run django python manage.py createsuperuser

Migrations / Managing default data

If you want to export some data you entered into the admin area you can use dumpdata and loaddata to export and import.

docker-compose -fdev.yml run --rm django python manage.py dumpdata feeds > mhackspace/feeds/fixtures/defaults.json
docker-compose -fdev.yml run --rm django python manage.py loaddata mhackspace/feeds/fixtures/defaults.json

Django Commands

docker-compose -fdev.yml run --rm django python manage.py list_subscriptions