Skip to content

Implement Custom Error Pages #30

Description

@nijel

that will be used instead of nginx default error pages:
https://www.phpmyadmin.net/static/A

Note: The custom error page is already there, it just needs to be used for static files as well.

Activity

  1. AdrianoCahete commented on Nov 3, 2020

    @AdrianoCahete

    It's already handling, just throwing an error for some reason:

    handler404 = 'pmaweb.views.notfound'

    website/pmaweb/views.py

    Lines 86 to 92 in 35a9f3f

    def notfound(request):
    return render(
    request,
    '404.html',
    {'title': 'Page Not Found'},
    status=404
    )

    Trying to fix on my PR, but since I never had worked with Python for web before, I may not fix it.

    Yep, I read all the issues.

  2. vimalMK commented on Nov 2, 2022

    @vimalMK

    @nijel @williamdes Can I work on this, if its still required?

  3. williamdes commented on Nov 2, 2022

    @williamdes
    Member

    @nijel @williamdes Can I work on this, if its still required?

    Sure, do you know enough python to finish #136?

  4. vimalMK commented on Nov 2, 2022

    @vimalMK

    @williamdes Thank you and yes I can try #136 .

  5. vimalMK commented on Nov 3, 2022

    @vimalMK

    @williamdes can you please confirm/share what the production settings.py looks like?

    the path will be: phpmyadmin-website\pmaweb\settings.py

    Important changes in the settings.py which is also in PR

    DEBUG = FALSE
    COMPRESS_ENABLED = os.environ.get('COMPRESS_ENABLED', False)

  6. added a commit that references this issue on Nov 3, 2022
    a83e796
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions