Git Product home page Git Product logo

opencanada's Introduction

OpenCanada Website

Build Status Coverage Status

The opencanada.org website source.

Use Python 3.6+ and Django 1.11.x for best results.

Setup

  • Set up a virtualenv for the project (python3 -m venv opencanada)
  • Install the appropriate requirements - for development: pip install -r requirements/dev.txt

Required Environment Variables

SECRET_KEY - The django SECRET_KEY setting. Set environment variable in bash

BASE_URL - Base URL to use when referring to full URLs within the Wagtail admin backend. e.g. in notification emails. Don't include '/admin' or a trailing slash.

You can put them in a .env file beside manage.py. We use django-dotenv.

Migrations

Run any migrations required

Git Hooks

Git hooks are provided in the hooks folder.

To install the hooks:

  • navigate to the .git/hooks/ directory
  • run ln -s ../../hooks/<hookfile> <hookname>
    - for example ln -s ../../hooks/pre-commit.py pre-commit

Pre-Commit Hook

Performs flake8 and isort checks before allowing commit.

Running Tests

To run the unit tests:

  • run ./manage.py test --settings=opencanada.settings.test

opencanada's People

Contributors

albertoconnor avatar beccaneer avatar cgibso44 avatar cpsimpson avatar gabrieltanchen avatar goggin avatar miscellainiac avatar sagemike avatar tomdyson avatar zylene avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.