django-private-chat
django-private-chat copied to clipboard
TypeError: __init__() missing 1 required positional argument: 'on_delete'
- django-private-chat version:
- Django version: 2.4
- Python version: 3.6
- Operating System: windows 7
Description
When i run: python manage.py migrate django-private-chat
got this error:
TypeError: init() missing 1 required positional argument: 'on_delete'
Probably using outdated version
All the current models have on_delete=models.CASCADE
Hi Denis, I installed it by pip yesterday. On Dec 19, 2018 17:48, "Denis" [email protected] wrote:
Probably using outdated version All the current models have on_delete=models.CASCADE [image: image] https://user-images.githubusercontent.com/10036256/50225439-99722480-03b1-11e9-90cb-50b89ccfa040.png
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Bearle/django-private-chat/issues/30#issuecomment-448611266, or mute the thread https://github.com/notifications/unsubscribe-auth/AP0cQBTQxzP8791EQWHKL6nkJE0r3zrmks5u6kqZgaJpZM4ZZ2-x .
Please, do a pip freeze
and paste the output here.
Looking for Django & django-private-chat versions
Hi again, alabaster==0.7.11 altgraph==0.16.1 anaconda-client==1.6.14 anaconda-navigator==1.9.2 anaconda-project==0.8.2 AnyQt==0.0.8 appdirs==1.4.3 arabic-reshaper==2.0.14 args==0.1.0 asn1crypto==0.24.0 astroid==1.6.5 astropy==3.0.3 atomicwrites==1.1.5 attrs==18.1.0 Automat==0.7.0 Babel==2.6.0 backcall==0.1.0 backports.csv==1.0.6 backports.shutil-get-terminal-size== beautifulsoup4==4.6.0 bitarray==0.8.2 bkcharts==0.2 blaze==0.11.3 bleach==2.1.3 bokeh==0.13.0 boto==2.48.0 boto3==1.7.20 botocore==1.10.20 Bottleneck==1.2.1 bz2file==0.98 CacheControl==0.12.5 cachetools==3.0.0 certifi==2018.10.15 cffi==1.11.5 chardet==3.0.4 click==6.7 clint==0.5.1 cloudpickle==0.5.3 clyent==1.2.2 colorama==0.3.9 CommonMark==0.7.5 comtypes==1.1.4 conda==4.5.11 conda-build==3.11.0 conda-verify==2.0.0 configparser==3.5.0 constantly==15.1.0 contextlib2==0.5.5 crossrefapi==1.3.0 cryptography==2.2.2 cycler==0.10.0 cymem==1.31.2 Cython==0.28.3 cytoolz==0.9.0.1 dask==0.18.1 datashape==0.5.4 decorator==4.0.11 dill==0.2.8.2 distlib==0.2.7 distributed==1.22.0 Django==2.0.7 docopt==0.6.2 docutils==0.14 elsapy==0.4.6 entrypoints==0.2.3 et-xmlfile==1.0.1 fastcache==1.0.2 filelock==3.0.4 Flask==1.0.2 Flask-Cors==3.0.6 future==0.16.0 gensim==3.4.0 gevent==1.3.4 glob2==0.6 google-api-python-client==1.7.4 google-auth==1.5.1 google-auth-httplib2==0.0.3 google-search==1.0.2 greenlet==0.4.13 h5py==2.8.0 habanero==0.6.0 heapdict==1.0.0 html5lib==1.0.1 httplib2==0.11.3 hyperlink==18.0.0 idna==2.7 imageio==2.3.0 imagesize==1.0.0 incremental==17.5.0 instagramapi==1.0.2 internetarchive==1.8.1 ipykernel==4.8.2 ipython==6.4.0 ipython-genutils==0.2.0 ipywidgets==7.2.1 isort==4.3.4 itsdangerous==0.24 jdcal==1.4 jedi==0.12.1 Jinja2==2.10 jmespath==0.9.3 joblib==0.12.1 jsonpatch==1.23 jsonpointer==2.0 jsonschema==2.6.0 jupyter==1.0.0 jupyter-client==5.2.3 jupyter-console==5.2.0 jupyter-core==4.4.0 jupyterlab==0.32.1 jupyterlab-launcher==0.10.5 keyring==13.0.0 keyrings.alt==3.1 kiwisolver==1.0.1 kwconfig==1.1.7 lazy-object-proxy==1.3.1 llvmlite==0.24.0 locket==0.2.0 lockfile==0.12.2 lxml==4.2.2 macholib==1.11 MarkupSafe==1.0 matplotlib==2.2.2 mccabe==0.6.1 menuinst==1.4.14 mistune==0.8.3 mkl-fft==1.0.2 mkl-random==1.0.1 more-itertools==4.2.0 moviepy==0.2.3.2 mpmath==1.0.0 msgpack==0.5.6 msgpack-python==0.5.6 multipledispatch==0.5.0 murmurhash==0.28.0 natsort==5.3.3 navigator-updater==0.2.1 nbconvert==5.3.1 nbformat==4.4.0 networkx==2.1 nltk==3.3 nose==1.3.7 notebook==5.6.0 numba==0.39.0 numexpr==2.6.5 numpy==1.14.5 numpydoc==0.8.0 oauthlib==2.1.0 odo==0.5.1 olefile==0.45.1 openpyxl==2.5.4 Orange3==3.11.0 packaging==17.1 pandas==0.23.3 pandocfilters==1.4.2 parso==0.3.1 partd==0.3.8 path.py==11.0.1 pathlib2==2.3.2 patsy==0.5.0 pbr==4.2.0 pefile==2018.8.8 pep8==1.7.1 pickleshare==0.7.4 Pillow==5.1.0 pkginfo==1.4.2 plotly==3.4.1 pluggy==0.6.0 ply==3.11 preshed==1.0.0 progress==1.4 prometheus-client==0.2.0 prompt-toolkit==1.0.15 psutil==5.4.6 py==1.5.4 pyasn1==0.4.3 pyasn1-modules==0.2.2 PyAutoGUI==0.9.38 pycodestyle==2.4.0 pycosat==0.6.3 pycparser==2.18 pycrypto==2.6.1 pycurl==7.43.0.2 pyflakes==2.0.0 Pygments==2.2.0 PyHamcrest==1.9.0 PyInstaller==3.3.1 pylint==1.9.2 PyMsgBox==1.0.6 pyodbc==4.0.23 pyOpenSSL==18.0.0 pyparsing==2.2.0 PyPDF2==1.26.0 pyqtgraph==0.10.0 pyreadline==2.1 PyScreeze==0.1.18 PySocks==1.6.8 pytest==3.6.3 pytest-arraydiff==0.2 pytest-astropy==0.4.0 pytest-doctestplus==0.1.3 pytest-openfiles==0.3.0 pytest-remotedata==0.3.0 python-bidi==0.4.0 python-dateutil==2.7.3 PyTweening==1.0.3 pytz==2018.5 PyWavelets==0.5.2 pywin32==223 pywinpty==0.5.4 PyYAML==3.12 pyzmq==17.0.0 QtAwesome==0.4.4 qtconsole==4.3.1 QtPy==1.4.2 requests==2.11.1 requests-oauthlib==1.0.0 requests-toolbelt==0.7.0 retrying==1.3.3 rope==0.10.7 rsa==4.0 ruamel-yaml==0.15.42 s3transfer==0.1.13 savepagenow==0.0.10 schema==0.6.8 scikit-image==0.14.0 scikit-learn==0.19.1 scipy==1.1.0 scopus==1.2.0 seaborn==0.8.1 search-google==1.2.1 selenium==3.12.0 Send2Trash==1.5.0 serverfiles==0.2.1 service-identity==17.0.0 simplegeneric==0.8.1 singledispatch==3.4.0.3 six==1.11.0 smart-open==1.5.7 snowballstemmer==1.2.1 sortedcollections==1.0.1 sortedcontainers==2.0.4 Sphinx==1.7.5 sphinxcontrib-websupport==1.1.0 spyder==3.3.0 spyder-kernels==0.2.4 SQLAlchemy==1.2.8 statsmodels==0.9.0 suds-py3==1.3.3.0 sympy==1.1.1 tables==3.4.4 tblib==1.3.2 terminado==0.8.1 testfixtures==6.0.2 testpath==0.3.1 toolz==0.9.0 tornado==5.0.2 tqdm==4.11.2 traitlets==4.3.2 tweepy==3.6.0 Twisted==18.7.0 typing==3.6.4 unicodecsv==0.14.1 uritemplate==3.0.0 urllib3==1.23 virtualenv==16.0.0 virtualenvwrapper-win==1.2.5 wcwidth==0.1.7 webencodings==0.5.1 Werkzeug==0.14.1 widgetsnbextension==3.2.1 win-inet-pton==1.0.1 win-unicode-console==0.5 wincertstore==0.2 wordcloud==1.5.0 wos==0.1.15 wrapt==1.10.11 xlrd==1.1.0 XlsxWriter==1.0.5 xlwings==0.11.8 xlwt==1.3.0 zict==0.1.3 zope.interface==4.5.0
On Thu, Dec 20, 2018 at 2:11 AM Denis [email protected] wrote:
Please, do a pip freeze and paste the output here. Looking for Django & django-private-chat versions
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Bearle/django-private-chat/issues/30#issuecomment-448944500, or mute the thread https://github.com/notifications/unsubscribe-auth/AP0cQEfG0NyjLPd0Nl0BnhZzeRAt5FMGks5u62JngaJpZM4ZZ2-x .
-- Best regards,
Abdalsamad keramatfar
hi denis, whats up?
On Fri, Dec 21, 2018 at 10:14 PM Abdalsamad Keramatfar < [email protected]> wrote:
Hi again, alabaster==0.7.11 altgraph==0.16.1 anaconda-client==1.6.14 anaconda-navigator==1.9.2 anaconda-project==0.8.2 AnyQt==0.0.8 appdirs==1.4.3 arabic-reshaper==2.0.14 args==0.1.0 asn1crypto==0.24.0 astroid==1.6.5 astropy==3.0.3 atomicwrites==1.1.5 attrs==18.1.0 Automat==0.7.0 Babel==2.6.0 backcall==0.1.0 backports.csv==1.0.6 backports.shutil-get-terminal-size== beautifulsoup4==4.6.0 bitarray==0.8.2 bkcharts==0.2 blaze==0.11.3 bleach==2.1.3 bokeh==0.13.0 boto==2.48.0 boto3==1.7.20 botocore==1.10.20 Bottleneck==1.2.1 bz2file==0.98 CacheControl==0.12.5 cachetools==3.0.0 certifi==2018.10.15 cffi==1.11.5 chardet==3.0.4 click==6.7 clint==0.5.1 cloudpickle==0.5.3 clyent==1.2.2 colorama==0.3.9 CommonMark==0.7.5 comtypes==1.1.4 conda==4.5.11 conda-build==3.11.0 conda-verify==2.0.0 configparser==3.5.0 constantly==15.1.0 contextlib2==0.5.5 crossrefapi==1.3.0 cryptography==2.2.2 cycler==0.10.0 cymem==1.31.2 Cython==0.28.3 cytoolz==0.9.0.1 dask==0.18.1 datashape==0.5.4 decorator==4.0.11 dill==0.2.8.2 distlib==0.2.7 distributed==1.22.0 Django==2.0.7 docopt==0.6.2 docutils==0.14 elsapy==0.4.6 entrypoints==0.2.3 et-xmlfile==1.0.1 fastcache==1.0.2 filelock==3.0.4 Flask==1.0.2 Flask-Cors==3.0.6 future==0.16.0 gensim==3.4.0 gevent==1.3.4 glob2==0.6 google-api-python-client==1.7.4 google-auth==1.5.1 google-auth-httplib2==0.0.3 google-search==1.0.2 greenlet==0.4.13 h5py==2.8.0 habanero==0.6.0 heapdict==1.0.0 html5lib==1.0.1 httplib2==0.11.3 hyperlink==18.0.0 idna==2.7 imageio==2.3.0 imagesize==1.0.0 incremental==17.5.0 instagramapi==1.0.2 internetarchive==1.8.1 ipykernel==4.8.2 ipython==6.4.0 ipython-genutils==0.2.0 ipywidgets==7.2.1 isort==4.3.4 itsdangerous==0.24 jdcal==1.4 jedi==0.12.1 Jinja2==2.10 jmespath==0.9.3 joblib==0.12.1 jsonpatch==1.23 jsonpointer==2.0 jsonschema==2.6.0 jupyter==1.0.0 jupyter-client==5.2.3 jupyter-console==5.2.0 jupyter-core==4.4.0 jupyterlab==0.32.1 jupyterlab-launcher==0.10.5 keyring==13.0.0 keyrings.alt==3.1 kiwisolver==1.0.1 kwconfig==1.1.7 lazy-object-proxy==1.3.1 llvmlite==0.24.0 locket==0.2.0 lockfile==0.12.2 lxml==4.2.2 macholib==1.11 MarkupSafe==1.0 matplotlib==2.2.2 mccabe==0.6.1 menuinst==1.4.14 mistune==0.8.3 mkl-fft==1.0.2 mkl-random==1.0.1 more-itertools==4.2.0 moviepy==0.2.3.2 mpmath==1.0.0 msgpack==0.5.6 msgpack-python==0.5.6 multipledispatch==0.5.0 murmurhash==0.28.0 natsort==5.3.3 navigator-updater==0.2.1 nbconvert==5.3.1 nbformat==4.4.0 networkx==2.1 nltk==3.3 nose==1.3.7 notebook==5.6.0 numba==0.39.0 numexpr==2.6.5 numpy==1.14.5 numpydoc==0.8.0 oauthlib==2.1.0 odo==0.5.1 olefile==0.45.1 openpyxl==2.5.4 Orange3==3.11.0 packaging==17.1 pandas==0.23.3 pandocfilters==1.4.2 parso==0.3.1 partd==0.3.8 path.py==11.0.1 pathlib2==2.3.2 patsy==0.5.0 pbr==4.2.0 pefile==2018.8.8 pep8==1.7.1 pickleshare==0.7.4 Pillow==5.1.0 pkginfo==1.4.2 plotly==3.4.1 pluggy==0.6.0 ply==3.11 preshed==1.0.0 progress==1.4 prometheus-client==0.2.0 prompt-toolkit==1.0.15 psutil==5.4.6 py==1.5.4 pyasn1==0.4.3 pyasn1-modules==0.2.2 PyAutoGUI==0.9.38 pycodestyle==2.4.0 pycosat==0.6.3 pycparser==2.18 pycrypto==2.6.1 pycurl==7.43.0.2 pyflakes==2.0.0 Pygments==2.2.0 PyHamcrest==1.9.0 PyInstaller==3.3.1 pylint==1.9.2 PyMsgBox==1.0.6 pyodbc==4.0.23 pyOpenSSL==18.0.0 pyparsing==2.2.0 PyPDF2==1.26.0 pyqtgraph==0.10.0 pyreadline==2.1 PyScreeze==0.1.18 PySocks==1.6.8 pytest==3.6.3 pytest-arraydiff==0.2 pytest-astropy==0.4.0 pytest-doctestplus==0.1.3 pytest-openfiles==0.3.0 pytest-remotedata==0.3.0 python-bidi==0.4.0 python-dateutil==2.7.3 PyTweening==1.0.3 pytz==2018.5 PyWavelets==0.5.2 pywin32==223 pywinpty==0.5.4 PyYAML==3.12 pyzmq==17.0.0 QtAwesome==0.4.4 qtconsole==4.3.1 QtPy==1.4.2 requests==2.11.1 requests-oauthlib==1.0.0 requests-toolbelt==0.7.0 retrying==1.3.3 rope==0.10.7 rsa==4.0 ruamel-yaml==0.15.42 s3transfer==0.1.13 savepagenow==0.0.10 schema==0.6.8 scikit-image==0.14.0 scikit-learn==0.19.1 scipy==1.1.0 scopus==1.2.0 seaborn==0.8.1 search-google==1.2.1 selenium==3.12.0 Send2Trash==1.5.0 serverfiles==0.2.1 service-identity==17.0.0 simplegeneric==0.8.1 singledispatch==3.4.0.3 six==1.11.0 smart-open==1.5.7 snowballstemmer==1.2.1 sortedcollections==1.0.1 sortedcontainers==2.0.4 Sphinx==1.7.5 sphinxcontrib-websupport==1.1.0 spyder==3.3.0 spyder-kernels==0.2.4 SQLAlchemy==1.2.8 statsmodels==0.9.0 suds-py3==1.3.3.0 sympy==1.1.1 tables==3.4.4 tblib==1.3.2 terminado==0.8.1 testfixtures==6.0.2 testpath==0.3.1 toolz==0.9.0 tornado==5.0.2 tqdm==4.11.2 traitlets==4.3.2 tweepy==3.6.0 Twisted==18.7.0 typing==3.6.4 unicodecsv==0.14.1 uritemplate==3.0.0 urllib3==1.23 virtualenv==16.0.0 virtualenvwrapper-win==1.2.5 wcwidth==0.1.7 webencodings==0.5.1 Werkzeug==0.14.1 widgetsnbextension==3.2.1 win-inet-pton==1.0.1 win-unicode-console==0.5 wincertstore==0.2 wordcloud==1.5.0 wos==0.1.15 wrapt==1.10.11 xlrd==1.1.0 XlsxWriter==1.0.5 xlwings==0.11.8 xlwt==1.3.0 zict==0.1.3 zope.interface==4.5.0
On Thu, Dec 20, 2018 at 2:11 AM Denis [email protected] wrote:
Please, do a pip freeze and paste the output here. Looking for Django & django-private-chat versions
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Bearle/django-private-chat/issues/30#issuecomment-448944500, or mute the thread https://github.com/notifications/unsubscribe-auth/AP0cQEfG0NyjLPd0Nl0BnhZzeRAt5FMGks5u62JngaJpZM4ZZ2-x .
-- Best regards,
Abdalsamad keramatfar
-- Best regards,
Abdalsamad keramatfar
Hi, sorry, i didn't see django-private-chat in your pip freeze. Are you sure you installed it in your venv and/or not in global python packages? Or maybe some other environment
oh, yes, i am using another env:
ad3==2.2.1 arabic-reshaper==2.0.14 asgiref==2.3.2 async-timeout==3.0.1 attrs==18.2.0 autobahn==18.12.1 Automat==0.7.0 channels==2.1.6 configparser==3.5.0 constantly==15.1.0 cycler==0.10.0 cytoolz==0.9.0.1 daphne==2.2.4 Django==2.1.3 django-braces==1.13.0 django-live-support==0.1.9 django-model-utils==3.1.2 django-private-chat==0.2.2 future==0.17.1 hyperlink==18.0.0 idna==2.8 incremental==17.5.0 kiwisolver==1.0.1 matplotlib==3.0.2 numpy==1.15.4 Pillow==5.3.0 PyHamcrest==1.9.0 pyparsing==2.3.0 pypiwin32==223 python-bidi==0.4.0 python-dateutil==2.7.5 pytz==2018.7 pywin32==224 simplejson==3.16.0 six==1.11.0 toolz==0.9.0 Twisted==18.9.0 txaio==18.8.1 websockets==3.2 wordcloud==1.5.0 zope.interface==4.6.0
On Tue, Dec 25, 2018 at 6:32 AM Denis [email protected] wrote:
Hi, sorry, i didn't see django-private-chat in your pip freeze. Are you sure you installed it in your venv and/or not in global python packages? Or maybe some other environment
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Bearle/django-private-chat/issues/30#issuecomment-449854593, or mute the thread https://github.com/notifications/unsubscribe-auth/AP0cQIBDQmVSbed6XWT_yDweZ4A0yZAyks5u8jbtgaJpZM4ZZ2-x .
-- Best regards,
Abdalsamad keramatfar
Well, it looks like you're using the new version It shouldn't be an issue then, could you paste the full stack trace here?
Thanks, I don't know how, but the problem solved. Could you inform me about this line:
Add
{% block extra_js %}{% endblock extra_js %}
to your base template what is base template and where is it?
base template in an html that you {% extend %} in other templates. It is usually named 'base.html' and has things like tags, footer/header and or some site-wide js/css files.
Thanks, now it show just a white page. [image: Capture.PNG]
On Fri, Dec 28, 2018 at 11:52 PM Denis [email protected] wrote:
base template in an html that you {% extend %} in other templates. It is usually named 'base.html' and has things like tags, footer/header and or some site-wide js/css files.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Bearle/django-private-chat/issues/30#issuecomment-450473831, or mute the thread https://github.com/notifications/unsubscribe-auth/AP0cQH6ctkekHSZMRXCCDVKvtjMjnPOHks5u9x9ZgaJpZM4ZZ2-x .
-- Best regards,
Abdalsamad keramatfar
i am getting the same error please help me
Well, it looks like you're using the new version It shouldn't be an issue then, could you paste the full stack trace here?
Hi Delneg, I am getting the same error can you please guide me on this TypeError: init() missing 1 required positional argument: 'on_delete'
on_delete=models.DO_NOTHING
add this, hope it will clear the issue.