Nick
I can't find it
Yuvraj
Just send the props
Nick
React
I dont know react
Nick
any link related to this?
That's why asked for this
Yuvraj
Search for how to make reusable components and also props type in youtube
Yuvraj
Let me send you one liknk regarding this
max 17
what is this syntax? can someone explain? [ {**attrs, **kwargs} for attrs in self.validated_data ]
Yuvraj
Search for using props in react
Anonymous
any link related to this?
just search for react, angela yu or brad traversy courses or react.org documentations
Anonymous
what is this syntax? can someone explain? [ {**attrs, **kwargs} for attrs in self.validated_data ]
this syntax called list comprehension. also learn dictionary comrehension
Anonymous
it is very useful syntax
Nick
How can i show the code?
Anonymous
I am facing one more problem
what is the problem
Anonymous
Nick
screenshot
Cant share media
Nick
screenshot
Should i share it in pm?
Doragonsureiyā
screenshot
Read the rules before any activity: @PythonRules
Doragonsureiyā
Should i share it in pm?
We know the rules are quite long, but read them, because on average, hundreds of users are banned from this network every week. Reading the rules will help in avoiding this pitiful fate.
Nima
hi I have multiple users and multiple databases model each model has a field “foreign key” that relate it’s data to specific user now in django admin, I want user to edit only the data that is relate to himself ! can anyone help me?
Vadim
just search for react, angela yu or brad traversy courses or react.org documentations
But using react with Django, it's about 90% of code will be in js and react syntax, and only about 10% django, or not?
Rangarajan
I'm working on a DRF project. I need to creat API to send and verify OTP for the given number. For example, the API needs to take the phone number as the data and return an OTP number. After, If I send the OTP and phone number to the verify OTP API, it needs to verify the OTP and send a token if the verification was success I have looked Twilio but does Twilio provide API to generate and Verify OTP? And is there any other best service for this?
karakurt
My url paths contain cyrillic slugs. I used them to query objects. All worked fine, but when I deployed the project I faced 404 error. And when I printed out a slug, I saw something like %534%%43%54%432 etc.. But on my local machine I saw женское Where should I look for solving this problem?
karakurt
Hello
beget.com
Connect by ssh to server and check it if locals is there
karakurt
Connect by ssh to server and check it if locals is there
I'm connected, but I don't know the commands
karakurt
Unfortunately
Hello
I'm connected, but I don't know the commands
RUN sed -i -e \ 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen \ && locale-gen ENV LANG ru_RU.UTF-8 ENV LANGUAGE ru_RU:ru ENV LC_LANG ru_RU.UTF-8 ENV LC_ALL ru_RU.UTF-8
Hello
this is from my dockerfile, you can run this commands on your server
karakurt
RUN sed -i -e \ 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen \ && locale-gen ENV LANG ru_RU.UTF-8 ENV LANGUAGE ru_RU:ru ENV LC_LANG ru_RU.UTF-8 ENV LC_ALL ru_RU.UTF-8
Thank you very much. I used urllib.parse.unquote method as a temporary solution (needed ASAP fix), but I'm gonna save your commands.
shelby
I made a django project and inside it I made an app called omegle. So to update the urlpatterns. I wrote my path *path(' ', include('omegle.urls')) But always errors are generating Why is it can anyone explain it
shelby
It saying Circular import error
Vadim
This path in project urls or in app urls?
shelby
shelby
☺Thank you
Code
How to get user data from Twitter V2 api help of tweepy with out knowning any lookup field only help of access_token_key and access_token_secret in django rest api
Christian
Good afternoon. I have a problem with a custom action with detail=True in a ModelViewSet that has an UUID as lookup_field. When I request to the endpoint with the UUID in the route it returns 500 and {}. If I change the action to detail=False the endpoint works fine. Anyone know what might be happening?
Gopinath
I dont want to create same html pages for every link
I think this can be done through base html template...not sure...can some one confirm on this?
Knowledge
I think this can be done through base html template...not sure...can some one confirm on this?
you are right.. but i think additional requirement is that this should happen within same url.. this is not possible with template alone. this needs to be handled at client end by calling new objects for which react or angular might be helpful
Gopinath
Can anyone help me to fix this
What is the error you got?
shelby
Circular import error
Gopinath
Pls send full error msg got...
Knowledge
also ensure you have url file with valid path in your omega app and it is by default not referring to path in project url
Jet
Circular import error
I am not sure about how your code flows but I will explain a circular import error in general. Imagine having files A, B, C. Then A imports B and also B import A, that’s the first scenario. Then also when A import B, C imports B and A also imports C, this can go on. The program can fall import an import loop which it will exit unless throwing the circular import error. Solution: terminate the importation by aligning the common code in one file, to my case when the code will be common to most files, I put it in modules.py of each app, and there every app can use it
Jet
Your qtn is more general, but all in all, place all your credentials in .env and don’t push it along, make sure your project’s debug=false ....
Anonymous
There millions of free deployments
Anonymous
vercel.com
Anonymous
netlify
Nick
With base template we can use extend but it won't send data through database for diffrent id's
IZUKU
How can we pass Same item info in threee pages like user profile then its details then its history Or video list then video details then video watching page
IZUKU
:( hemlp
Knowledge
What realtionship in model
you will have to process the logic in respective views. eg. in profile view gather all info you want to display and pass it as context in response. i details view gather all info you want to display and pass as context i response
IZUKU
you will have to process the logic in respective views. eg. in profile view gather all info you want to display and pass it as context in response. i details view gather all info you want to display and pass as context i response
Yeh i understand that part but which realtionship do i need in models to connect all views like John and i passed john details Then in details i need his history and in history i want more something So how can i maintain a single id passing chain
Knowledge
it will vary but i prefer one to manay relationship John can have many history history can have may activityes so define class user first then history with user as foreignkey then third class with history as foreign key
Knowledge
excuse my typos as i am using mobile
Doragonsureiyā
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Rustambek
I am using select related ans preferch related. And it is not reducing the number of queries to DB has such thing happend you?
Rustambek
I now ll share the code
Sakshi
Actually the problem is when I import main file in test.py file ..It's showing an error like import 'main' could not be resolved and because of this I m not getting an output