T
I will recommend you to search that how whatsApp is being created.... Study that you will get a lot more idea
Karunakar
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
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
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
whats the problem?
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
younis
Hi Everyone here
I need a guideline for authorization or permision in django?
Charly
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
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(
ʀᴏᴏᴛ
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)
i
Александр
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 ??
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
阿德
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.
Muflone
sʜᴀʜʀɪᴀʀ
Hi guys.
Does anyone know site for downloading free HTML template???
Muflone
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
Muflone
Ahmad
⍣ ᏗᏝᎥ ⍣
Hello, can any of my friends guide me in a topic?
⍣ ᏗᏝᎥ ⍣
⍣ ᏗᏝᎥ ⍣
Each category has a number of fields, the type of field is different for each category, how can this be implemented?
Charly
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