Maxim
But not just ready to read what ?
did not understand that
Главный
did not understand that
How to make a table in which it is possible to move from cell to cell using Dash
Главный
Django
Alek
How to make a table in which it is possible to move from cell to cell using Dash
I think it is mostly on the frontend part. Do your own research, check out for solutions on the web. There is probably ton of frontend solutions for that. You would only need to tune it and link it with backend/
Abhie
I was sending web cam feed to server by converting it to string of base64 however it can send max 300×150 i need atleast 640x480
McLean
Guys i have a problem is it possible to have two absolute_urls in one model like def cars(models. model): Id = models.autofield(primary_key=true) *Other fields**** def get_absolute_url(self): return "/car/%s/" %(self.id) def get_absolute_url(self): return "payment/car/%s/" %(self.id)
Berkan
Friends, in my django project, I get the error that the matching query does not exist on the profile page, how can I fix it?
Berkan
the code i wrote
Berkan
@login_required(login_url='login') def profile(request, id): setting = Setting.objects.get(pk=1) category = Category.objects.all() current_user = request.user profile = UserProfile.objects.get(user_id= current_user.id) return render(request, 'profile.html', context={ 'setting':setting, 'category':category, 'profile':profile })
Berkan
the error i got
Berkan
DoesNotExist at /user/profile/3 UserProfile matching query does not exist.
rtg
Good afternoon. When I use forms for the user to insert data and save data to the database. Is it enough with a form, a url, a view(formView) and the template? Or is it necessary to use a FormView and a CreateView?
rtg
thank you!
McLean
What problem are you trying to solve with that?
Only the first absolute url is used , am getting any error when i want to access the last one
Morteza
Keep the object detail url name as get_absolute_url Then name the rest of the urls as you wish
Aj
Hi, how can we redirect a user from any page to home_page.html when he clicks on 'home' from navbar?
Aj
What changes needs to be done in urls.py file?
Rahul Yadav
Hi any one knows how to write pytest fot django
Happy
What changes needs to be done in urls.py file?
You need to make changes in html file
Happy
You need to make changes in html file
In href give thw path of home
Aj
In href give thw path of home
Yes, I've done that. But lets say user had searched something from website search bar and then he had gone into page that is has long url path. And I've multiple functions which leads to this kind of linked urls, so I was finding if there is any shortcut which can be implemented to send user on home page(default page)
Chocolate_girl
Is possible to return a set of object in a django query. If yes How pls
Do you want to record a single row or Multiple row based on filter?
Ig
anyone have django notes
Doragonsureiyā
anyone have django notes
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
How to send 2 post request form different django forms
Doragonsureiyā
How to send 2 post request form different django forms
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
Abhie
Hey can someone help me i want to send img as blob to server and use it for img processing
Doragonsureiyā
Hey can someone help me i want to send img as blob to server and use it for img processing
What have you tried to do, to solve that issue? Show your code (read rule 5⃣ first) and explain where, and why, you're stuck.
Kush
Anyone learning django seriously can join me . We can do pair programming
Suren
I am trying to make migration in PuTTY by entering command python manage.py makemigrations and getting error as below: python manage.py makemigrations File "manage.py", line 17 ) from exc ^ SyntaxError: invalid syntax Please advise how to do it correctly? before I was doing it only on local computer
Suren
Lesson number one: Always read what the machine tells you
but why invalid syntax? it's correct command
Charly
but why invalid syntax? it's correct command
Maybe you are not using the right python version
Suren
Maybe you are not using the right python version
I have checked and see that my server is running on Python 2.7.15rc1 When I used locally Python 3.9. That means this is the case? Is there a different command for makemigrations on Python 2.7?
Sirius
Hello guys, any help please. I can't understand why djanga doesn't see static files. It seems like everything was set up correctly. Please give me some ideas.
Shailesh
check once static file path and "/"
cj
Hello guys, any help please. I can't understand why djanga doesn't see static files. It seems like everything was set up correctly. Please give me some ideas.
read this: https://docs.djangoproject.com/en/4.1/howto/static-files/ and this: https://docs.djangoproject.com/en/4.1/howto/static-files/deployment/
kiran
is there any way to index the data to different foreign key values
kiran
When iam adding a data by refering to a foreign key i want to create an index value that shows its the first value created by refering to that foreign key..
Bharathi
Hi... Can anyone tell me how to use request object in models. Py
Beaty
Someone help how to deploy django app
Doragonsureiyā
Someone help how to deploy django app
No one can help you until you explain your difficulties.
Beaty
No one can help you until you explain your difficulties.
I have tried github but it is not working out,heroku still not working any alternative
Doragonsureiyā
I have tried github but it is not working out,heroku still not working any alternative
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Bharathi
Bharathi
How access to request object within models ? from django.contrib.auth.models import User Class Message(models.Model): message = ... user_id = models.ForeignKey(User) def save(self): user_id = request.user.id # doesn't work super(Mensaje, self).save()
Bharathi
When I try to capture and fill it in the field of currently logged in admin user's information It gave an error like no module named request
Venkat
When I try to capture and fill it in the field of currently logged in admin user's information It gave an error like no module named request
You can't access the request object directly in Django models as models are part of the MVC model and don't have access to the request. You can pass the request object as an argument to your model method and use it if needed.
Vaibhav
When I try to capture and fill it in the field of currently logged in admin user's information It gave an error like no module named request
You can't 😅 try creating a different method with takes user ID as input and create an object via that
Kh
Hi all, i restart celery beat and my active tasks disappear, how can i avoid this?
.
How access to request object within models ? from django.contrib.auth.models import User Class Message(models.Model): message = ... user_id = models.ForeignKey(User) def save(self): user_id = request.user.id # doesn't work super(Mensaje, self).save()
Based on what you’re trying to do, I’d typically implement that process by overriding the form save method because that can access request, instead of the model’s which can’t.
Sunnat
Hello i have a problem
Doragonsureiyā
Hello i have a problem
To share code or error tracebacks, use a pasting service, like: - https://linkode.org - https://dpaste.org
.
I want to add data from admin page
You can override admin’s create form I think
.
How
Read more about it here https://stackoverflow.com/questions/10040442/override-a-form-in-django-admin I don’t remember it on top of my head rn
Anand
hello folks, I am continuously having an issue with the django 4.1.5. It is continuously coming broken pipe error and I am unable to execute results over there
KD
Hey anyone how to create multiple user ?
.
Hey anyone how to create multiple user ?
Use bulk_create https://docs.djangoproject.com/en/4.1/ref/models/querysets/#bulk-create
vahiden
Hello guys Can create booking website with django?
The Inspired
yes
vahiden
My main point is, does django have high potential?
vahiden
yes
Thanks