`molly`.
Project description
# Molly
`molly` is simple application that injects a signal after the WSGIHandler
is instatiated. What this means for you is that you can definitively know when
your application is live and can receive requests.
## Installation:
`pip install django-molly`
## Usage:
```python
# settings.py file
INSTALLED_APPS = (
...,
'molly',
...
)
```
```python
# in some apps.py file
...
from molly.signals import application_started
def hello_world():
print "hello world!!!"
class MyAppConfig(AppConfig):
def ready(self):
application_started.connect(
hello_world, dispatch_uid='my-silly-message'
)
```
So now when you run `python manage.py runserver` or *any* service that utilizes
the `django.core.handlers.wsgi.WSGIHandler` you should see you message.
Enjoy the *ecstacy* of it all...
`molly` is simple application that injects a signal after the WSGIHandler
is instatiated. What this means for you is that you can definitively know when
your application is live and can receive requests.
## Installation:
`pip install django-molly`
## Usage:
```python
# settings.py file
INSTALLED_APPS = (
...,
'molly',
...
)
```
```python
# in some apps.py file
...
from molly.signals import application_started
def hello_world():
print "hello world!!!"
class MyAppConfig(AppConfig):
def ready(self):
application_started.connect(
hello_world, dispatch_uid='my-silly-message'
)
```
So now when you run `python manage.py runserver` or *any* service that utilizes
the `django.core.handlers.wsgi.WSGIHandler` you should see you message.
Enjoy the *ecstacy* of it all...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-molly-0.0.0.tar.gz
(2.2 kB
view details)
File details
Details for the file django-molly-0.0.0.tar.gz
.
File metadata
- Download URL: django-molly-0.0.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bcda9a7e4e75def7672e48132f6b59fd8d0f33c2e251a665e1fe3e09454d6be |
|
MD5 | df08dc4e336cecae7c0faeeff1007b82 |
|
BLAKE2b-256 | 45d2a107853b1707c676c1a6fbe784a77e6b4eda18ef518b99013a228f795751 |