Mirco
You can just look for django queue rabbitmq
joy
Its not up to the mark
Mirco
I read like 100 posts
Read better if you didn't understand
Mirco
Take your time to understand, play with it
joy
OK bro
Mirco
I'm not your bro 🙂
joy
👍
Bral Bral
hey guys! If i want receive in email error reporting information about request ( parameters, initiator, etc) i need to create own middleware ? Or there is another way
Mirco
hey guys! If i want receive in email error reporting information about request ( parameters, initiator, etc) i need to create own middleware ? Or there is another way
I've already answered you some days ago Anyway the best one is Sentry imho, set up it and you will have all you need
Yash
Could you share the project tree ?
https://www.codepile.net/pile/lYMNarxP
Mirco
Ok so change the ASGI_APPLICATION to songs4u.songs4u.routing
Mirco
and run again the dev server
Yash
k
Yash
File "/home/yush/dev/djenv/lib/python3.8/site-packages/channels/routing.py", line 31, in get_default_application raise ImproperlyConfigured("Cannot import ASGI_APPLICATION module %r" % path) django.core.exceptions.ImproperlyConfigured: Cannot import ASGI_APPLICATION module 'songs4u.songs4u.routing'
Mirco
Add __init__.py to the project dir and the app dir
Mirco
So one alongside manage.py and one alongside routing.py
Yash
already done
Yash
i just forgot to mention in my tree😅
Mirco
Ok so move routing.py outside the app dir Move it alongside manage.py and then retry with ASGI_APPLICATION equal to songs4u.routing
Mirco
Yash
Wait why you have 2 ? You should have only one
one for the wescoket_urlpatterns inside chat app
Yash
one as protocol type router
Mirco
Ah ok, it's different
Yash
application = ProtocolTypeRouter({ # Empty for now (http->django views is added by default) 'websocket': AuthMiddlewareStack( URLRouter( chat.routing.websocket_urlpatterns ) ), })
Yash
m shutting down my desktop for now it's midnight and my dad is being cranky if possible help me tommorow
Yash
Tysm for giving me ur valuable time
Mirco
Tysm for giving me ur valuable time
Just put channels on the top, above chat into INSTALLED APPS and it should work
niTRO
settings.py is having trouble with getting environment variables (in Windows, sorry). I have set 'PASSWORD': os.environ.get('DB_PASS', ''), If I open command prompt and do: >python >>> import os >>> os.environ.get('DB_PASS','') It returns the right value, but upon doing makemigrations, it says please supply the PASSWORD value. On doing a python manage.py diffsettings the password section appears to be blank, 'PASSWORD': ' ',
Mirco
Mirco
channels is under chat
Yash
channels is under chat
OK I will try it tomorrow morning
Vishal
Hi anybody share django practice project for rest api
Yash
👍🏻
Not working.
.
Hi do anyone know how to integrate views.py and index.html inside urls.py
Doragonsureiyā
Hi do anyone know how to integrate views.py and index.html inside urls.py
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Yash
Not working.
django.core.exceptions.ImproperlyConfigured: Cannot import ASGI_APPLICATION module 'songs4u.routing'
Aditya
Hi pls help I need to build regular expression python If word containing "document" in its then it should be replaced with empty string Sequence is forward only For example *Pythondocument is convert to Python *documentone is converted to one *Doconeument is converted to one *Documentdocument is converted to empty string Plz help needed Thanks in advance
Aditya
In forward direction document word should not form
Aditya
Why regexp? some_string.replace(‘document’, ‘’)
pls see examples document word should not form in forwad direction For example *Pythondocument is convert to Python *documentone is converted to one *doconeument is converted to one *pydocdbument is converted to pydb *documentdocument is converted to empty string
Yash
I don't think we are missing anything " https://github.com/django/channels/issues/1429 "
Yash
Same issue not solved"https://stackoverflow.com/questions/51634522/cannot-import-asgi-application-module-while-runserver-using-channels-2"
Mirco
What versions are u using of py and dj ?
Mirco
My suggestion is to use at least the latest LTS of Dj so the 2.2.x and also get the latest channels I don't have too much info about it but it sounds strange
Yash
My suggestion is to use at least the latest LTS of Dj so the 2.2.x and also get the latest channels I don't have too much info about it but it sounds strange
m gonna make a new environment implement all those things you said above and gonna try to run it using that specific environment let's see if tthat works
Yash
neither 2.2 nor 3.0.6
Mirco
Have you tried to pass the routing.application without songs4u before ? It's strange
kancharla
Evng geeks, I am trying to make connection between Django+MySql but I am unable to that could any one help me...??
Anonymous
Is there anyone online ?
Mirco
Is there anyone online ?
Have you ever read the numbers below the name of this group ?
Doragonsureiyā
Is there anyone online ?
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With a very high amount of people here the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Sergey
Hello, is there a place to store all of the test_func, form_valid etc mixin functions outside of views? So that there wouldn’t be a need to def them over and over again in the views that use mixins
Bhavasagar
https://stackoverflow.com/questions/62104405/how-to-display-the-dynamic-data-in-html-page
Bhavasagar
Please help me to get through this
Anonymous
How to preview uploaded pdf file on browser
Anonymous
Does anyone have a good project which uses ModelViewsets for post and get of foreignkey fields of a model I want to reference, I am stuck
Mirco
No
Try to pass without the songs4u
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Manish
Anyone know how to downgrade sqlite3 from 3.22.0 version to 2.5.0 version??
Anonymous
please share your requirement where did you stuck?
No longer stuck, but want to understand how POST works in serializers and ModelViewset