Formatting for code blocks in README.md
This commit is contained in:
@@ -7,12 +7,15 @@ To manage automated caching this the library replaces (and appends to) the DRF f
|
||||
|
||||
# Usage
|
||||
### Ensure that the module is in the INSTALLED_APPS in settings.py:
|
||||
```python
|
||||
INSTALLED_APPS = [
|
||||
...
|
||||
'starfields_drf_generics',
|
||||
]
|
||||
```
|
||||
|
||||
### Making views in views.py:
|
||||
```python
|
||||
from starfields_drf_generics import generics
|
||||
from starfields_drf_generics import filters as libfilters
|
||||
|
||||
@@ -50,6 +53,7 @@ class SearchView(generics.CachedListRetrieveAPIView):
|
||||
)
|
||||
logger = logger
|
||||
cache = cache
|
||||
```
|
||||
|
||||
### New class attributes that are used
|
||||
cache_prefix: defines the prefix that the module will use when saving values in the cache
|
||||
|
||||
Reference in New Issue
Block a user