Re: Django Permission

2021-10-06 Thread Steven Mapes
If you have the code in a file as you have then what's happening is that you trying to create the same Permission everytime Django runs. What you want to do is to create the permission against the BlogPost model itself within the class Meta. Then run a makemigrations and migrate to create the

Django Permission

2021-10-05 Thread Aadil Rashid
I am creating custom permission in my Django myapp's module with the follwing code; from myapp.models import BlogPost from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType content_type = ContentType.objects.get_for_model(BlogPost) permis

Re: Django, permission error saving on disk, why?

2017-07-04 Thread Александр Христюхин (roboslone)
Looks like Linux permission issue. Are you sure user that runs Django is allowed to write anything to given directory? > On 4 Jul 2017, at 14:37, Antonis Christofides > wrote: > > Is it possible to show full traceback and error message? > Antonis Christofides > http://djangodeployment.com

Re: Django, permission error saving on disk, why?

2017-07-04 Thread Antonis Christofides
Is it possible to show full traceback and error message? Antonis Christofides http://djangodeployment.com On 2017-07-04 14:33, miguel vfx wrote: > Hello,I'm getting a Permissions Error [Errno 13] Permission Denied when a > workbook on disk using openpyxl: > > |wb.save(path)| > || > > No f

Django, permission error saving on disk, why?

2017-07-04 Thread miguel vfx
Hello,I'm getting a Permissions Error [Errno 13] Permission Denied when a workbook on disk using openpyxl: wb.save(path) No file is uploaded. It's a request then the file is generated and delivered (downloaded), and that part works fine. What I'm trying to do is save a copy of that file on dis