Skip to main content

A django app to simplify the use of uWSGI.it API

Project description

uwsgiit_console
===============

INSTALLATION
============


## Configuration

Open settings.py and add select2 and console to your INSTALLED_APPS:

- settings.py

```py
INSTALLED_APPS = {
...,
'select2',
'console',
...
}
```

Add 'console.template_context.context_processors.console_context' to TEMPLATE_CONTEXT_PROCESSORS:

```py
TEMPLATE_CONTEXT_PROCESSORS = (
...,
'console.template_context.context_processors.console_context',
...
)
```

In the end you can set a few variables:

```py
CONSOLE_TITLE = 'Whatever You Want' #Default 'uWSGI.it Console'
CONSOLE_SUBTITLE = 'Whatever You Want' #Default ''
DEFAULT_API_URL = 'https://whatever.you.want/' #Default 'https://api.uwsgi.it/api/'
```

- urls.py

```py
urlpatterns = patterns('',
... ,
(r'whatever/you/want', include('uwsgiit_console.urls')),
...
)

```

- Static files

Run collectstatic command or map static directory.


- Add an uwsgi.it api in the database

In order to make it work you have to add one UwsgiItApi instance in the database containing the url you put in DEFAULT_API_URL.



TEST
====
To launch test you should install tox (pip install tox) and you need to add a few variable into [console/tests/test_settings.py](https://github.com/20tab/uwsgiit_console/blob/master/console/tests/test_settings.py):

```py
TEST_USER = 'USER_EXAMPLE'
TEST_PASSWORD = 'PASSWORD_EXAMPLE'
TEST_CONTAINER = '12345'
TEST_DOMAIN = '123'
TEST_TAG = 'TAG_EXAMPLE'
```

Now you can launch the tests with::

```sh
./run_tests
```

Now, since this project relies on third party API... you have to be patience, normally it takes around 1 minute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uwsgiit-console-0.2.2.tar.gz (19.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page