(⌐■-■)
Hey. Can anyone tell me if is it possible to store multiple values in a django models field.???????
Doragonsureiyā
Hey. Can anyone tell me if is it possible to store multiple values in a django models field.???????
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
(⌐■-■)
Anton
Like amounts = models.IntegerField() Amounts can be [1,2,3,4,5]
https://docs.djangoproject.com/en/4.0/ref/models/fields/#jsonfield
Mahesh
Hi i want bakery management system in python django can anyone help me plzz
Apple🍎
Like amounts = models.IntegerField() Amounts can be [1,2,3,4,5]
Use ArrayField, but you will have to setup postgres first
Mahesh
Hi i want bakery management system in python django can anyone help me plzz
Plzz help if anyone have video referrence or somthing plzz
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
Rafael
Nabin
Error ImmemoryUploadFile: object has no attributes 'temporary_file_path' While validate video file duration in serializer
Nabin
Plz help me out
Alen
You must use abstract user or abstract base user as base classes
Isn't it possible with extending the user class ?
Mirco
Isn't it possible with extending the user class ?
It's not the right way Read the documentation
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?
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ā
anyone would help me with django unit test
Not until you explain your difficulties.
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
yes
in any case, it would be helpful to have much more details
Tony
in any case, it would be helpful to have much more details
so if everything had been good then should this have worked? i mean 'request.user.Account.car'
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
Doragonsureiyā
How to delete previous image when user uploads new image in image field
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
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?
Sumit
Hi, how can I redirect admin.example.com/ to /admin/ path in django
Sumit
using nginx and hypercorn for deployment
Luis
Hi, how can I redirect admin.example.com/ to /admin/ path in django
You can use Django's RedirectView for that, but for performance, I think it's better to create a rewrite rule on Nginx config. I'm sure there are lot of examples in Google
Sumit
In localhost, when I am using path('',admin.site.urls) it is not showing the menu bar
Luis
In localhost, when I am using path('',admin.site.urls) it is not showing the menu bar
https://docs.djangoproject.com/en/4.0/ref/class-based-views/base/#redirectview
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
I uploaded the example to PasteBin https://pastebin.com/0vLZFx7s
It works, but with a very distorted view, I am using django-baton
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
Yeah, may be, I don't know how it can affect the html and css
Did you run python manage.py collectstatic command?
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
OMG! Sorry about that, but the RedirectView shouldn't break anything
Sorry, after restarting it works magically !!😃😛
Luis
Oh hahaha that's great!
Sumit
Thanks for your suggestion
Luis
Anytime!
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
my model : https://pastebin.pl/view/34a138fb
the code where the error occurs is needed
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.