Commit 12f50cf
fix: Add WAGTAILADMIN_BASE_URL setting to resolve Wagtail warning (#176)
Add WAGTAILADMIN_BASE_URL setting to all Django settings files to fix
the wagtailadmin.W003 warning that appeared during system checks.
The project had a BASE_URL setting but Wagtail expects the setting to
be named WAGTAILADMIN_BASE_URL for admin URLs outside the admin interface.
Changes:
- base.py: Set WAGTAILADMIN_BASE_URL = BASE_URL (https://python.ie)
- tests.py: Override with http://testserver for test environment
- dev.py: Override with http://localhost:8000 for local development
This ensures admin URLs in notification emails and the user bar will
display correctly in all environments.
Fixes #175
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 45a9a71 commit 12f50cf
3 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
0 commit comments