T
I will recommend you to search that how whatsApp is being created.... Study that you will get a lot more idea
Anshu
Maybe when the user visits the site, the socket is already activated? And that's why he sees the latest messages and comments? Although then, in theory, he shouldn’t receive notifications
WhatsApp Clone using Django and Django Channels: https://www.youtube.com/playlist?list=PLupBPPRv3g1Vij6z-BcQpdVPUgOuRU3ny You can follow this playlist, video playlist clearly explain how to create personal chat application and save the messages as well
Anonymous
Hy I build projects in Java and Springboot. Now when I started working in Django I just fall in love with this framework. It's developer friendly. I'm following Django Course by Meta on Coursera. Any beginner friendly projects anyone can suggest.
Sujatareddy p
Can anybody help me to teach reacj js
Charly
Can anybody help me to teach reacj js
No, this is a Django group
Mahan
Cannot resolve keyword 'Asd' into field. Choices are: Category, author, author_id, content, created_date, id, image, published_date, status, title, updated_date, views
Taha
Hello guys I have question about docker Imagine we have project and we create docker compose for that So it's ok for now When we want to add new features or for debugging in that case we change or add new code in project But how can i add this changes to docker image or container I don't have any knowledge about that and i should delete docker image and container any times and then use docker compose up command again
Александр
Has anyone been able to make a registration and login form on one page?
i
yes I did
Александр
yes I did
can't be, right? How without 2 urls?
RIP
I've spent a lot of time making changes to my HTML templates, but every time I make a modification, the Django runserver doesn't reflect my changes accurately. Many times, I can only see the changes take effect when I stop and restart the server. This has been very time-consuming. Is there a way to eliminate this issue? I've already disabled browser caching
RIP
For example, when I use <img src="{% static 'logo.png' %}" alt="logoerror"> in the page template of appA and place logo.png in myproject/appA/static/appa/, the browser doesn't display the image. I thought I had made a mistake, so I fruitlessly made multiple modifications to my template until I restarted the runserver, and the image finally appeared. I had been working in vain all along.
Александр
Please show the url
Александр
gpt showed me the same thing, but it didn’t work for me😄
i
Please show the url
from django.urls import path from . import views urlpatterns = [ path('register_and_login/', views.register_and_login, name='register_and_login'), ]
i
what problem you receive
Александр
Everything seems the same
Karunakar
Cannot resolve keyword 'Asd' into field. Choices are: Category, author, author_id, content, created_date, id, image, published_date, status, title, updated_date, views
Actually u are trying to get asd field from a model which doesn't actually have it if u can ib me ur code I can help you out
i
clear cache and retry Have you added in settings.py
Александр
I don't want to mislead you, I'm not making a project, I'm just looking at different parts
Александр
Even the authorization field is gray, and the registration is white (active)
i
In general, is this type of implementation vulnerable compared to the classic one?
Oh I don't know what is ommon authentication method in real world in django
younis
Hi Everyone here I need a guideline for authorization or permision in django?
Charly
Hi Everyone here I need a guideline for authorization or permision in django?
https://docs.djangoproject.com/en/4.2/topics/auth/default/
younis
https://docs.djangoproject.com/en/4.2/topics/auth/default/
Thanks a lot actually, I read the post but it was hard for me to solve my problem. I want to define some rules for active state users I want to define some rules for staff state users and same for admin and superuser if any guidelines regarding of this please show me the path
Charly
You need to think ths in terms of django, like for example access to a view or create objects
xafosico
Hi guys, I have a problem in Django. During the development of my barbershop course site, I realized that I wanted to add the ability to upload my profile photo. Ok, I created a CustomUser class based on AbstractUser, added it to settings and admin.py. Everything works, only I am confused that the Users table on the main admin page is located under the name of the application in which I defined a Custom User. Yes, everything works correctly, but I don't like the look. Therefore, I added the Meta class to it, in which I set app_label='auth'. And then I get an error: django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'main.CustomUser' that has not been installed. As I saw on stackoverflow, this is a common mistake, but none of the solutions worked for me. This error occurs as soon as I add app_script=*whatever*. Maybe someone has faced this problem, I will be very grateful. Sorry, you can't send photos in this group(
younis
You need to think ths in terms of django, like for example access to a view or create objects
the same as you think for example in case of product model, I want some users to only view the model and rest can add, view, delete and change
ʀᴏᴏᴛ
I want to change the JSON response structure in Django REST Framework (DRF). For example, I want it to be like this: { "code": 0, "message": "error", "result": {} // DRF result } And the value of "result" should be the actual DRF response. // with serializer example : return CustomResponse(code=0, message="hello", result=data)
Александр
Oh I don't know what is ommon authentication method in real world in django
You have no idea how happy I am. Thank you. The form works.💥 But can you please give me some advice? How to display errors in fields if we do not use the base class?
Александр
How u fixed it₩
I added 'action' to the forms, and added a parameter to the button that I then tracked
i
Oh gotcha
Александр
Only now it is not done through a class, and if there is an error in the form, it is not displayed
i
you have to perform manually in to. Extract the datas from post request.Then store it in var and check fir eg username =request.Post.get('username') Here validation
Chandan
Django
Doragonsureiyā
..
can i use model python in Laravel project ??
Doragonsureiyā
can i use model python in Laravel project ??
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
V
#getthing 'search' value from html input search query = request.GET.get('search', default='') #How can I use the query variable to make regex in pattern variable below pattern = r"""{query}|([()])$""" I am trying to create regex pattern in pattern variable but r""" """ delimiter is not considering {query} inside it as a predefined variable. can anyone please help me
Sree Ram
Okay
Sree Ram
I'm getting internal server error 500
Sree Ram
And when I try to connect to the websocket using websocketking in the terminal it's showing await can't be used but i didn't used it anywhere
Illiyas
Is any function in django like onchange
Queen
Otp form
Queen
Otp form
For django
阿德
Hello 👋, I need help How could I delete a row from parent model without deleting data in foreignkey Thanks ☺️
Smile
阿德
@lucia
Hi
@lucia
Hlo, anyone hosted django project on render? I got an error. (eliteproperty is my project name) How to solve it?
Anonymous
I have knowledge on render
Anonymous
What is the error
V
https://nekobin.com/guditehele
Asmi
Hello dearest colleagues iam learning python recently so I want some guidance from you 🙏 if do you have a good pdf or books sent it
Ahmad
Hi there. What's the difference between source django_project/bin/activate and workon django_project ? They're both for activating virtual environment.
sʜᴀʜʀɪᴀʀ
Hi guys. Does anyone know site for downloading free HTML template???
Muflone
Hi guys. Does anyone know site for downloading free HTML template???
The first three google results have a lot of templates
sʜᴀʜʀɪᴀʀ
The first three google results have a lot of templates
thanks. What do you prefer if you need that ? do you know special site or source?
Paul
Error showing data didn't validate
Haya
I use djoser to singup and singin When use /auth/jwt/create it show the token can show is the user is staff or not and how
Ahmad
One is bash, the other uses a script from virtualenv package
Is there any difference? Which one is better to use?
Muflone
Is there any difference? Which one is better to use?
Sorry, I replied to the wrong message I usually use venv, not virtualenv as it's bundled with python
⍣ ᏗᏝᎥ ⍣
Hello, can any of my friends guide me in a topic?
Charly
Hello, can any of my friends guide me in a topic?
Ask your friends. But where we can help with django
⍣ ᏗᏝᎥ ⍣
Each category has a number of fields, the type of field is different for each category, how can this be implemented?
⍣ ᏗᏝᎥ ⍣
give an example
I can not send photos here!
Charly
I can not send photos here!
You don't need to share photos toe xplain
Haya
I use djoser to singup and singin When use /auth/jwt/create it show the token can show is the user is staff or not and how