Skip to content

GRG2/ghg-registry

Repository files navigation

Core Main Registry App

This Django reusable app contains the main functionalities for the registry core project.

Pre-requisites

  • Install git
  • Install python
  • Install pip
  • Create a virtual env

Installation

Automated installation

Warning

The automated installation is not yet available.

Manual installation

$ git clone https://myrepo.com/core_main_registry_app.git
$ cd core_main_registry_app
$ python setup.py
$ pip install sdist/*.tar.gz

Configuration

1. Add "core_main_registry_app", "mptt", "tz_detect" to your INSTALLED_APPS setting like this

INSTALLED_APPS = [
    ...
    "tz_detect",
    "core_main_registry_app",
    "mptt",
]

2. Add the middleware required by tz_detect

MIDDLEWARE = (
    ...
    'tz_detect.middleware.TimezoneMiddleware',
)

3. Include the core_main_registry_app URLconf in your project urls.py like this

url(r'^', include("core_main_registry_app.urls")),

4. Launch migration: create table and constraints.

$ python manage.py migrate

About

Greenhouse Gas Registry repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published