Skip to content

How to get data of Post.user not the logged in User

I am currently working on a blog project for learning purposes, I am trying to get the total number of posts made by a specific user. In my model I have set the User who makes a Post as Author. In the Post detail page I am trying to show the total number of Posts made by this specific author

I can’t do anything with python dict? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question Im really stuck with a little problem that I have. Currency_price.json is …

Is it possible to create nested class attributes?

I’m pretty new to Python and have recently learned about classes. I’ve been experimenting around with them and have come up with a student/course grading system. Here’s the code so far: So this creates a course class, which I can add students to and set their rooms and other stuff. I’v…

Adding RevitAPI.dll into a Visual Studio

When I’m adding a RevitAPI.dll file into Visual Studio this message has appeared (The selected component could not be browsed) anyone could support me? Answer Have you manually navigated to the directory containing Revit.exe and selected the Revit API .NET assembly there? Have you set the correct versio…

How to set all values between a range equal to zero in python [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I want to set all the values between 0.75 and 0.8 of an array, equal to ze…