Random
Remove them
But i need the for all other stuff common every where else signin
Random
Can anyone help !
Ukrainian (Yaros) 🇨🇦
Hello, is “x” in this example a list or a list item? https://dpaste.org/u7F7
Ukrainian (Yaros) 🇨🇦
Random
How can i get it other than %block %
One solution is that i can create another base kind file for nav bar
Random
But fell error , extend can only be used once
Random
Ok i did a thing
Random
I removed navbar from base , the created seprate nav-base. And extend it with base
Random
So i have nav-base html containing base and nav both
Random
And now i can use nav-base for areas where i need nav bar
Kratøs
I guess that's right but it does your work
Kratøs
👍
Random
So i it a good option ?
Random
It works
Kratøs
For now, Yes
Kratøs
Until you find something better
Random
Me working for a blog web
Random
Learning
Kratøs
👍
Random
Until you find something better
Ya the will be a better way still
Random
But will see later
Random
Ok {% include %} option is better one
Yash
Hey I'm new in django rest framework
Yash
Can anyone tell me what does self and request does in parameters of a function?
Safa
Can anyone tell me what does self and request does in parameters of a function?
You should learn Python before doing anything with Django.
kg
Hey can somebody please help me
kg
I m running some errors
kg
And need help to verify my code
Doragonsureiyā
Hey can somebody please help me
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
kg
Okay thx guys
AK
people knowing django channels How can I get the channel instance by its name? or How can I access its scope?
Ukrainian (Yaros) 🇨🇦
What does this feature do? https://dpaste.org/u7F7
Omar
How can i add this section at django https://justpaste.it/30cbx
Praksh
How can we get seperate domain of the website which we created in django?
Jamil
hey guys, how can i catch data like id from url in django rest framework
Jay
How can i add this section at django https://justpaste.it/30cbx
https://django-tinymce.readthedocs.io/en/latest/installation.html
Rohan
request.GET.get("id")
request.query_params.get("id")
Mirco
request.query_params.get("id")
This is true for query params But for path params, they will be inside kwargs
Rohan
This is true for query params But for path params, they will be inside kwargs
True, I just couldn't see that ugly GET and POST
Rohan
hey guys, how can i catch data like id from url in django rest framework
Depends if that id is embedded in URL or a query param
Rohan
Like api/data/1 or api/data?id=1
Akshay
I have to validate a jsonfield in django, {adopt:[{a:val1, b:val2<int>},{a:val3, b:val4}]} I have written a form with field adopt as char and in its clean method handling the nested array, but somewhere I feel there is a better approach which I am missing. Can anyone help me with how should I validate the nested fields as well. Validation required is mainly of field data types
Akshay
I'm using django 3.0 hence could not use the jsonfield of django 3.1
Mirco
I'm using django 3.0 hence could not use the jsonfield of django 3.1
There's no differences The big difference is that the JSONField in 3.1 is part of the core and cross db supported
Akshay
The data is coming from one of the micro service, and I have to perform some aggregation on the data stored in database, just wanted to verify the data coming from the service before touching db operation. So I thought of an approach where I can validate data by parsing the list. But seems like not the correct approach
Tush
404
http://dpaste.org/56Bs
maroong
http://dpaste.org/56Bs
404. Use paste.pythondiscord.com
Shubham
hello guys I have a concern
Shubham
https://dpaste.org/Gpj4
Shubham
hello guys i have created a list API, its giving null in browser but working fine in python shell
Shubham
HTTP 200 OK Allow: GET, POST, HEAD, OPTIONS Content-Type: application/json Vary: Accept [ { "days": null, "meal_type": null }, { "days": null, "meal_type": null }, { "days": null, "meal_type": null }, { "days": null, "meal_type": null }, { "days": null, "meal_type": null }, { "days": null, "meal_type": null }, { "days": null, "meal_type": null } ]
rasta
Hello Someone has worked with graphene? Trying to make filter+pagination
Doragonsureiyā
Hello Someone has worked with graphene? Trying to make filter+pagination
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
Shubham
then how to handle it?
Shubham
do I need to override list(), I did that
Shubham
?
Swapnil
I have some issue I wanted send mail when customer is registered on website And also save that data into the db data saved in db ,but email is not send to that user Page also can't redirect to another page
Anonymous
Does anyone here know how to change lookup_field in django rest framework viewsets?
Anonymous
Whenver we create a viewset and we peform get operation by primary key we get the data related to that pk
Anonymous
For example api/Cars/1
Anonymous
Will give car with id 1
Anonymous
I want differemt lookup field which will be unique
Anonymous
For example for users how to get lookup on different field example api/Users/<user_email>
Anonymous
Does anyone know how to do this?
Anonymous
I looked up stackoverflow, and found that we can add lookup_field in serializer and respective viewset class
Anonymous
But doesnot work for me.
Anonymous
Anyone?
Anonymous
I found the answer
Anonymous
Thank you everyone
Praksh
One*