Mirco
You can just look for django queue rabbitmq
joy
joy
Its not up to the mark
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
Bral Bral
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
Yash
Mirco
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
Yash
Yash
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
Mirco
Vishal
Hi anybody share django practice project for rest api
Yash
.
Hi do anyone know how to integrate views.py and index.html inside urls.py
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
Mirco
Mirco
Alex
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
Mirco
Doragonsureiyā
Aditya
Yash
I don't think we are missing anything " https://github.com/django/channels/issues/1429 "
Mirco
Yash
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 ?
Yash
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
Yash
neither 2.2 nor 3.0.6
Mirco
Have you tried to pass the routing.application without songs4u before ?
It's strange
Yash
kancharla
Evng geeks, I am trying to make connection between Django+MySql but I am unable to that could any one help me...??
Mirco
Anonymous
Is there anyone online ?
Mirco
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
Yash
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
Yash
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