Git Product home page Git Product logo

tangent-django-boilerplate's Introduction

Tangent Django Boilerplate

This is a boilerplate README.rst created from the tangent-django-boilerplate project. This section should be deleted and the below sections completed when the project is created.

Use this project with Django's startproject command:

$ django-admin.py startproject $PROJECT_NAME \
  --extension="py,rst,conf,wsgi" \
  --template=https://github.com/tangentlabs/tangent-django-boilerplate/zipball/master

Note that you need to specify a name for the project and pass the following variables:

  • client - The client for this project
  • project_code - The project code
  • domain - The top-level domain for the test/stage sites and the alerts mailing list
  • timezone - Which timezone to use in settings.py

Tangent developers can use the tangent-kickstart tool to simplify creation of projects that conform to our conventions:

The below copy contains template variables - it gets merged with a context when a new boilerplate project is created.

Project title

<Describe the purpose of this project. What problem is it trying to solve.>

<Describe any third party integrations.>

Status

<Set project up on Travis to get the correct token for the below image>

image

<Set project up on Sentry and include URL here>

Communication

<List mailing lists and any other channels for project communication>

For developers

Local set-up

Clone the repo, create a virtualenv and run:

$ make

This will:

  • Install all Python dependencies (from www/deploy/requirements.txt);
  • Create your database schema
  • Load sample data (stored in fixtures/*.json)

Two sample users are loaded:

username: superuser
email: [email protected]
password: testing

and:

username: staff
email: [email protected]
password: testing

Re-run this make target when switching branches to rebuild your database.

Testing

Run the test suite using either:

$ make test

or:

$ cd www
$ py.test

See the py.test docs for info on how to run subsets of the test suite.

Deployment

Deployment uses Fabric. There are helper scripts for each environment:

$ ./deploy-to-test.sh
$ ./deploy-to-stage.sh
$ ./deploy-to-prod.sh

For testers

<List information that testers will need to know such as testing bankcard numbers.>

Infrastructure

<Describe the infrastructure for this project, covering webservers, databases and other services (eg Solr, RabbitMQ). Include versions>

<List the IP addresses of each server used by this project and any HTTP basic auth credentials>

Notes

<Describe any gotchas or unusual parts of the codebase. Assume the person who will take over this project from you is a serial killer who knows where you live.>

<Describe the reasoning behind major design decisions>

tangent-django-boilerplate's People

Contributors

codeinthehole avatar adlorenz avatar izidormatusov avatar scaryclam avatar daviddyball avatar fmr avatar gump avatar abbas123456 avatar

Watchers

Tyler 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.