Django models in file sharing system

2015-12-10 Thread Vasu Dev Garg
models.py : `class Document(models.Model): docfile = models.FileField(upload_to='documents/%Y/%m/%d') user = models.ForeignKey(User, null=False, blank= False) ` I have created a model for file upload as shown above. docfile is the field that represents file to be uploaded and user fi

Re: Django models in file sharing system

2015-12-11 Thread Vasu Dev Garg
creating a sharing manytomany field is right but how to call it in views and verify that user filled in the form exists? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an e

get email address of the user in views

2016-03-22 Thread Vasu Dev Garg
I want to get the email address of the user which i filter in views function. How to get it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubs