#Question❓
imagefielddan keladigan rasmni o'zim xohlagandek nomlab saqlab qo'yishim uchun nima qilishni tavsiya berasizlar?
#solution✅
def get_path(instance,filename):
return "site_media/jobs/%s_%s/%s" % (instance.client, instance.job_number, filename)
class CCEntry(models.Model):
....
pdf = models.FilePathField(path=get_path, match=".*\.pdf$", recursive=True)
imagefielddan keladigan rasmni o'zim xohlagandek nomlab saqlab qo'yishim uchun nima qilishni tavsiya berasizlar?
#solution✅
def get_path(instance,filename):
return "site_media/jobs/%s_%s/%s" % (instance.client, instance.job_number, filename)
class CCEntry(models.Model):
....
pdf = models.FilePathField(path=get_path, match=".*\.pdf$", recursive=True)
#question #djangousermodel
1. Why Django doesn’t store the raw password in database ?
2. Who did learn this topic https://docs.djangoproject.com/en/4.1/topics/auth/passwords/ ?
3. What we need django.contrib.contenttypes application of django ?
So interesting in know about this 😊
1. Why Django doesn’t store the raw password in database ?
2. Who did learn this topic https://docs.djangoproject.com/en/4.1/topics/auth/passwords/ ?
3. What we need django.contrib.contenttypes application of django ?
So interesting in know about this 😊
⚡1👍1