mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-04-29 09:24:43 +00:00
Merge pull request #94 from illing2005/drop-support-django1.6
Django 1.9 compability
This commit is contained in:
commit
e79639fc6c
5 changed files with 15 additions and 10 deletions
|
|
@ -7,6 +7,7 @@ python:
|
|||
env:
|
||||
- DJANGO=1.7
|
||||
- DJANGO=1.8
|
||||
- DJANGO=1.9
|
||||
install:
|
||||
# command to install dependencies
|
||||
- "pip install coveralls"
|
||||
|
|
@ -20,5 +21,7 @@ matrix:
|
|||
exclude:
|
||||
- python: "3.5"
|
||||
env: DJANGO=1.7
|
||||
- python: "3.3"
|
||||
env: DJANGO=1.9
|
||||
after_success:
|
||||
- coveralls
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
``django-notifications`` Documentation
|
||||
=======================================
|
||||
|
||||
|
||||
|build-status| |coveralls|
|
||||
|
||||
`django-notifications <https://github.com/django-notifications/django-notifications>`_ is a GitHub notification alike app for Django, it was derived from `django-activity-stream <https://github.com/justquick/django-activity-stream>`_
|
||||
|
|
|
|||
|
|
@ -1,10 +1,2 @@
|
|||
try:
|
||||
from notifications.signals import notify
|
||||
except ImportError:
|
||||
pass
|
||||
default_app_config = 'notifications.apps.Config'
|
||||
|
||||
try:
|
||||
from notifications.urls import urlpatterns
|
||||
urls = (urlpatterns, 'notifications', 'notifications')
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
|||
10
notifications/apps.py
Normal file
10
notifications/apps.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
class Config(AppConfig):
|
||||
name = "notifications"
|
||||
|
||||
def ready(self):
|
||||
super(Config, self).ready()
|
||||
# this is for backwards compability
|
||||
import notifications.signals
|
||||
notifications.notify = notifications.signals.notify
|
||||
|
|
@ -1 +0,0 @@
|
|||
from .tests import *
|
||||
Loading…
Reference in a new issue