我正在尝试使用 Django-Postman
框架在 Django 2.0
中的用户之间发送消息。
我已经安装了该应用程序并进行了必要的更改,如上所述 in the docs of the framework .
但是,当我尝试访问消息网址时,我得到一个空白页面(如此屏幕截图):
这是我到目前为止所做的:
- 已安装
django-postman
在
中settings.py
INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'postman', 'account', 'cart', 'shop', 'landingpage', ] POSTMAN_I18N_URLS = True # default is False POSTMAN_DISALLOW_ANONYMOUS = True # default is False POSTMAN_DISALLOW_MULTIRECIPIENTS = True # default is False POSTMAN_DISALLOW_COPIES_ON_REPLY = True # default is False POSTMAN_DISABLE_USER_EMAILING = True # default is False POSTMAN_FROM_EMAIL = '<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b3d5c1dcdef3dbdcc0c79dc7dfd7" rel="noreferrer noopener nofollow">[email protected]</a>' # default is DEFAULT_FROM_EMAIL POSTMAN_AUTO_MODERATE_AS = True # default is None POSTMAN_SHOW_USER_AS = 'get_full_name' # default is None POSTMAN_NAME_USER_AS = 'last_name' # default is None POSTMAN_QUICKREPLY_QUOTE_BODY = True # default is False POSTMAN_NOTIFIER_APP = None # default is 'notification' POSTMAN_MAILER_APP = None # default is 'mailer'
我已经在
urls.py
中以这种方式链接了网址url(r'^messages/', include('postman.urls', namespace='postman')),
如何解决这个问题?
最佳答案
关于python - Django Postman 实现发送消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51835312/