next.js, nginx, reverse-proxy, ssl
$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt
I have tried to setup redis as starting background task with wsl-autostart, Task Scheduler and with lot vbs scripts including one described here but none of them seemed to work.
In the end I have manually created a simple one that does the job. This script basically starts a hidden Ubuntu Window and starts redis-server inside it.
sudo apt install redis-server
class MultipleFieldLookupORMixin(object): | |
""" | |
Actual code http://www.django-rest-framework.org/api-guide/generic-views/#creating-custom-mixins | |
Apply this mixin to any view or viewset to get multiple field filtering | |
based on a `lookup_fields` attribute, instead of the default single field filtering. | |
""" | |
def get_object(self): | |
queryset = self.get_queryset() # Get the base queryset | |
queryset = self.filter_queryset(queryset) # Apply any filter backends | |
filter = {} |