Doragonsureiyā
raven
does anybody here uses django saleor ?
Mirco
Orack
can we send email verification
Orack
from django
Sencer
Orack
Anonymous
Yes we can! ;)
😂👌🏻👍🏻
Anonymous
how
search for it
it have to many tutorials
El
El
https://pastebin.com/42aGetgs
El
href="{% url 'admin' %}"
Orack
El
when I write the url in html it sends me an error and the path is correct
Orack
localhost:8000/admin/
Orack
in browser
El
Orack
Orack
so ip/admin/
Faisal
Orack
Orack
every person is using some different approach
Orack
i want to do it for api
Anders (izzno / gooood) 🇳🇴
Whats your favorite way (the best way) to add multiple images to a model ?
Mirco
Anders (izzno / gooood) 🇳🇴
hm...
Anders (izzno / gooood) 🇳🇴
Then you have more control over the pictures?
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
The collection is redundant you mean ?
أمجد☄
Hi, anyone knows how to make other paths display able when a user created by the usercreationform submits a field in a form of a page ?
Anders (izzno / gooood) 🇳🇴
model one to many with an Image model
How do you handle filestructure (one giant folder with no subfolders, or would you make picture model for each model requiering pictures)
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
My OCD need some sort of structure to the files 🥺
Mirco
Anders (izzno / gooood) 🇳🇴
ahh you mean use a function and return a path based on the instance passed to the function ?
Mirco
Anders (izzno / gooood) 🇳🇴
exactly
my man! ;) Thank you! Brilliant
Mirco
Orack
https://del.dog/rajesuxapa
Orack
i have this Record: to linked to /register
Orack
how can i add to make it confirm email like this https://del.dog/apomacixek.py
Mirco
django already has this feature when you reset your password so you can use its method
Orack
?
Mirco
Mirco
https://blog.hlab.tech/part-ii-how-to-sign-up-user-and-send-confirmation-email-in-django-2-1-and-python-3-6/
Something like this
Sander
How to host a Django application on a subdomain using Plesk?
Mirco
Sander
Anders (izzno / gooood) 🇳🇴
https://www.plesk.com/blog/guides/django-hosting-latest-plesk-onyx/
Anders (izzno / gooood) 🇳🇴
use python 3 not 2 (if it's not obvious)
Sander
Anders (izzno / gooood) 🇳🇴
Thanks
It's result 1 from googling: django on plesk
Orack
Orack
nicely explained blog
Orack
but here they use form = UserSignUpForm(request.POST)
Orack
i dont need that form in rest api
Orack
so how should i go on
Anders (izzno / gooood) 🇳🇴
the serializer does the validation in DRF
Anders (izzno / gooood) 🇳🇴
https://www.django-rest-framework.org/api-guide/serializers/#validation
Anders (izzno / gooood) 🇳🇴
form / serialzer tomato/tomAto
Anders (izzno / gooood) 🇳🇴
@pyflare What instance property do you use to seperate the pictures in different folder ? The model instance will be the same each time (a picture model)
Anders (izzno / gooood) 🇳🇴
(using the admin site that is)
Anders (izzno / gooood) 🇳🇴
I can solve this by writing an img model for each model requiering pictures hehe...
Anders (izzno / gooood) 🇳🇴
https://medium.com/@qasimalbaqali/upload-multiple-images-to-a-post-in-django-ff10f66e8f7a
Something like this wont work in admin i mean:
Mirco
Anders (izzno / gooood) 🇳🇴
No, while creating a product.
Mirco
No, while creating a product.
Ok so just create the product without committing, create images , link them to the product and the save with commit as True
Anders (izzno / gooood) 🇳🇴
we use the admin site to plot the api, hence when creating objects in admin.