SHEIKH HAFIJUL ALI
None of them concern with scalability or security (at least not isolation and sharing simultaneously)
Dhurke Sahdmadhi
Either something like this https://forum.djangoproject.com/t/hide-source-code-in-deployment/25167 Or multiple teams working on a microservices project sharing the same server or just simply for optimization
Charly
If you want to hide the source code let me tell you choose the wrong language
Mamuli
code urlpatterns = [ path("", views.index), path('signup/', views.signup_view, name='signup'), path('login/', views.login_view, name='login'), path('profile/', views.profile_view, name='profile'), path('logout/', auth_views.LogoutView.as_view(next_page='login'), name="logout"), ] while using the logout path when the user clicks logout they dont go back to login page 🤔 in logs its showing this: [27/Aug/2025 06:17:37] "GET /logout/ HTTP/1.1" 405 0
Mamuli
Add this to django settings : LOGOUT_REDIRECT_URL = 'your path'
logout needs to be a post request so i created a form with post request when button is clicked that will redirect me to the login page
Charly
done fixed
I know, I'm telling the other guy
Mamuli
Well no, if you set this, it will automatically redirect to the login page.
i used auth_views path('logout/', auth_views.LogoutView.as_view(next_page='login'), name="logout"),
Mamuli
in the .html file i added form in here <form method="POST" action="{% url 'logout'%}"> {% csrf_token %} <button type="submit">Logout</button> </form>
Samniti
Use Django auth logout
Denis
Is it possible to remove duplicates after serialization? I have been trying with chatgpt for several hours now, to no avail
Pablo
Is it possible to remove duplicates after serialization? I have been trying with chatgpt for several hours now, to no avail
Why not call .distinct() on your query before passing it to the serializer to prevent duplicates
Pablo
This works, but the serializer creates dozens of duplicates
Interesting. Can you share a code snippet
Ibrohim
Hello everyone. I have question. I’m creating model Lesson and have a issue. How to make body mixed(I mean use bold, italic, photo, videos, or even file, and use a markdown format in a one page like khan academy lessons or something like that)