`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.1.tar.gz
(2.0 kB
view details)
File details
Details for the file django-molly-0.0.1.tar.gz
.
File metadata
- Download URL: django-molly-0.0.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9aa10876915d24bec541b574d76f045f7dfff1906f86a5eb30a7fe30fb9452a |
|
MD5 | 5ddc11a7177756d9b174a793e368bfd3 |
|
BLAKE2b-256 | 0a37ff60548df63f800b90f9795ff326dfc5d26778a425be60137ce71e293e90 |