cj
You right but as I told you, our company told me I must use django, otherwise, I am interested use FastAPI for this
then, again, as I told you, configure a dumb SQLite DB for Django to work properly, it doesn't matter if you don't use a DB directly in your code, Django needs it
Manheevak
Which one is better for django react or vue? or any other frontend framework
Manheevak
and anybody used tetra framework in their project?
cj
Which one is better for django react or vue? or any other frontend framework
you can't compare Django with those other 2 frontend JS libraries ¯\_(ツ)_/¯ it's impossible to compare
Manheevak
you can't compare Django with those other 2 frontend JS libraries ¯\_(ツ)_/¯ it's impossible to compare
I think you misunderstood the question I am saying which one is better for django to connect with React or Vue
cj
I think you misunderstood the question I am saying which one is better for django to connect with React or Vue
you didn't ask your question in that way ¯\_(ツ)_/¯ and the answer is, use the one you want, it doesn't matter for Django at all
Андрей
tell me good documentation on prefetch_related
Doragonsureiyā
tell me good documentation on prefetch_related
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Koen de
tell me good documentation on prefetch_related
The standard https://docs.djangoproject.com/en/4.1/ref/models/querysets/ Otherwise https://betterprogramming.pub/django-select-related-and-prefetch-related-f23043fd635d
Manheevak
you didn't ask your question in that way ¯\_(ツ)_/¯ and the answer is, use the one you want, it doesn't matter for Django at all
My bad. Can you also tell me when we connect django to react why not we use light frameworks like flask or fastapi as django is only use to store and serve data.
Manheevak
What's you preference 🤔
cj
What's you preference 🤔
it depends on the project actually ¯\_(ツ)_/¯ I use the 3 of them
Manheevak
OK ty 😊
Na
Hello, any one help in to learn django together
Doragonsureiyā
Hello, any one help in to learn django together
This is neither a job board nor a bulletin board.
Vishvajit
Best Django Model Manager:- https://docs.djangoproject.com/en/4.1/topics/db/managers/ https://www.programmingfunda.com/django-model-manager/
Forrest
Good evening, I have to create a web API that is going to be used by 10 or 20 workers and the supervisor should be able to create groups with them to work on different things. My doubt is that Django already comes with that option by default using the admin site. Should I create a separate template for them to do those things or limit permissions and let workers go to the default admin page?
WIPEDREAM
Good evening, I have to create a web API that is going to be used by 10 or 20 workers and the supervisor should be able to create groups with them to work on different things. My doubt is that Django already comes with that option by default using the admin site. Should I create a separate template for them to do those things or limit permissions and let workers go to the default admin page?
A web API is meant to hit routes /endpoints you can't use your admin dashboard for a client except stated otherwise. You can have to apps let's say supervisor and workers, then give the supervisor permission for the things he can do. Then your model will have a foreignkey to the workers where the supervisor access them pick them and group them. Incase anyone knows better please do correct and enlighten me
Jay
When I clear the image it should be set to default but it is not happening
Jay
Please help
Doragonsureiyā
Please help
What are you talking about?
Jay
I want to prevent deletation of default image when I delete image using updateview
Jay
I want to delete only uploaded image not default image
Rex
hi guys , how can i best update the list in the table which is only printing in the console but not the UI
Rex
how do i make ( View site) in django admin site linked to my other page when i click it.
Hello
Hey! I have a question... There is an option to create a dictionary as a field in the object on models.py?
P
Hi, Is there anyone who know how to deploye a website in azure Virtual machine using django?
Anonymous
Hello everyone How can i use JWT auth in Swagger UI in DRF?
Mirco
Hello everyone How can i use JWT auth in Swagger UI in DRF?
What are you using ? drf-spectacular or drf-yasg ?
Anonymous
What are you using ? drf-spectacular or drf-yasg ?
drf-yasg I added SECURITY_DEFINITIONS to settings but it's not working
Anonymous
Share your settings of drf-yasg via pastebin
SWAGGER_SETTINGS = { 'SECURITY_DEFINITIONS': { 'Bearer': { "type": "apiKey", "name": "Authorization", "in": "header", }, }, }
Anonymous
And the lock icon is not close to every endpoint in swagger ?
It closes but when i send request to my endpoint it returns 401 code
IM~Exynos
Which is the proper way to create custom logs in db?
Mirco
It closes but when i send request to my endpoint it returns 401 code
But inside the curl request Swagger shows, the header is specified ?
Anonymous
But inside the curl request Swagger shows, the header is specified ?
yes, the headers request should be something like this: Authorization: Bearer <access_token> but in swagger headers request, auth request is like this: Authorization: <access_token>
Mirco
yes, the headers request should be something like this: Authorization: Bearer <access_token> but in swagger headers request, auth request is like this: Authorization: <access_token>
You must add the bearer prefix It's not done by drf-yasg Migrate to drf-spectacular for something more updated and supported drf-yasg doesn't support OAS 3 so a lot of new features are missing
Doragonsureiyā
OK, thanks for your help 🙏🏼
You're welcome! 😊
Иззатулло
Hi guys Can you please tell me better email service provider that's free and easy to configure for django projects
Ram
Can any one tell Important points for resume on django
Anonymous
How can i filter by number range in django admin.
Anonymous
I need to filter by range of price
Doragonsureiyā
You're welcome! 😊
Sayidbek
How can i filter by number range in django admin.
You gonna do this in admin.py with order_by
Doragonsureiyā
Can any one tell Important points for resume on django
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so move to @PythonOfftopic group and ask there.
Anonymous
You gonna do this in admin.py with order_by
I mean filter, like products with price [700, 1800]
Anonymous
I added field price to list_filter but it doesnt filter by range
Sachin
How to call method in another method in python
Hcen
After learning the basics of Python and making a small application with pyqt5 And I want to enter web development, do you enter through django is good!
Daniel
Hello, can someone please help me with uploading a file from react to django. When I pick the file in react, I want it to be stored in the django project's media folder. Thank you
Fakhteh
Hi, I'm gonna run html page with django and when set urls.py and settings.py and run python3 manage.py runserver, I see : ImportError: cannot import name 'homePageView' from 'pages.views' Why?
Fakhteh
Def function in views py
Def index(request): template = loader.get_templates('index.html') return HttpResponse(template.render())
Anderson
Hello guys, I'm struggling to use Django admin site to upload image to firebase cloud storage, I have firebaseConfig setup in view.py. any help please🙏
sufiyan
Hello, I have two app in my project and I'm not able to redirect the url to to {% url 'user-profile' project.owner.id %} from project.html, I'm attaching one file for both models and separate html
sufiyan
https://linkode.org/#bEkIDOXTJMkCC3LA0Owni2
sufiyan
my error is ;- Reverse for 'user-profile' with arguments '('',)' not found. 1 pattern(s) tried: ['profile/(?P<pk>[^/]+)/\\Z']
sufiyan
I'm new django can anyone help me?
sufiyan
https://linkode.org/#Fhs47kYVa2YbRucA6JKVR2
sufiyan
when i remove the url link from the above html code and fetching the detail in <p {{project.owner.id}} /p> tag its giving me an id but i don't know what wrong with url
Alex
in {% url 'user-profile' project.owner.id %} parameter "project.owner.id" is passed in url 'user-profile'.... what contains url 'user-profile' in urls.py?
sufiyan
https://linkode.org/#pYLuags22jyW3paRsOyK74
Alex
and need see wievs...
Alex
ok
Alex
views.py?
sufiyan
Yes wait minute
sufiyan
https://linkode.org/#Pmx4vOnTPVeKn0OIO5BeA2