Allexiusw
I'm working on windows
Or gitbash which has support to source and .
محمد دلشاد
hi @dilshad_i_am can u suggest me on the pop -up bro how to pass the value in modal from the template
listen in ur views.py before rendering add messages.info(request,"Data you wanna send") in ur template check {% if messages %} "modal codes" {% for message in messages %} {{message}} {%endfor %} $("#modal").show() {% end if %}
Sam
is it a good idea to replace redux with graphQl ?? if i am using Django framework with react
Sam
isn't graphql works like context api..
Mr
I have a project on django anyone wants to work with me becouse im not good in django
Muslim
isn't graphql works like context api..
Redux is about state management, nothing about api at all
Sam
Redux is about state management, nothing about api at all
i am agree ... but i have seen multiple projects where developers haven't used redux instead they were using graphql + apollo
Sam
So for new project what would you recommend me to do.. Should i use redux and graphql together?
Muslim
Use what u need and first read docs and why to use it, not because “someone used it”
Sam
give me a minute
Sam
Take a look at this beautiful project .. They are not redux at all .. Why? https://github.com/mirumee/saleor-platform
Sam
https://github.com/mirumee/saleor-dashboard/blob/0d9f8662299a98de4c89bbdf5b8142a0e1790bc7/package.json
Sam
i am confused with this tech stack..
Muslim
i am confused with this tech stack..
U should learn first, not to think about other people’s choice
Sam
i already have take hours of course
Sam
i have my own react redux based website
Sam
i have worked lot on django
Sam
but i am considering about merging these two beautiful teach
Sam
tech*
Anatoly
Hey guys, I try to add Comment model with ForeignKey referenced to TranslatableModel of Post. When I try to add Comment model to the admin list I get the error "Accessing a translated field requires that the instance has a translation loaded, or a valid translation in current language (en) loadable from the database". Maybe someone know how to fix it?
Zokir
Hello. does anyone use hosting jino.ru ?
Јован
Hello, what's your take on using the Django admin for end users of more than 10000? Should I rather build with a rest framework and use Javascript on frontend?
Јован
As a staff user or some custom role.
Eddie Young Jnr
Can anyone help me? I need Django 3.1 video tutorials
The Captin
As a staff user or some custom role.
It seems your application is an internal app for an organization. 10000 is not a big number. You can go with rest framework but it will take you time because u will have to implement the admin site functionality by u r self.
Islomjon
RichTextUploadingFormField() does not migrate ??
Islomjon
but RichTextField() is work
Sh
Assalamu alaikum. How to insert only year in dateField?
Hello
Hi can anyone tell me how to crate bulk user in django by admin pannel please help me if you know this
Anonymous
hi is there anyone who can help me to start django? what can i do after this "is not recognized as an internal or external command, operable program or batch file."
Doragonsureiyā
hi is there anyone who can help me to start django? what can i do after this "is not recognized as an internal or external command, operable program or batch file."
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Арам
hi! who worked with redis?
Doragonsureiyā
hi! who worked with redis?
Please 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 a very high amount of people here the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
M
listen in ur views.py before rendering add messages.info(request,"Data you wanna send") in ur template check {% if messages %} "modal codes" {% for message in messages %} {{message}} {%endfor %} $("#modal").show() {% end if %}
hi init i am just using simple function views no modal yet .. my url.py has ` url('home/',views.home, name='home'), ` url('home_live_update',views.home_live_update,name='home_live_update'),
M
hi sorry some part of message was not sent due to internet issue. i just wanted to render the recent data from db to page .. for now it is like untill i don't restart my server new data not getting updated and keeps on displaying same data always .. i searched a lot on google and all says ajax use but i can not find any working example to do so one of post says that you render first time through home view function and then next call another view function through ajx to get data updated every minute but i can not get how to do so
Anonymous
hello guys datefield widget dateınput how can ı translate ??
M
Restarting server or reloading the page?
The context is not getting re intialized with new data ..so even if I reload page data rendered remains same I checked and it loads fresh recent data only when I restart server
Bunty chhatri wala..
Seems a new thing for me.. didn't faced this type of issue.. As per my info Data can be rendered without restarting the server
M
Seems a new thing for me.. didn't faced this type of issue.. As per my info Data can be rendered without restarting the server
First time it renders but my requirement is like My view takes data from db and data in db gets updated every 5min. I thought if I refresh Page new data( which updated in db will come always ) but page always showing data rendered on first time load
Bunty chhatri wala..
There might be a bug in your code..
M
Ok let me show sample
Mr.m
How to auto add new fields into choices
Mr.m
Im making quiz project.....I want only once a question to be present in data base....but it should be able to take into different exams .....
Mr.m
1.In quiz app I have multiple exams ....... 2.for every exam there are some different subject and common subjects.... 3. So exams having common subjects.... Should use same objects in database and should able to take that.... Can anyone give me idea. How?????
R.U.S.H.A.B.H
Does anyone know easy trick for transferring django web app > android app
R.U.S.H.A.B.H
If anyone has idea then share
ᴹᵃᵏˢᵃᵗ
Does anyone know easy trick for transferring django web app > android app
I guess all android apps required sdk tools. That's all :)
R.U.S.H.A.B.H
Ruvreolu 👀
Hi, i need ur help in making an api. I need to add some data onto a website, and want to build an api for that how can i do that? Any reference link or tuts would help. Thanks
Xeyyam
İ always get multivaliekeyerror at post method
Xeyyam
How you fix this?
Xeyyam
Nobody know this?
Marcos
İ always get multivaliekeyerror at post method
this is because your filters matchs with more than one record in database. id=11, name=Jack, last_name=Table id=27, name=Jack, last_name=Collins # this one will give you multivaluekeyerror User.objects.get(name='Jack') # this one will give you the first record that matchs that would be the id=11 User.objects.filter(name='Jack').first()
cj
How you fix this?
check your database... your query is trying to get one object with a given key but there are many results that fits that filter or there is already an object with the same key you want to save on your post operation
cj
Nobody know this?
...and be patient, people are not 24/7 here and are not obliged to answer everybody messages 🤷🏻‍♂️
Mr Intruder
How to learn django , i mean from Which platform??
Mr Intruder
From official website or from youtube or udemy?
Doragonsureiyā
How to learn django , i mean from Which platform??
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Mr Intruder
Thanks
Shubham
https://dpaste.org/KoH4