django-molly-0.0.2
توضیحات
`molly`.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | django-molly-0.0.2 |
| نام | django-molly |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Anthony |
| ایمیل نویسنده | UNKNOWN |
| آدرس صفحه اصلی | https://github.com/anthonyalmarza/molly |
| آدرس اینترنتی | https://pypi.org/project/django-molly/ |
| مجوز | UNKNOWN |
# 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...
نحوه نصب
نصب پکیج whl django-molly-0.0.2:
pip install django-molly-0.0.2.whl
نصب پکیج tar.gz django-molly-0.0.2:
pip install django-molly-0.0.2.tar.gz