Skip to content

Commit

Permalink
Merge pull request #2 from anexia/fixes-installation
Browse files Browse the repository at this point in the history
Simplify module setup
  • Loading branch information
nezhar authored Feb 13, 2023
2 parents d5fd758 + 7c0eba7 commit b8800e0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ So far it provides:
pip install content-disposition
```

2. Add the library to your INSTALLED_APPS list.

```
INSTALLED_APPS = [
...
'content_disposition',
...
]
```

## Usage

Use the rfc5987_content_disposition function to set an HTTP response's 'Content-Type' field in any endpoint, e.g.:
Expand Down
1 change: 0 additions & 1 deletion tests/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"content_disposition",
"testapp",
]

Expand Down
3 changes: 0 additions & 3 deletions tests/testapp/tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@


class TestSetup(SimpleTestCase):
def test_installed_apps(self):
self.assertIn("content_disposition", settings.INSTALLED_APPS)

def test_models(self):
self.assertIs(apps.get_model("testapp", "Photo"), Photo)

0 comments on commit b8800e0

Please sign in to comment.