(⌐■-■)
Hey. Can anyone tell me if is it possible to store multiple values in a django models field.???????
(⌐■-■)
Mahesh
Hi i want bakery management system in python django can anyone help me plzz
Apple🍎
Anas
Mahesh
Alex
Tell me why can't form_valid work in a class with FormView?
Omadbek
storing the url in a variable django?
Rafael
hey mates, who has few time for help on my task, it is a little bit, but i am a beginner, I have a one year experience with react
Maxim
Rafael
Nabin
Error ImmemoryUploadFile: object has no attributes 'temporary_file_path'
While validate video file duration in serializer
Nabin
Plz help me out
Alen
Mirco
Mihir
Can someone help me with authentication issue, i am unable to authenticate normal user after signup, i checked entire code everything is fine.
adilet
^[[A^C(LC_Menu) (LC_Menu) python manage.py createsuperuser
Email: admin@admin.com
Password:
Password (again):
The password is too similar to the email.
This password is too short. It must contain at least 8 characters.
Bypass password validation and create user anyway? [y/N]: y
()
{}
Superuser created successfully.
adilet
what's a problem why i can't create superuser?
🅓🅡🅔🅐🅜🅒🅗🅐🅢🅔🅡會(Inactive)
Maxim
Anonymous
hi
I use search input. I cannot extract data from another table and match it with search.
Anonymous
anyone would help me with django unit test
▀▄▀▄▀▄___🅃🅁🄼__▀▄▀▄▀▄
Doragonsureiyā
Tony
I have created an extend model 'Account' from the auth_user model adding an extra attribute called 'car'.
Now I want to use this with request.user
So that i could fetch the 'car' of the logged in user.
Thought request.user.Account.car would work but it doesnt!.
How to do this?
Maxim
Tony
Maxim
yes
in any case, it would be helpful to have much more details
Tony
https://stackoverflow.com/questions/4314068/extend-django-user-model-make-it-work-in-request-user-django-1-2-3 would this be it?
Kishore
Hi team,Based on permission i need to perform certain task in api in if else condition way. is there any way where can check permission of user instead of adding permission class??
Anonymous
How do I pull data from the table that a table depends on? in filter
SomeBody
how can I specify my fields for water in swagger, and not fields from the model
Anonymous
Hello, can someone guide me how to write bmi code with Django
D
How to delete previous image when user uploads new image in image field
Conditional elector of HRE
How to pass argument to jinja filter urlize?
<p>{{ i.answer|urlize(40) }}</p>
This code prints the error:
Could not parse the remainder: '(40)' from 'i.answer|urlize(40)'
D
I'm using Django to update user profile pictures, I have an ImageField in my model, the problem is that when the user updates the image field, the original image file isn't deleted from media folder
How can I delete the old images after an update?
Tanner
∆$¶u
Sumit
Hi, how can I redirect admin.example.com/ to /admin/ path in django
Sumit
using nginx and hypercorn for deployment
Sumit
Sumit
In localhost, when I am using path('',admin.site.urls) it is not showing the menu bar
Sumit
Luis
Luis
Let me show you an example for your case
Sumit
ok
Luis
ok
I uploaded the example to PasteBin https://pastebin.com/0vLZFx7s
Sumit
Can you please suggest me other method or a method to fix this?
Luis
That method is the safer one, so I guess you're hitting another issue...
Sumit
Yeah, may be, I don't know how it can affect the html and css
Sumit
Let me share before and after screenshot
Luis
Sumit
Luis
That might be an issue related to nginx settings
Sumit
No, I am running it on localhost, right now
Luis
Does your site load correctly if you use the DJango's development server? python manage.py runserver 0:8000
Sumit
oh, the issue commes with your suggested changes
Sumit
Otherwise everything was fine
Sumit
I am not able to understand how url redirection can create the appearewnce issue
Luis
OMG! Sorry about that, but the RedirectView shouldn't break anything
Sumit
Luis
Oh hahaha that's great!
Sumit
Thanks for your suggestion
Luis
Anytime!
Abrar Abu
∆$¶u
Pavel
Good day! We use the Django Dropzone + requests.POST firing the request to Integromat webhook to upload files for homework to Google Drive and get download URL. There are only three links in the chain in Integromat (custom webhook (url) -> google drive (upload a file) -> webhook response). What convenient libraries can you advise to get an alternative for these webhook on our local machine?
GLuko
UNIQUE constraint failed: oauth2_discorduser.username
when I try to login all works fine
but when someone tries to login and redirect
have this error
GLuko
my model : https://pastebin.pl/view/34a138fb
Maxim
Maxim
Maxim
GLuko
so I should user = self.get_or_create but not user = self.create_user?
Artem
Hi, can anyone help me with setting GitHub actions for testing with pytest? Testing works fine on my computer when being in the folder where the manage.py is. But GitHub actions return an error saying that pytest cannot find the project and manage.py. I tried to fix it with pythonpath, as that is said everywhere I have googled, but since I don’t really understand what to do, and just keep guessing, I cannot solve it.