Skip to content

Commit

Permalink
Merge pull request #61 from pinax/fixing-render-to-string-issue
Browse files Browse the repository at this point in the history
Fixing render to string issue
  • Loading branch information
grahamu authored Jan 31, 2018
2 parents f78999a + 371458e commit d90e0dd
Show file tree
Hide file tree
Showing 10 changed files with 226 additions and 72 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,21 @@ Add `pinax.teams` and other required apps to your `INSTALLED_APPS` setting:
]
```

Optionally add `TeamMiddleware` to your `MIDDLEWARE` setting:

```python
MIDDLEWARE = [
# other middleware
"pinax.teams.middleware.TeamMiddleware",
]
```

Finally, add `pinax.teams.urls` to your project urlpatterns:

```python
urlpatterns = [
# other urls
url(r"^account/", include("account.urls")),
url(r"^teams/", include("pinax.teams.urls", namespace="pinax_teams")),
]
```
Expand Down
26 changes: 0 additions & 26 deletions pinax/teams/tests/settings.py

This file was deleted.

3 changes: 3 additions & 0 deletions pinax/teams/tests/templates/pinax/teams/_invite_form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ csrf_token }}
{{ invite_form }}
{{ team }}
1 change: 1 addition & 0 deletions pinax/teams/tests/templates/pinax/teams/_membership.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ membership }} - {{ team }}
Loading

0 comments on commit d90e0dd

Please sign in to comment.