Skip to content

Commit

Permalink
Merge pull request #11 from wagtail-packages/release-prep-1.0.0
Browse files Browse the repository at this point in the history
Docs update for the new login_path option
  • Loading branch information
nickmoreton authored Feb 17, 2024
2 parents 0f926b3 + 65728d5 commit 5f6cea3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.

## Unreleased

## 0.1.0 - 2024-02-16
==================

- Initial release
## 1.0.0 - 2024-02-17

- Initial release 1.0.0
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ With this information it's possible to make a get request to each URL and check

### Site requirements

If you are checking a site locally it will work best with a full set of data, so it's best to load staging or development site data and the site will need to be running and ready to response to requests.
If you are checking a site locally it will work best with a full set of data, so it's best to load staging or development site data.

### Try the package locally

Expand All @@ -48,6 +48,8 @@ The default behavior is to report any urls that return a response code other tha

You can add options to see more details: `--expanded` includes the 200 responses in the output, `--all` includes all responses endpoints in a site (could be slow depending the size of the size).

The command need to be able to login to the site so you need to provide a --username, --password and --url and --login-path, the defaults are `superuser` for the username and password and `http://localhost:8000` for the url and `/admin/login/` for the login path.

Create a new command in your site that extends `BaseResponsesCommand`.

```python
Expand All @@ -66,7 +68,7 @@ class Command(BaseResponsesCommand):
username = "your-login-username"
password = "your-login-password"
url = "http://localhost:8000" # the base url of your site
login_url = "/admin/login/" # the login url for your site
login_path = "/admin/login/" # the login url for your site
```

## Installation
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[project]
name = "wagtail-exposapi"
version = "0.1.0"
version = "1.0.0"
description = "Expose Wagtail internals via a REST API for use while developing and testing Wagtail sites."
readme = "README.md"
authors = [
{name = "Nick Moreton", email = "nickmoreton@me.com"}
]
Expand Down Expand Up @@ -49,3 +50,7 @@ modeladmin2 = [
[tool.setuptools.packages.find]
include = ["exposapi"]
exclude = ["tests*"]

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

0 comments on commit 5f6cea3

Please sign in to comment.