Zwischencommit und Bilder Test
This commit is contained in:
parent
51869a10fd
commit
5de65a5f53
|
|
@ -323,7 +323,7 @@ def trydownloadfile(request, pk):
|
|||
file = DataFile.objects.get(pk=pk)
|
||||
checkuserrights = checkUserDirRights(request, file.parent, request.user.id)
|
||||
if(checkuserrights):
|
||||
file_path = os.path.join(settings.MEDIA_ROOT, file.file.name)
|
||||
file_path = os.path.join(settings.MEDIA_URL, file.file.name)
|
||||
if os.path.exists(file_path):
|
||||
with open(file_path, 'rb') as fh:
|
||||
file_ext = file.name.split(".")[1]
|
||||
|
|
|
|||
|
|
@ -262,7 +262,8 @@ class AgencyCreateView(CreateView):
|
|||
@login_required
|
||||
def dashboard(request):
|
||||
|
||||
|
||||
print("MEIDA ROOT:" + settings.MEDIA_ROOT)
|
||||
print("MEDIA URL:" + settings.MEDIA_URL)
|
||||
# UPDATE FUNCTIONS BY NEW MODEL-CHANGES FOR COPIEN SOME DATA
|
||||
toUpdate(request)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue