奈姆
mind rule 5 btw
奈姆
Yes, I know about that. I understand that I will have to do this for all methods? There's no other way?
or use "Postprocessing hooks" to handle url params customization centrally.
Babak
Hello guys, I used Jwt in my project with simple-jwt package. I waana make logout api with apiview and I try to block and distribute ACCESSTOKEN but I can’t Please help me
Allexiusw
So yeah based on your model definition you don't have any card_id field, what you have is just id, but you have a way to achieve that. What you really need to do is touch slightly your ViewSet as following: class CardViewSet(...): lookup_url_kwarg='card_id' lookup_field = 'id' That setting will allow you to receive card_id as url parameter and use id as internal lookup field to retrieve the data from the model. This will also allow you to keep the consistency you need in openapi reflecting card_id as path param...
Ярослав
Hello everyone, I'm new to this group, I'm learning django and at this stage I'm learning to do backend, I don't speak much Russian, I would really like to ask you for help with registering on the site, can someone please tell or show me how to do it and how it works or give some video or the site tells you about it, I will be very grateful
S
Hey, I am kinda stuck when I am trying to deploy my django project on AWS, can anyone plss guide me in person?
S
Hey, I am kinda stuck when I am trying to deploy my django project on AWS, can anyone plss guide me in person?
Please someone help me out, I am completely stuck and got no one to guide ....!!
Кит
Channels
Aren't sockets/channels redundant when only one-way communication is needed?
奈姆
Aren't sockets/channels redundant when only one-way communication is needed?
Server-sent events is sufficient if you just need one-way communication. (server to client)
Junior
Dear, how to include my CSS file styles in my HTML file in my django application
Pablo
Dear, how to include my CSS file styles in my HTML file in my django application
{% load static %} <link rel=“stylesheet” href=“{% static ‘path-to-file/file.css’ %}”>
Junior
{% load static %} <link rel=“stylesheet” href=“{% static ‘path-to-file/file.css’ %}”>
when I do it, it doesn't call my CSS file, I don't know why? is there any other setting I should also check?
Pablo
Check the documentation
Junior
FORTUNATE
no, i use Boostrap
Done or not done. Let me guide u
Circuit
when I do it, it doesn't call my CSS file, I don't know why? is there any other setting I should also check?
from this snippet did you try to see if in you static folder the file which contain css is call path-to-file? because in order to read it first see this if it's not the case then go to the setting to see if static file are configured correctly
Pablo
Hello guys, I am looking for a way to dynamically store and return meta tags (title of page, descrption...) for html pages. In my django project, I have around 40 html files and I need a way to render out the meta tags for each page for seo purposes. Does anyone have any ideas? I do not want to do this manually
Jahongir
I need a guide or example to use (Contabo S3 buckets storage) in Django, can anyone help?
Vasya
I’m having issues migrating Celery tasks from Redis to RabbitMQ. The celery migrate command isn’t working. What are the possible ways to transfer tasks? I couldn’t find anything useful online. please help🙏
Pablo
for this case you can use Context Processor create its file and then add it in settings.py
They need to be dynamically generated. All pages can't have the same seo meta tags
Pablo
you can use views.py
Hmm, true but not scalable enough though. If I have a thousand views, I will have to pass it as a context a thousand times
Шахбоз
I made a project in Django and uploaded it to the server. I wanted to publish this site on Bitrix24. The site is working but it is not opening in Bitrix.
Шахбоз
Why you use bitrix for it? Why not start separating?
This is the task that needs to be done.
Шахбоз
Why you use bitrix for it? Why not start separating?
I think the django app doesn't allow it.
Ivan
The bitrix and Django working one one server? Do you use containers?
ʀᴇᴢᴀ
Guy's Introduce me django course for API and only backend🙏🏻
ʀᴇᴢᴀ
English
Alex
English
Udemy
ʀᴇᴢᴀ
Udemy
Any instructor?
Alex
Yes
Alex
Destiny franks
Alex
LMS course
roman
Hi, I have a question: what’s the correct way to translate model fields? You can’t translate dynamic content in templates, so how the correct way of doing that looks like?
ʀᴇᴢᴀ
LMS course
Thanks a lot🙌🏻
ℳɾ.ℳơħάʍάđɾ૯zά
How can i deploy django project with nginx in docker ?
NK TRIPLLE
How can i deploy django project with nginx in docker ?
Clonning repo, install docker, setting docker config, docker up, congrats
ℳɾ.ℳơħάʍάđɾ૯zά
Clonning repo, install docker, setting docker config, docker up, congrats
I really thank you You brought me out of the darkness and into the light. You changed my programming life.
NK TRIPLLE
I really thank you You brought me out of the darkness and into the light. You changed my programming life.
It looks like irony, but there are more detailed instructions and there are a lot of them, just Google
Cyber security
Are you helping me in Django
Doragonsureiyā
Are you helping me in Django
No one can help you until you explain your difficulties.
Alex
Thanks a lot🙌🏻
You are Welcome 🤗
Doragonsureiyā
Hi, I have a question: what’s the correct way to translate model fields? You can’t translate dynamic content in templates, so how the correct way of doing that looks like?
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
roman
Okay, does Django provide dynamic content translation e.g. for database records and what are the best practices for implementing such logic?
Vinay
Hello I am trying to download and apk from my system in the browser but I am getting 404 error like "The requested resource not found on the server" https://pastebin.com/Ci56PFJK this is the piece of code from my django view Can anyone please help?
Саидкутб
https://dpaste.org/uNxp4 https://dpaste.org/OmRQX Please help me solve the problem. I looked, and they say that I am importing models in a circular manner. But that's not true.
vch.py
Good morning. I have two microservices. They are connected and use different db. The first one is based on Fast API, the second one is based on Django. In the first user database. When adding objects to the database associated with the second microservice, I need to validate so that users with the entered identifiers exist. Now I have written validators in raw sql. how can the same thing be done using orm, given that there is no user model?
奈姆
Let's say the microservice A is responsible for auth. Then, it can issue an access token (JWT) upon login. Then the client/user can send that access token to microservice B for auth purposes. You can research on how JWT works in this context.
FORTUNATE
Anon
Any django book
Alex
Link pls
https://www.udemy.com/share/10axDy3@-hQak--MiLPJRH2oxd-bMFPoAmLdF_CloWNsNRfwmsk16lYf-T3hgWALb5RGwjGt/
Maxim
Anyone who has done this course
no polls or roll call here
Quni Made
gm,Have a nice weekend
Guess
Hallo everybody, I am a beginner in Django. Can you guys advice me on any Django project that I can do to up my skills
❥︎ 𝓔𝓻𝓯𝓪𝓷
Hello, how can I change the Django admin panel template?
clouded
Hello, how can I change the Django admin panel template?
https://www.google.com/search?q=Hello%2C+how+can+I+change+the+Django+admin+panel+template%3F
Vinay
Hello guys, Can anyone please help with apk downloading problem in django. I am trying to download an apk in the browser, this apk is located in c drive, but I am getting 404 error like "The requested resource not found on the server" https://pastebin.com/Ci56PFJK this is the piece of code from my django view
PΛRSΛM
hey I have flutter app and DRF and I want to make API only accept requests from app(just like CORS in web) so how can I do it?
Cyber security
We 💯 percent command on Python, Html, Css, After I learn to Django we can't have road map and no resources
Benyamin?!
Excuse me I have a question Does Django framework have good job opportunities and salary or I would be better to move on another stuff. I would appreciate if somebody answers