Merge pull request #94 from illing2005/drop-support-django1.6

Django 1.9 compability
This commit is contained in:
Zhongyuan 2015-12-10 10:41:03 +08:00
commit e79639fc6c
5 changed files with 15 additions and 10 deletions

View file

@ -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

View file

@ -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>`_

View file

@ -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
View 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

View file

@ -1 +0,0 @@
from .tests import *