Sanjeeb
this is the error
Sanjeeb
projects url code
Sanjeeb
from django.contrib import adminfrom django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls), path('food/', include('food.urls')),
]
Виктор
Sanjeeb
from . import views from django.urls import path
urlpatterns = [ path('hello/', views.hello_world, name='hello'),
]
Виктор
And please, use markdown formation, looks better
Виктор
Sanjeeb
i tried also that not work
Sanjeeb
http://localhost:8000/food/hello/
Sanjeeb
Page not found (404)Request Method: GET
Request URL: http://localhost:8000/food/hello/Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:
admin/
The current path, food/hello/, didn’t match any of these.
You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
Sanjeeb
404 is comming
Sanjeeb
Виктор
what is the issue bro
Sorry, im not ur bro, but u can share project to public repository, isn't popular mistake
Виктор
Виктор
Is python manage.py runserver 80? Check pls port
Sanjeeb
It's only python manage.py runsrver
Виктор
Виктор
How u get 404?)
Sanjeeb
Whe i search for normal lacalhost://8000 it's work
Sanjeeb
Django project showing
Виктор
Ur /food/hello/ not return 404 response from view?
Виктор
Виктор
Виктор
Виктор
Hello admin, I have a question:
I know django, and I want to help people in the group, but my English is weak. Can I practice it here in group, trying to help people?
Азамат
Hey community!
Азамат
https://github.com/azamatovuser/Telegram-Clone-API/issues/1
Азамат
Can someone help me with websocket (django)
Виктор
ur path not right too
Азамат
im not sure i understand (my bad)
i just recently started learning websocket and to be honest i cant get properly
Виктор
Азамат
No, its not
Азамат
I think the code doesnt recognize the websocket part
Азамат
with just print methods?
Азамат
okay hold on
Виктор
with just print methods?
im check with python manage.py shell and use method
from channels.layers import get_channel_layer
channel_layer = get_channel_layer()
Азамат
i just added print to check and here is the result: RedisChannelLayer(hosts=[{'host': 'localhost', 'port': 8000}])
Азамат
Азамат
Азамат
nothing happened
Виктор
nothing happened
yes, misstake, can u check
async_to_sync(channel_layer.group_send)("chat", {"type": "chat.force_disconnect"})
Азамат
yes
Азамат
Азамат
Sure
Азамат
async_to_sync(channel_layer.group_send)(
f'room_{room.id}',
{
'type': 'room_message',
'message': message
}
).
What about this?
Азамат
there is channel_layer
Виктор
Виктор
if query will done, its ur redis problems
Виктор
you need to localize the problem
Азамат
everything works
Азамат
no error
Виктор
Азамат
How am i supposted to send?
Азамат
(channel_layer.group_send)(
f'room_{1}',
{
'type': 'room_message',
'message': 'message'
}
)
Like this?
Азамат
Nothing happens
Азамат
when i send a number, this number is being returned
Азамат
and that accepts only number
Азамат
such a hard thing to understand (websocket)
Kridha Singh
Is anyone tell me how to convert html into pdf and how to download pdf in django? I tried many times but it gives error
Muflone
Kridha Singh
Muflone
NARASIMHA
David H
M. Hossein
How can I create a custom mixin?
For example: EmployerGroupRequired, UserPointsRequired
Muflone
Виктор
rahman
I Want to learn Django which is the best online platform to learn
AZAMAT 々
Anonymous
Salih
hey my name is salih. now i am learning  model form in django  .i am stuck with my code so is anyone  know why my data incertion was not happening.sql data base created but insertion is not happening
Charly
Salih
Yeah sure
Charly
Yeah sure
So, are you going to share that?