error while broken django-mailbox install
See original GitHub issueIssue Description
$ python3 manage.py migrate
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib64/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
utility.execute()
File "/usr/local/lib64/python3.6/site-packages/django/core/management/__init__.py", line 347, in execute
django.setup()
File "/usr/local/lib64/python3.6/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib64/python3.6/site-packages/django/apps/registry.py", line 112, in populate
app_config.import_models()
File "/usr/local/lib64/python3.6/site-packages/django/apps/config.py", line 198, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/usr/local/lib/python3.6/site-packages/django_mailbox/models.py", line 453, in <module>
class Message(models.Model):
File "/usr/local/lib/python3.6/site-packages/django_mailbox/models.py", line 457, in Message
verbose_name=_(u'Mailbox'),
TypeError: __init__() missing 1 required positional argument: 'on_delete'
[ec2-user@ip-172-31-39-212 hirewiz]$ python3 manage.py makemagrations
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib64/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
utility.execute()
File "/usr/local/lib64/python3.6/site-packages/django/core/management/__init__.py", line 347, in execute
django.setup()
File "/usr/local/lib64/python3.6/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib64/python3.6/site-packages/django/apps/registry.py", line 112, in populate
app_config.import_models()
File "/usr/local/lib64/python3.6/site-packages/django/apps/config.py", line 198, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/usr/local/lib/python3.6/site-packages/django_mailbox/models.py", line 453, in <module>
class Message(models.Model):
File "/usr/local/lib/python3.6/site-packages/django_mailbox/models.py", line 457, in Message
verbose_name=_(u'Mailbox'),
TypeError: __init__() missing 1 required positional argument: 'on_delete'
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
django_mailbox.models — django-mailbox 3.3 documentation
Source code for django_mailbox.models. #!/usr/bin/env python """ Models declaration for application ``django_mailbox``.
Read more >Django Logging Emails not Arriving while other Emails do
For a few days now, we suspected that error logging was broken. Today we confirmed that the Mails sent via AdminEmailHandler were not...
Read more >django-o365mail - PyPI
This Django email backend has been created to solve that problem when using Office 365. It's easy to use and quite customizable. Installation....
Read more >mailbox — Manipulate mailboxes in various formats — Python ...
This module defines two classes, Mailbox and Message , for accessing and manipulating on-disk mailboxes and the messages they contain.
Read more >How to Send Email with Django - SitePoint
This will install the latest version of Django, which you can check with pip freeze . To create a Django project, you call...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There is required changes in repository (see https://github.com/coddingtonbear/django-mailbox/commit/725229560162322af96f5e374bda40db30584669 ). Unfortunatly, it wasn’t released yet by @coddingtonbear. I don’t have priviledges on pypi & there is no CD.
If you want you can use:
pip install git+https://github.com/coddingtonbear/django-mailbox.git@725229560162322af96f5e374bda40db30584669
You can put it in requirements.txt too.I’m assuming that this solves this problem, but don’t have the time at the moment to verify personally. Please let me know if this is still an issue!