dragon-fire-fly / developer_matcher

2 stars 1 forks source link

[BUG] Registration page not loading #63

Closed dragon-fire-fly closed 1 year ago

dragon-fire-fly commented 1 year ago

Describe the bug The registration page is throwing an AttributeError when loaded. It states that 'tuple object has no attribute "rsplit"'. Previously, the registration page was loading.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'http://127.0.0.1:8000/user/register/'
  2. . See error

Expected behavior The registration page should show the registration form without an error

Screenshots Screenshot from 2023-03-04 15-55-37

Desktop (please complete the following information):

dragon-fire-fly commented 1 year ago

The root of this problem was traced back to an attempt to overcome the "line too long" pep8 violation in settings.py as so:

Image

This was causing python to treat the setting as a tuple, and thus the AttributeError.

The code was changed to this:

Image

The # noqa tag was utilised to exclude these extra long line of code from pep8 checking and thus remove both the AttributeError and the pep8 violation.

The registration page now loads as expected:

Image