Mehmet
nope. if a product owner deletes a product iy should not get delte from customer
But flagging solution may start complex model relations in master detail(kinda ad hoc) queries, such as child entity should not be shown if master is not visible.
Mehmet
You should be aware of that, shortly you will simulate foreign key cascades with manual queries based on flags.
Anonymous
then whats the correct way to achieve this
Anonymous
go to no sql?
Mehmet
No, relational DB is great enough to simulate this cascades. I just wish to warn you to be aware of that. Basic ER diagram tools such as Dbeaver builtin ER diagram tool will help you to plan business logic.
Anonymous
Can someone guide me,, I know basics of django,, where do i start
std::abushka
django 2 or django 3 ?
Doragonsureiyā
Can someone guide me,, I know basics of django,, where do i start
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
DonLarry
I'm new here, I want to learn more about Django and improve my english skills. Do you think this is a right place to do that?
Yesu
Is there any way to redirect the user to some URL if authenticated
Yesu
Other tha redirect ()
Yesu
*than
Yesu
??
Ram Kumar Shukla
How can we store image of any size in database and which model field should we use?
Mehmet
For both questions above I am answering, research on ImageField
5P34R
Yes
5P34R
Got it
Mehmet
ImageField uses Pillow to process, you can use pillow module to resize and decrease compression quality.
(USMON)$
Djongo hosting ?
Arbaz
Djongo hosting ?
You can use pythonanywhere and heroku
Kuldeep
Is there anyone who help me to build a website using Django??
Mr
Which one is best... Angular js React js Vue js For frontend language with flask and django
Mehmet
There is no best. Select one and start learning.
Intrepid
How to start Django and which tutorial is good to follow?
Doragonsureiyā
How to start Django and which tutorial is good to follow?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Mr
There is no best. Select one and start learning.
But according to market which one is more used and best
Intrepid
👍
Anonymous
But according to market which one is more used and best
There is no best, it depends on the developer
Intrepid
Which one is good framework to get a job as soon as possible Django or flask?
Intrepid
So please tell me road map for getting a job as python developer
Mr
So please tell me road map for getting a job as python developer
Python Data science library Maths Stats Machine learning Deep learning Create project
Jai
I have a model Students. They need to have subjects(they may be between 4-6). How to get variable number of fields in models?
Tejesh
Can anybody tell me how do I add a form from other app in Class Based Detail View
Wannabe
Can anybody tell me how do I add a form from other app in Class Based Detail View
override the get_context_method of DetailView.. or you can use function based views too..
Wannabe
all you have to do is pass the form as context.
Ashish
when i write "os. path. join" it shows error- os not defined and when i introduce import os then the content disappear in server screen. Please help with the problem and possible diagnosis
Tejesh
Can anybody tell me how do I add a form from other app in Class Based Detail View
I saw FormMixin but can't figure out how to exactly put initial data in it
Jamil
nsert or update on table "django_admin_log" violates foreign key constraint "django_admin_log_user_id_c564eba6_fk_auth_user_id" DETAIL: Key (user_id)=(2) is not present in table "auth_user".
Jamil
How to solve this error ;(
Jamil
i try updating something from admin panel
Jamil
and it no work
Tony
Why doesn't the normal view class doesn't support mixins but generic views does?
Dheekshith
Hello can anyone help me with sharing some tutorials to saleor plz
Anonymous
Why doesn't the normal view class doesn't support mixins but generic views does?
You can use for function based views. And mixins for class based views
Aman
Can anyone plz help me to create a register and login page using Django rest api means output shld be in Jason format and also I have to add a countdown timer to that page after user logged in.
Aman
I have this question pdf version if anyone wants I can send you
Jay
Can anyone plz help me to create a register and login page using Django rest api means output shld be in Jason format and also I have to add a countdown timer to that page after user logged in.
Check django rest auth which is a wrapper over django all auth if you need social logins otherwise you can use rest framework for this.
isa
There is field.choices in model field. I wonder if it is possible to choice multiple selection from this list of choice? Any idea?
isa
Because I need to have multiple choice
isa
There is no info on Djangoproject site regarding this matter
isa
I asked only for models
isa
This is for forms
Astrapel
I asked only for models
You don't need that, you can make multiple selection and send over to model ? why do you need "some sort of "multiple selection model" ?
isa
Because I am scraping the data and record not through a form but directly to the model. How should I describe the model field? As Field.choices?
Syanty
There is field.choices in model field. I wonder if it is possible to choice multiple selection from this list of choice? Any idea?
U should see on OneToMany relationship Test it in admin site where u can add multiple values
isa
OK thanks 😊
Syanty
Test it If it works for you then i ll be glad too 😜
Anonymous
hellow guys , djnago swich language button css very bad how can ı fixed ?
Anonymous
By adding your own css
how can ı do ??? and wher
Anonymous
<form class="d-flex flex-column" action="{% url 'set_language'%}" method="post">{%csrf_token%} <input type="hidden" name="next" value="{{redirect_to}}"> <select name="language" id=""> {% get_current_language as LANGUAGE_CODE %} {% get_available_languages as LANGUAGES %} {% get_language_info_list for LANGUAGES as languages %} {% for language in languages %} <option type="submit" value="{{language.code}}" {% if language.code == LANGUAGE_CODE %}selected="selected"{% endif %}> {{ language.name_local }} </option> {% endfor %} </select> <button type="submit"><div class="button text-center"><span>Dil İeçimi</span></div></button> </form>
Yash
I want to connect Django with aws so that when ever a user upload an image it goes to S3 and later can be fetched . Any anyone tell how to do that ?
Darth✧
Anyone who have deployed django channels in production ?
Yash
Can whitenoise be used to serve media files any how ?