Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Django Private Storage
Commits
9f4c08eb
Commit
9f4c08eb
authored
Oct 10, 2016
by
Diederik van der Boor
Browse files
README: mention INSTALLED_APPS, needed for translations
parent
242c0718
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.rst
View file @
9f4c08eb
...
...
@@ -17,6 +17,17 @@ Installation
Configuration
-------------
Add to the settings:
.. code-block:: python
INSTALLED_APPS += (
'private_storage',
)
PRIVATE_STORAGE_ROOT = '/path/to/private-media/'
PRIVATE_STORAGE_AUTH_FUNCTION = 'apps.utils.private_storage.permissions.allow_staff'
Add to ``urls.py``:
.. code-block:: python
...
...
@@ -27,13 +38,6 @@ Add to ``urls.py``:
url('^private-media/', include(private_storage.urls)),
]
Add to the settings:
.. code-block:: python
PRIVATE_STORAGE_ROOT = '/path/to/private-media/'
PRIVATE_STORAGE_AUTH_FUNCTION = 'apps.utils.private_storage.permissions.allow_staff'
Usage
-----
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment