Remove Nginx-specific static and media serving, and serve media through Django using WhiteNoise and FileResponse.
This commit is contained in:
parent
aa348d2b04
commit
92e1336f80
6 changed files with 46 additions and 23 deletions
|
|
@ -237,6 +237,7 @@ class GalleryPublicView(DetailView):
|
|||
if request.user.is_authenticated:
|
||||
gallery = self.get_object()
|
||||
return redirect("photologue:pl-gallery", slug=gallery.slug)
|
||||
request.session['public_gallery_access'] = True
|
||||
request.guest_mode = True
|
||||
return super().get(request, *args, **kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue