Anonymous
How to delete model
Anonymous
In django
Mirco
Call delete()
Anonymous
How in shell
Bekzod
How in shell
# Let's delete one of the choices. Use delete() for that.
>>> c = q.choice_set.filter(choice_text__startswith='Just hacking')
>>> c.delete()
User
How can I compress an image to 100x100 right after it is entered into the database via ImageField? If there are no such tools in Django, then how to process it through Pillow and place it in the model without piling crutches. Thanks for the answer.
User
Everywhere it is recommended to resort to the excess size exception, but this is wrong.
Mirco
User
You can describe my action plan? I do not yet fully understand how signals works, and therefore I need to be given a slight direction.
Mirco
You need a post save signal to compress your image by using pillow
Mirco
The signal is raised by the model you are saving
Anonymous
Hi
Please I have a question
How can i add icon informations for every input texte in admin
, so to help user khnow what's mean this input so the texte information will be showen after Hé click thé icon.
Best regards
Mirco
Use help texts
Anonymous
Hi mirco
Thkx for your answer
It show icon ?
isa
I have requested a jpg image file with "urllib.request.urlretrieve(yazar_resim_link, "static/img/yazar/"+"alpertas33")"
isa
Requested jpg file is normal and be seen on browser with the link. And the file name will be saved is normal but I have "HTTP Error 403: Forbidden" error and it seems to be an interesting error
Lelouch
I am done with basics
Like
login signup
Authentication if user signed then login
What should i do next......
Mirco
Lelouch
Mirco
Nope, everything
Anonymous
Anonymous
And a blog
cj
Anonymous
My django-cartride ecommerce site keeps on telling me
ERRORS:
<class 'main.admin.HomePageAdmin'>: (admin.E012) There are duplicate field(s) in 'fieldsets[0][1]'.
Any solution guys
Anonymous
😂😂😂
Anonymous
Muflone
I want to pass a dictionary object to a template with two or more values per key
{'key': [1, 2]}
is there a better way to read it from template apart using a custom template tag?
Anonymous
{% for val1, val2 in dic %}
Muflone
uhm.. let me try it
Muflone
it worked using
{% for val1, val2 in dic.items %}
thank you
Anonymous
Anonymous
I m not able to import requests . What should I do
Muflone
Muflone
Anonymous
'WSGIRequest' object has no attribute 'post' error how I can handle this
Mohamed
https://mydjangoconfess.herokuapp.com/
My initial work need your comments
Dexter
Can anyone suggest good reference for appointment application in Django for my college project
Panji
Dexter
Panji
Most welcome
Anonymous
Ye guys, need a little help
Anonymous
I've a model of let's say "Articles" that has as a M2M field "Tags"
Anonymous
Now I want to search for Articles that have any of the given tags a user is searching for (#love, #tech, #family etc), can be multiple too
Anonymous
How will my query look like?
Salohiddin Yoqubov
Although I created a custom template for Django allauth, the enviroment is getting a template inside
Salohiddin Yoqubov
Manavver
Gm guys! I have a website on Google , I took the domain from GoDaddy and host on heroku , now I want to add some more pages and want to edit some existing pages. So how can I do that. Plz help
cj
Manavver
Yes
cj
Yes
then change the code to add/edit the things you want, that's all 🤷🏻♂
Manavver
I think I want use heroku cli then I can change.
cj
Anonymous
Anyone have any project “ how to serve django with react “
Taku
Iam new to django from where I can learn djanho?
Mirco
Taku
Thanks😊
Anonymous
Anonymous
How can i use session deletion from a logout button?
Anonymous
Because i am redirecting it to login page and back button returns it to the session again
Doragonsureiyā
Where i can find this?
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box write down the same words you asked here
Step 4: Read the firsts results
Anonymous
What is Django-Girls??
Anonymous
Use??
Mirco
It's a group
Anonymous
I got a problem with django cartridge ,please who has use it before
Anonymous
Hello everyone
I am begginer in django. I am trying to build app by referring "django project.com". I have done all operation but i am not getting the questions in that form. In admin.py i have already mentioned "admin.site.register(question)". After doing that part of questions is not visible to me. Please help me to figureout where i did wrong.
I am referring this link for practice. And also doing the same project which is present in that site.
https://docs.djangoproject.com/en/3.0/intro/tutorial02/
Abhinav
Is there any selenium python group?.. I have some doubts related to selenium language.... Or i can ask here??
Anonymous
Here is my admin.py code
from django.contrib import admin
from .models import Question
admin.site.register(Question)
sm
Did u add app_name in setting.py (installed apps)
Anonymous
Yes i have added that
Anonymous
In this group,you guys are not nice
I have a problem in django ,I have been posting my questions here no one seems to reply ,when I post my code the admin always remove it