Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
omercnet committed Mar 20, 2023
1 parent 8a25c95 commit 054f347
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This plugin integrates Descope with your Django app.
Map these roles to any user you would like to make a staff or superuser in your Django app.
_The names of these roles can be customized in the settings below._

1. Add "django_descope" to your INSTALLED_APPS setting like this:
2. Add "django_descope" to your INSTALLED_APPS setting like this:

```
INSTALLED_APPS = [
Expand All @@ -24,7 +24,7 @@ _The names of these roles can be customized in the settings below._
]
```

1. Add Descope Middleware **after** the SessionMiddleware
3. Add Descope Middleware **after** the SessionMiddleware

```
MIDDLEWARE = [
Expand All @@ -35,13 +35,13 @@ _The names of these roles can be customized in the settings below._
]
```

1. Include descope URLconf in your project urls.py like this:
4. Include descope URLconf in your project urls.py like this:

```
path('auth/', include('django_descope.urls')),
```

1. In your site templates, insert the `descope_flow` tag where you want to place your flow
5. In your site templates, insert the `descope_flow` tag where you want to place your flow

```html
{% load descope %}
Expand All @@ -55,9 +55,9 @@ _The names of these roles can be customized in the settings below._
{% endif %}
```

2. Start the development server and visit http://127.0.0.1:8000/auth/signup
6. Start the development server and visit http://127.0.0.1:8000/auth/signup

3. Visit http://127.0.0.1:8000/auth/tokens to see the user tokens after login
7. Visit http://127.0.0.1:8000/auth/tokens to see the user tokens after login

## Settings

Expand Down

0 comments on commit 054f347

Please sign in to comment.