如何安装 Django 通知?
https://github.com/jtauber/django-notification
它没有说明任何有关安装的信息。
我如何导入它?我应该把它放在 INSTALLED_APPS 中什么,因为 django.notification 不起作用。
好的,它在我的站点包中为“django_notification-0.2a1.dev4-py2.6.egg”,
如何将其导入到我的views.py和settings.py中?
https://github.com/jtauber/django-notification
It doesn't say anything about installing.
How do I import it? What do I put it inside the INSTALLED_APPS, because django.notification doesn't work.?
Ok, it's inside my site-packages as "django_notification-0.2a1.dev4-py2.6.egg "
How do I import this into my views.py and also my settings.py?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
伊格纳西奥的回答令人困惑。 (我花了 20 分钟搞乱通知包)。 Kedar 的答案更好,但仍然令人困惑。这是我安装并开始使用 django-notification 的最简单方法:
settings.py:
views .py:
Ignacio's answer is confusing. (I spent 20 minutes messing with the notification package). Kedar's answer is better but still confusing. Here's the simplest way I installed and started using django-notification:
settings.py:
views.py:
如果您查看 .egg 内部,您会发现该包名为“notification”。
If you look inside the .egg, you'll see that the package is called "notification".
需要安装,可以通过以下方式完成:
$ pip install django-notification
或
easy_install django-notification
或
python setup.py install
现在您的通知包将被安装
在您的 INSTALLED_APPS 中添加通知
例如
INSTALLED_APPS = ('',
'',...,
'notification')
Its needed to install which can be done in following ways :
$ pip install django-notification
or
easy_install django-notification
or
python setup.py install
Now your notification package will get installed
Add notification in your INSTALLED_APPS
e.g.
INSTALLED_APPS = ('',
'',...,
'notification')
您可以从以下位置使用此包
:
https://pypi.org/project/django-notifications-hq/
you can use this package
from:
https://pypi.org/project/django-notifications-hq/