getsentry / getsentry/self-hosted

ADMIN_ENABLE variable not used

Open
#1,039 3 comments 1 reaction 0 assignees View on GitHub
Bug
Dominant language
Shell
Stars
9.6k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
15

Description

### Version

21.7.0

### Steps to Reproduce

Setting variable ADMIN_ENABLE = False does not disable the Django admin panel.

`Django.contrib.admin` is unconditionally added here (https://github.com/getsentry/sentry/blob/a741ce3cadef2537932e9d1262a723b9559bd738/src/sentry/conf/server.py#L322) but should not be.

Thank you,
Eduardo

### Expected Result

The admin panel should not be available.

### Actual Result

The admin panel is available.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.