Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change DEBUG=True error views into custom views #2817

Open
Andrew-Chen-Wang opened this issue Sep 11, 2020 · 0 comments
Open

Change DEBUG=True error views into custom views #2817

Andrew-Chen-Wang opened this issue Sep 11, 2020 · 0 comments

Comments

@Andrew-Chen-Wang
Copy link
Contributor

https://github.com/pydanny/cookiecutter-django/blob/4f631e148388d12d95ef567dcb56d529fee26c63/%7B%7Bcookiecutter.project_slug%7D%7D/config/urls.py#L44-L61

Rather than having to go to individual URLs to view our custom code, which could raise something like PermissionDenied(mark_safe(_("<strong></strong>"))), it should automatically show these custom error messages.

Ref:

Rationale

For me, I'm just seeing a string of text for my errors. Not colorful and not helpful. The custom views serve the same purpose but they at least use extends base.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant