Skip to content

Commit

Permalink
📝 Indentation changes for docs (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
williln authored Aug 6, 2024
1 parent 427e166 commit 3e249e5
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,28 @@ A custom Django field that integrates with the 1Password `op` CLI to securely ac

1. Install the package from PyPI:

```bash
python -m pip install django-opfield
```
```bash
python -m pip install django-opfield
```

2. Install the [1Password `op` CLI tool](https://developer.1password.com/docs/cli/get-started), making sure it is callable from wherever your application is running.

3. Create a [1Password service account](https://developer.1password.com/docs/service-accounts/get-started) and make the service account's token available to your application.
Choose one option:
Choose one option:
- Set the `OP_SERVICE_ACCOUNT_TOKEN` environment variable
- Configure in your application's `settings.py`:
- Set the `OP_SERVICE_ACCOUNT_TOKEN` environment variable
- Configure in your application's `settings.py`:

```python
# settings.py
DJANGO_OPFIELD = {
# Explicitly set here only as an example
# Use whatever configuration/environment library you prefer
# (`python-dotenv`, `django-environs`, `environs`, etc.)
"OP_SERVICE_ACCOUNT_TOKEN": "super-secret-token",
}
```
```python
# settings.py
DJANGO_OPFIELD = {
# Explicitly set here only as an example
# Use whatever configuration/environment library you prefer
# (`python-dotenv`, `django-environs`, `environs`, etc.)
"OP_SERVICE_ACCOUNT_TOKEN": "super-secret-token",
}
```

## Usage

Expand Down

0 comments on commit 3e249e5

Please sign in to comment.