Tonana
0level for all)) could choose whatever
Tonana
Had use mix of inline css with bootstrap)
Mirco
There's no difference Django side So you are free to choose the one u like more
Tonana
I had an analysis and now really like Vue3 more than Angular or React through amount of metrics. But that about Svelte, it's kind of different things.
Anonymous
hey, im struggling with my code, hope you can help me. The thing is I need to have a model with some options (with a select widget) and an option 'Other, specify', and of course showing a new field for the user to input custom data. That data is going to be sent to an api later on, how can I solve it ?
Богдан
which frontend framework has most vacancies with Django?
Mirco
which frontend framework has most vacancies with Django?
Vue is taking much more place than React but honestly I don't know the status of vacancies I don't think it's really matter for a backend position
Anonymous
I have a model in which one of the fields is a choice field. One of the choices should be 'Other' and when selected a new field should appear with free user input. When the user sends the post request, that input should be stored in the model
Anonymous
https://pastebin.com/vyBWR003
Peter
https://pastebin.com/vyBWR003
employ the post_save signal , the sender argument would be the model whose fields are displayed in the form that triggers POST http request. for more about https://docs.djangoproject.com/en/3.1/ref/signals/
Anonymous
Ty, I will try that!
Droll55
Hi! I want to hide link 'edit' for all users except the event creator. Can someone help me, how and what should i do for that? my code: https://dpaste.org/QoPJ
amrsunja
Hi any body now, how I can create one form for multiple models in django?
Droll55
Just compare request.user with event.creator
Do you mean {% if request.user == event.creator %} in template ? It does not work :(
Mrgl
Is there a creator?
I mean in model
Droll55
here is the creator: host = models.ForeignKey( get_user_model(), on_delete=models.CASCADE, related_name='events', )
Mrgl
request.user==event.host
Mirco
request.user equals to event.host should work
Droll55
Oh guys, i understood. Thank you a lot!
Mrgl
But you need to have a serverside check too
Mirco
Oh guys, i understood. Thank you a lot!
Yup, u need a permission on object API side
Mirco
Otherwise it's hidden on frontend, but accessible by everyone if someone can find the URL
Droll55
Ok thanks a lot! I will read about the API side and will try to fix it.
Mrgl
https://www.django-rest-framework.org/api-guide/permissions/#examples here you go
Mrgl
Exact problem in examples
Mrgl
https://www.django-rest-framework.org/api-guide/permissions/#examples here you go
Nevermind, I just noticed that you are making template views, not DRF. Just have the check in get_object() method.
Droll55
Ok, yes, i dont use drf for this project, but it will be nice to read. Thank you
Anonymous
Guy how "abstractuser" sign up form rest api
Anonymous
Guy help me.
Savan
Which library can be used for detect any unknown language text from image Directly from image without converting it to text
Arslan
Try OpenCV python library
Arslan
https://towardsdatascience.com/read-text-from-image-with-one-line-of-python-code-c22ede074cac
Savan
It is converting any language to English but not returning actual language
amrsunja
If means custom log in?
no I mean anymodels for example model A .. model B: foreinkey(A) and after how I can create one form for this models in a templates?
Vinay
Guys anyone help me to create a login system in django
Anonymous
Guys anyone help me to create a login system in django
https://docs.djangoproject.com/en/3.1/topics/auth/default/
Anonymous
Mirco
Guys anyone help me to create a login system in django
it's already built-in with Django
Vinay
Normal django
Vinay
I’m using abstarctuser model
Vinay
Hw to do it
Anonymous
Here documentation refer https://docs.djangoproject.com/en/3.1/topics/auth/default/
Anonymous
Add this INSTALLED_APPS "django.contrib.auth"
Anonymous
Django Tutorial Part 8: User authentication and permissions - Learn web development | MDN https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Authentication
Anonymous
Normal django
Refer a while you can do it😊
Someone
Hi, I am trying to use django-import-export for csv import into models. I am using uuid as import_id_field, however everytime when i upload the same file again it creates duplicate entries instead of showing no update. Have anyone faced similar issue?
Vinod
Hi I am using ladap authentication django login ,and from my site I am navigating to another site and it is also use same LDAP authentication ,now want to implement single sign on
Vinod
How can we do that
J
Plz send me pdg django ORM concept
ㅤㅤㅤ
django.core.exceptions.ImproperlyConfigured: Using i18n_patterns in an included URLconf is not allowed.
ㅤㅤㅤ
help
Ds
What is integrity error???
Ds
Can anybody help
😇ANGELO™️🎧
Can anybody help
It has something to do with your database connection. What database are you using please? Anytime you update the database kindly run the python manage.py make migrations Migrate command 🤗
👤👤👤
Hello how to user login with django rest api?
Akhil
Can we migrate postgre SQL data to SQLite
Kevin
Hello guys is there way to make add to cart functionality in django without using javascript can you please help me
Kevin
Ok
Pratik
i have receive Request.data None when multipart/form-data
Ds
Hii I am a beginner, is there anyone who can help me personally???
Doragonsureiyā
Hii I am a beginner, is there anyone who can help me personally???
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Ds
Why
cj
Why
because you don't know how to read