having probem with using signal with channels in django
Not able to send real time data to client when a post signal is generated -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/14a16e14-3328-4159-9fd6-2f47e6a659d2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: having probem with using signal with channels in django
Text format and in local ip -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/58f3ab4a-9dae-4f87-ad16-1cd770567fe2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: having probem with using signal with channels in django
can i use postman for websocket? I am trying to create a real time dashboard using channels -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1532dd35-ab61-46d7-867a-f8b1ffeee922%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: having probem with using signal with channels in django
i am talking about channels(websocket) can they be connected to postman they main problem is that i need to create real time app like real time dashboard which update the data as soon as there is any crud event occurs in db -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/05671afe-6d52-4404-ad2e-84aca2127482%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Foriegnkey problem while saving data
Can you please send more detail like 1 models 2 Query you are using -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0b9e433e-311e-41e4-8676-291434540def%40googlegroups.com.
Django channel async_to_sync(channel_layer.send)('test_channel', {'type': 'hello'}) error
In Python shell as per directed on django channel site https://channels.readthedocs.io/en/latest/tutorial/part_2.html#enable-a-channel-layer $ python3 manage.py shell>>> import channels.layers>>> channel_layer = channels.layers.get_channel_layer()>>> from asgiref.sync import async_to_sync>>> async_to_sync(channel_layer.send)('test_channel', {'type': 'hello'})>>> async_to_sync(channel_layer.receive)('test_channel'){'type': 'hello'} please help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/78706ec6-cd0f-4b5c-a3a5-422e7185a70e%40googlegroups.com.
Django Channels
I followed the tutorial on django channel site which has link: https://channels.readthedocs.io/en/latest/tutorial/part_2.html import channels.layers from asgiref.sync import async_to_sync print("running") channel_layer = channels.layers.get_channel_layer() async_to_sync(channel_layer.send)('test_channel', {'type': 'hello'}) <-- this is the cause of error but why i am not able to figure it out Then i got Segmented fault error, So the stack trace for the error was : Fatal Python error: Segmentation fault Current thread 0x7f9657fff700 (most recent call first): File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/weakref.py", line 364 in remove Thread 0x7f965c99f700 (most recent call first): File "/usr/lib/python3.7/selectors.py", line 484 in close File "/usr/lib/python3.7/asyncio/selector_events.py", line 89 in close File "/usr/lib/python3.7/asyncio/unix_events.py", line 55 in close File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/channels_redis/core.py", line 34 in _wrapper File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/asgiref/sync.py", line 124 in _run_event_loop File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57 in run File "/usr/lib/python3.7/concurrent/futures/thread.py", line 80 in _worker File "/usr/lib/python3.7/threading.py", line 870 in run File "/usr/lib/python3.7/threading.py", line 926 in _bootstrap_inner File "/usr/lib/python3.7/threading.py", line 890 in _bootstrap Thread 0x7f96605b6740 (most recent call first): File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/asgiref/current_thread_executor.py", line 65 in run_until_future File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/asgiref/sync.py", line 91 in __call__ File "/home/abohra/Documents/Dev/ex/experimenting/tester.py", line 7 in File "", line 219 in _call_with_frames_removed File "", line 728 in exec_module File "", line 677 in _load_unlocked File "", line 967 in _find_and_load_unlocked File "", line 983 in _find_and_load File "", line 1 in File "/usr/lib/python3.7/code.py", line 90 in runcode File "/usr/lib/python3.7/code.py", line 74 in runsource File "/usr/lib/python3.7/code.py", line 258 in push File "/usr/lib/python3.7/code.py", line 232 in interact File "/usr/lib/python3.7/code.py", line 301 in interact File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/django/core/management/commands/shell.py", line 81 in python File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/django/core/management/commands/shell.py", line 99 in handle File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/django/core/management/base.py", line 364 in execute File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/django/core/management/base.py", line 323 in run_from_argv File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/django/core/management/__init__.py", line 375 in execute File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/django/core/management/__init__.py", line 381 in execute_from_command_line File "./manage.py", line 17 in main File "./manage.py", line 21 in Any Help is Appreciated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/df2c3055-79c2-4f99-8192-6608060ff346%40googlegroups.com.
Django Channel Demo Error From its site
I am trying to start with channels but the demo in python shell is not working properly:https://channels.readthedocs.io/en/latest/tutorial/part_2.html#enable-a-channel-layer Its is showing some thing like this : (InteractiveConsole) >>> import channels.layers >>> channel_layer = channels.layers.get_channel_layer() >>> from asgiref.sync import async_to_sync >>> async_to_sync(channel_layer.send)('test_channel', {'type': 'hello'}) Segmentation fault (core dumped) please help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7cb18c9c-7538-4b53-bdde-1d1c487f92f4%40googlegroups.com.
Re: Django Channel Demo Error From its site
This is output of pip freeze aioredis==1.3.1 asgi-redis==1.4.3 asgiref==3.2.0 async-timeout==3.0.1 attrs==19.3.0 autobahn==20.4.3 Automat==20.2.0 cachetools==4.0.0 certifi==2019.11.28 cffi==1.14.0 channels==2.4.0 channels-redis==2.4.2 chardet==3.0.4 constantly==15.1.0 cryptography==2.9.2 daphne==2.5.0 Django==2.2.6 google-api-core==1.16.0 google-api-python-client==1.8.0 google-auth==1.12.0 google-auth-httplib2==0.0.3 googleapis-common-protos==1.51.0 hiredis==1.0.1 httplib2==0.17.0 hyperlink==19.0.0 idna==2.9 incremental==17.5.0 msgpack==0.6.2 msgpack-python==0.5.6 oauth2client==4.1.3 protobuf==3.11.3 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.20 PyDrive==1.3.1 PyHamcrest==2.0.2 pyOpenSSL==19.1.0 pytz==2019.3 PyYAML==5.3.1 redis==2.10.6 requests==2.23.0 rsa==4.0 service-identity==18.1.0 six==1.14.0 sqlparse==0.3.0 Twisted==20.3.0 txaio==20.4.1 uritemplate==3.0.1 urllib3==1.25.8 zope.interface==5.1.0 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/28eb4dc2-005c-4086-a0c4-7da9a79135e7%40googlegroups.com.
Re: Django Channel Demo Error From its site
aioredis==1.3.1 asgi-redis==1.4.3 asgiref==3.2.0 async-timeout==3.0.1 attrs==19.3.0 autobahn==20.4.3 Automat==20.2.0 cachetools==4.0.0 certifi==2019.11.28 cffi==1.14.0 channels==2.4.0 channels-redis==2.4.2 chardet==3.0.4 constantly==15.1.0 cryptography==2.9.2 daphne==2.5.0 Django==2.2.6 google-api-core==1.16.0 google-api-python-client==1.8.0 google-auth==1.12.0 google-auth-httplib2==0.0.3 googleapis-common-protos==1.51.0 hiredis==1.0.1 httplib2==0.17.0 hyperlink==19.0.0 idna==2.9 incremental==17.5.0 msgpack==0.6.2 msgpack-python==0.5.6 oauth2client==4.1.3 protobuf==3.11.3 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.20 PyDrive==1.3.1 PyHamcrest==2.0.2 pyOpenSSL==19.1.0 pytz==2019.3 PyYAML==5.3.1 redis==2.10.6 requests==2.23.0 rsa==4.0 service-identity==18.1.0 six==1.14.0 sqlparse==0.3.0 Twisted==20.3.0 txaio==20.4.1 uritemplate==3.0.1 urllib3==1.25.8 zope.interface==5.1.0 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/11b7f7a0-7fbf-44b6-ad22-d9ec80679149%40googlegroups.com.
Re: Django Channel Demo Error From its site
To view the stacktrace is used faulthandlers so that segmentation fault can be removed I followed the tutorial on django channel site which has link: https://channels.readthedocs.io/en/latest/tutorial/part_2.html import channels.layers from asgiref.sync import async_to_sync print("running") channel_layer = channels.layers.get_channel_layer() async_to_sync(channel_layer.send)('test_channel', {'type': 'hello'}) <-- this is the cause of error but why i am not able to figure it out Then i got Segmented fault error, So the stack trace for the error was : Fatal Python error: Segmentation fault Current thread 0x7f9657fff700 (most recent call first): File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/weakref.py", line 364 in remove Thread 0x7f965c99f700 (most recent call first): File "/usr/lib/python3.7/selectors.py", line 484 in close File "/usr/lib/python3.7/asyncio/selector_events.py", line 89 in close File "/usr/lib/python3.7/asyncio/unix_events.py", line 55 in close File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/channels_redis/core.py", line 34 in _wrapper File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/asgiref/sync.py", line 124 in _run_event_loop File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57 in run File "/usr/lib/python3.7/concurrent/futures/thread.py", line 80 in _worker File "/usr/lib/python3.7/threading.py", line 870 in run File "/usr/lib/python3.7/threading.py", line 926 in _bootstrap_inner File "/usr/lib/python3.7/threading.py", line 890 in _bootstrap Thread 0x7f96605b6740 (most recent call first): File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/asgiref/current_thread_executor.py", line 65 in run_until_future File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/asgiref/sync.py", line 91 in __call__ File "/home/abohra/Documents/Dev/ex/experimenting/tester.py", line 7 in File "", line 219 in _call_with_frames_removed File "", line 728 in exec_module File "", line 677 in _load_unlocked File "", line 967 in _find_and_load_unlocked File "", line 983 in _find_and_load File "", line 1 in File "/usr/lib/python3.7/code.py", line 90 in runcode File "/usr/lib/python3.7/code.py", line 74 in runsource File "/usr/lib/python3.7/code.py", line 258 in push File "/usr/lib/python3.7/code.py", line 232 in interact File "/usr/lib/python3.7/code.py", line 301 in interact File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/django/core/management/commands/shell.py", line 81 in python File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/django/core/management/commands/shell.py", line 99 in handle File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/django/core/management/base.py", line 364 in execute File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/django/core/management/base.py", line 323 in run_from_argv File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/django/core/management/__init__.py", line 375 in execute File "/home/abohra/Documents/Dev/ex/env/lib/python3.7/site-packages/django/core/management/__init__.py", line 381 in execute_from_command_line File "./manage.py", line 17 in main File "./manage.py", line 21 in Any Help is Appreciated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ec02d789-de48-4b3a-9610-2be34868dcae%40googlegroups.com.
Re: new to django
On Thursday, October 18, 2018 at 2:51:02 PM UTC+5:30, shubham...@gmail.com wrote: > > "django-admin startproject mysite" i tried to run this in cmd propmt but it > is not working showing "django-admin' is not recognized as an internal or > external command," what to do? > > Is it working now -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/64032c27-c402-4f42-8530-12b2ca56ad5d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Create Follow model
I am having problem Creating follow model . This is to be used with django user model -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/96bfd10d-83b3-4109-aa2b-179c8b705781%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Create Follow model
On Friday, November 9, 2018 at 3:53:54 PM UTC+5:30, Aditya Bohra wrote: > > I am having problem Creating follow model . > This is to be used with django user model > I want to implement follow method like in twitter so how to implement that in django models -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/91eccd3e-cc6e-44e8-bc63-28bf900d4eee%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Create Follow model
I need to let a user follow other user -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/daadcd54-b4e3-4730-8fd3-3d997f16087d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Create Follow model
I only inherited the Django user model to create my own and I saw that we can use "self" in relationship but cant figure out which one to use -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/29cda490-6760-4b9a-a01f-191b051510d5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Fwd: Setting up admin in visual studio
In urls.py from app_name.views import blog -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/14cfacea-26e3-4438-b1ce-48281c9747b4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
please my css file is not reflecting on mine page .the css file failed to load from mine base.html file
I static configured correctly -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4e0c936f-f283-468d-b0c0-ce9c75f608ad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
please my css file is not reflecting on mine page .the css file failed to load from mine base.html file
Is* -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/43b5c542-a023-4006-9e03-fdd3b93a83e3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
When is provide custom ip like python manage.py runserver cannot login or signup
Please help on localhost or 127.0.0.1:8000 everything is working fine but when i provide ip and port authentication is doesn't work -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0d90757d-8897-440c-8e79-a8e808163584n%40googlegroups.com.