Mirco
Anonymous
Hey. Is it possible to edit the model directly in django admin?
I found the django-eav package, but i think this is not exactly what I need :P
I want to make a model (TodoList) whose options will be edited in django admin. I want each TodoList to be associated with a every user, but the list is set globally
The best way to do it?
Sumit
Hi, I am using graphql with django and wants some mutation and query for authenticated user only, how can I do this?
Sumit
Sumit
It is a very young Library
Rup
i want post url link to connect my angular front end. but now i am making post from django admin panel. so not getting it how to do. can anybody help?
Doragonsureiyā
Sumit
Sumit
But I don't know how to protect any query for authenticated user for any library
Sumit
What I know is this
cj
Sumit
https://docs.graphene-python.org/projects/django/en/latest/authorization/
Sumit
But in this library it is said to protect the url for authenticated user
Sumit
cj
cj
you just have to learn how to follow docs ¯\_(ツ)_/¯ that's all
-_-
class Orders(models.Model):
buyer = models.ForeignKey(User)
name = models.CharField()
order_code = models.CharField()
class Items(models.Model):
order_parent = models.ForeignKey(Orders)
product_item = models.ForeignKey(Product)
price = models.DecimalField()
class Products(models.Model):
name = models.CharField()
seller = models.ForeignKey(Seller)
price = models.DecimalField()
class Seller(models.Model):
name = models.CharField()
Is there anyone know how can i get a list of all orders from particular seller, it is in deep query,
from orders, there's a lot of items involved and not all the items are owned by a one seller in single order,
i just want to get all orders from particular seller, is there anyone have an idea already about this?
-_-
or do i need to renovate my model structure?
Ganesh
-_-
hmmm but in single order, there's a lot of item involved and not just from a 1 seller, probably there's a multiple items from different seller in single order
kuzmich
kuzmich
cj
-_-
thanks kuzmich, but it's not just like that
cj
-_-
ok i'll try SubQuery, thanks cj
Lamboo
Hi, I need some help whit these models:
class Player(models.Model):
...
class Challenge(models.Model):
...
class Submition(models.Model):
player = models.ForeignKey(Player, on_delete=models.CASCADE)
challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
...
class Solve(Submition):
...
class Fail(Submition):
...
Is there a way to make something like this?
player.solve.all()
player.fail.all()
Anonymous
Hi Everyone!
Aditya
hello coders, this is aditya here .how are you, i wish some coders from all of you also having interest in django or react js. i want to make a big project in this stack i need react developer for handling the front-end of the project and django developer for handeling the backend of this project. so anyone interested dm me 😀
Мурат
hello everyone! can you tell me why pycharm does not index django modules.
T I T T U
Instagram login
Showing errors
{Errors-type :Oauthexception, "code": 400 , error-message : invalid redirect-uri"}
Anonymous
Does Jinja templates work in mobile app?
I have a web app which uses Jinja in HTML templates. Now want to develop a mobile app for the same.
k9
Hello can anyone help me on how to solve this error
Access to XMLHttpRequest has been blocked by CORS policy
k9
I have added CORS unblock extensions to chrome but still not working
Zoro
k9
k9
In my Middleware just added
corsheaders. Middleware. CorsMiddlware
k9
And my
CORS_ALLOWED_ORIGIN is http://localhost :8000
S
Zoro
k9
k9
T I T T U
T I T T U
Anyone plzz
HTTP is not allowed that's a problem
Mirco
Anyone plzz
I suggest you to study how OAuth2 works before implementing it
Rup
my django model sending all fields mandatory. i dont want all fields mandatory. and i didnt take any value to make field mandatory. then why it shows all fields are mandatory.
Rup
what to do? please help
noneofurfuckinbusiness
Rup
blank=True, working for all fields but not email field why?
Rup
It's working. Thanks a lot
Mirco
Mirco
the error is telling you have the redirect uri not does not configured properly
The redirect uri is used by Instagram inside the OAuth flow
Rabbits
Hello guys, tell me how to link the two models (no cyclic dependency). Modal1 is in one application, Modal2 in another.
class Modal1(models.Model):
title = models.CharField(max_length=100)
text = models.TextField(max_length=1000)
modal2 = models.ForeignKey(Modal2, on_delete=models.CASCADE)
class Modal2(models.Model):
title = models.CharField(max_length=100)
text = models.TextField(max_length=1000)
modal2 = models.ForeignKey(Modal1, on_delete=models.CASCADE)
ma
plz i need help
Максим
I'm a beginner, can you tell me.
I'm going to do custom authentication via JWT.
In the created authenticate method, I pull the access token from the user's browser. If it is rotten, I take a refresh token.
I am generating a new pair. But here's how to write a new pair of tokens back to cookies later? The overridden authenticate method can only return the user.
Maybe you need to do this operation somewhere else?
It is possible in the view, but then you have to turn it over in each view. I would be glad to any advice. Sorry for mistakes.
If you have working examples with implementation, I will be glad if you share them.
Sai
Suprit
Hi guys,
I am doing this project first time. I have to manage a multithreaded queue in my django app.
User sends request to app will automatically added(append) to queue.
If user is at first location then 30 seconds time is alloted to that first user and it will redirected to main page while other users are waiting in queue (other page will showing you are in queue) till first user will terminate his session.
After terminating first user, second user automatically getting to first and alloted 30 seconds and redirected to main page.
exited user will redirected to exit page.
Please help me to solve this problem in django
Rup
download() missing 1 required positional argument: 'path' i am creating a download link. and facing this error
Rup
this is my code.
Doragonsureiyā
this is my code.
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
Raj
Pls help me with the error. https://dpaste.org/38eh
Raj
dpaste.org/TaAF#L1,2,3,5,6
Dev__master
Can anyone help me, iam getting errors while installing rewuirements.txt in azure
I will put screenshots please help me
Dev__master
Iam not able to send images here
Doragonsureiyā
Iam not able to send images here
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
Dev__master
ERROR: Could not find a version that satisfies the requirement command-not-found==0.3
ERROR: No matching distribution found for command-not-found==0.3
Dev__master
This type of errors iam getting same way at the place of command not found getting apturl and brlapi these are other errors
Dev__master
These things installed in requirements.txt automatically
Crabby
https://stackoverflow.com/questions/67335252/i-am-making-a-test-application-in-django-and-i-want-to-submit-the-form-when-the/67335413#67335413
Crabby
Please help me with this
Morteza
when i want to delete an object i get an error
Morteza