Sawriyo
Charly
Samuel
Sawriyo
Flavio
Hi guys I would like some recommendations about a Django model
This one: https://codeishot.com/4F4y5sSn
The user field is the owner of the snippet_folder, I would like to give the owner the ability to share the snippet_folder with other users
What it the optimal way to do this?
I could use a mtm relationships…but it would be a problem with a few million entries
Mahmuod
Hay everyone I’m facing a confusing problem with my django project can I paste the trace back
Mahmuod
It’s a WSGI error
Charly
Mahmuod
here is the link to the traceback
Mahmuod
Flavio
Do you have “allauth” in your Installed apps?
Mahmuod
AbiduSage
Hello dear. What is the best way to learn rest api in Django.
Even a good YouTube channel name
KingFx
Naughty
How to deploy Django react
Dasa
Pandu
Heroku
no free tier i guess,
go for vercell, render,netlify,pythonanywhere
Devendra
Which is best way to integration of static files and templates in django project like app wise level or main project level
MUHAMMED
Did anyone done SAML integration with your application. I have IDP metadata for saml. How to do. Can anyone explain.
Pandu
Lucas🍃
hey guys.. so i have this in my template.
<h5 class="text-success">Price: ${{ listing.bids.first().amount}}</h5>
with bids being a related name... i keep getting this error..TemplateSyntaxError at /
Could not parse the remainder: '().amount' from 'listing.bids.first().amount'
Can someone help me?
Luis
Morteza
Lucas🍃
Lucas🍃
Luis
try it and see
Morteza
Will it work?
It will return the first object from the bids queryset
Rasoul
Will it work?
In general If you want to access a value of some list or other iterable in templates you have to simply specify the index number using dot notation.
Lucas🍃
Okay thanks guys...
Manoj
whenever i change my default admin panel in django logout url stops working, what might be the solution?
Manoj
i have installed jazzmin
Manoj
for custom admin panel
Maxim
Ishan Kumar
offtopic
read only 1 week
Siva
I learn django for past one month , I want to test my skill, can any one suggest project ideas ?
Mirco
Siva
Naughty
How to deploy Django react project in netlify
Naughty
I used Django rest framework and react upload it in Github in two different repository when I deploy react in netlify by connecting with github the deploy is not happening working properly
Seth van Dalstein
Hi. tell me please, are there any physical differences between django 4 and django 5, and if so, what are they?
Muflone
Maxim
Mr Geeky
offtopic
read only 1 week
Sid
how to remove the error on vercel 404 not found
giperborei
hi, how can one implement microservice architecture in django? Are these several applications on different IPs that interact with each other using the rest api? Is it possible to use all this on 1 ip, having a different port for each. Haven't worked with microservices yet
N.A.developer
Please, help me! How to organize q-courusel with fetching data
Maxim
David
David
Suryo Adhy Chandra
Thank you for your help
so many architecture type in microservice, and django have almost of this solution with this concept. 😊 i just learn by doing to explore drf to implement some of them 😊 good luck!
ali
Hello guys
I have a question about Graphql in django.
I want to know frequently how you implement this api and json api in django? Which packages do you use?
Charly
Charly
Vue is not related, to be clear
N.A.developer
Not clear Django, but DRF
Naughty
How to deploy DRF and react app in netlify
Charly
Siva
Is there any free hosting platform for django? , I have created platform to share our ideas through chat(like discord) in that project I have media files to store user's profile picture ? So I have no idea where to host my project with media files
ford
Siva
ford
Yes
Siva
Afshin👀
Hello for protect sensitive information in Django Wich package I need to use thankyou
Maxim
Anonymous
class Product(TranslatableModel):
translations = TranslatedFields(
title=models.CharField(max_length=200, unique=True, verbose_name=_("Mahsul nomi")),
description=models.TextField(blank=True, verbose_name=_("Mahsul tavsifi")),
)
categories = models.ForeignKey(Category, verbose_name=_("Turkum"), on_delete=models.CASCADE)
image_main = models.ImageField(upload_to='images/', verbose_name=_("Asosiy rasmi"), null=True, blank=True)
count = models.IntegerField(null=True, verbose_name=_("Mahsul miqdori"))
price = models.IntegerField(verbose_name=_("Mahsul narxi"), null=True, default=0)
img1 = models.ImageField(upload_to='images/', verbose_name=_("Birinchi rasm"), null=True, blank=True)
img2 = models.ImageField(upload_to='images/', verbose_name=_("Ikkinchi rasm"), null=True, blank=True)
img3 = models.ImageField(upload_to='images/', verbose_name=_("Uchinchi rasm"))
updated_on = models.DateTimeField(auto_now=True, verbose_name=_("Yangilangan sana"))
created_on = models.DateTimeField(auto_now_add=True, verbose_name=_("Yaratilgan sana"))
Anonymous
I was creating a bilingual website in Parler but I can't search the title, can you help me?
MD.
How to install sslcommerz in python 3.11(django=5.0)
MD.
Whenever I tried,It generate an error message
Алексей
Good afternoon. Using action="{% url sign/logout/ %}" in the form, I try to go to another page, but django removes my slash at the end. APPEND_SLASH=False and the absolute path does not help.
html-code:
<form action="{% url 'sign/login/' %}/" method="post">
{% csrf_token %}
<button type="submit">Log out</button>
</form>
Error:
RuntimeError at /sign/logout
You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/sign/logout/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
R
R
path('sign/logout/', views.PageLogout, name='logout')
R
<form action="{% url 'logout' %}/" method="post">
     {% csrf_token %}
     <button type="submit">Log out</button>
</form>