Skip to main content

Tethys Apps

Tethys apps is an app that adds the capabilities to develop and host Tethys apps within your site.

Installation

Tethys Apps can be installed via pip or by downloading the source. To install via pip or easy_install:

pip install django-tethys_apps

To install via download:

git clone https://github.com/CI-WATER/django-tethys_apps.git
cd django-tethys_apps
python setup.py install

Django Configuration

  1. Add “tethys_apps” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'tethys_apps',
    )
  2. Include the Tethys URLconf in your project urls.py like this:

    url(r'^apps/', include('tethys_apps.urls')),
  3. Add the Tethys static files finder to STATICFILES_FINDERS setting. Also, include the default staticfiles finders:

    STATICFILES_FINDERS = ('django.contrib.staticfiles.finders.FileSystemFinder',
                           'django.contrib.staticfiles.finders.AppDirectoriesFinder',
                           'tethys_apps.utilities.TethysAppsStaticFinder')
  4. Add the Tethys apps template loaders to the TEMPLATE_LOADERS setting. Also, include the default template loaders:

    TEMPLATE_LOADERS = ('django.template.loaders.filesystem.Loader',
                        'django.template.loaders.app_directories.Loader',
                        'tethys_apps.utilities.tethys_apps_template_loader')
  5. Add the Tethys apps context processor and include all the default context processors:

    TEMPLATE_CONTEXT_PROCESSORS = ('django.contrib.auth.context_processors.auth',
                                   'django.core.context_processors.debug',
                                   'django.core.context_processors.i18n',
                                   'django.core.context_processors.media',
                                   'django.core.context_processors.static',
                                   'django.core.context_processors.tz',
                                   'django.contrib.messages.context_processors.messages',
                                   'tethys_apps.context_processors.tethys_apps_context')

6. Tethys apps requires a PostgreSQL > 9.1 database with the PostGIS > 2.1 extension. Refer to the documentation for each project for installation instructions. After installing the database, create two users with databases. Take note of the passwords, you will need them in the next step:

sudo -u postgres createuser -S -d -R -P tethys_db_manager
sudo -u postgres createdb -O tethys_db_manager tethys_db_manager -E utf-8

sudo -u postgres createuser --superuser -d -R -P tethys_super
sudo -u postgres createdb -O tethys_super tethys_super -E utf-8
  1. Provide the connection credentials for the two databases you created. Replace “pass” with the passwords you gave the users:

    TETHYS_DATABASES = {
        'tethys_db_manager': {
            'NAME': 'tethys_db_manager',
            'USER': 'tethys_db_manager',
            'PASSWORD': 'pass',
            'HOST': '127.0.0.1',
            'PORT': '5435'
        },
        'tethys_super': {
            'NAME': 'tethys_super',
            'USER': 'tethys_super',
            'PASSWORD': 'pass',
            'HOST': '127.0.0.1',
            'PORT': '5435'
        }
    }
  2. Run python manage.py migrate to create the database models.

9. Tethys Apps synthesizes several other django apps. They will be automatically installed when you run the setup script but you will need to add the configuration parameters for those apps to your settings file. Rather than duplicate the documentation for configuration of those apps here, please refer to the readme’s for each of the following django apps (which you can find on git hub):

  1. Start up the server with python manage.py runserver and visit http://127.0.0.1:8000/apps/ to view the apps library.

Quick Start

Release files for django-tethys_apps 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-tethys_apps 0.9.0
File Size Uploaded
django-tethys_apps-0.9.0.tar.gz 102.4 kB Details

Release files / django-tethys_apps-0.9.0.tar.gz

Download URL django-tethys_apps-0.9.0.tar.gz
Size 102.4 kB
Tags Source
SHA-256 checksum
How to use checksums
87cdcec9ade0377a756c529080cc24097c18e3b8fe9464517cb3059627f42195
BLAKE2b-256 checksum
How to use checksums
34f546b74606ee4ffe0074271e5aa696bd80669abca0564afeaf63e3b59632b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.0 This release

1 release file

0.8.5

1 release file

0.8.4

1 release file

0.8.3

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.7.5

1 release file

0.7.4

1 release file

0.7.3

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page