Closed Bug 1112679 Opened 10 years ago Closed 9 years ago

Update BROWSERID_AUDIENCES in local.py-dist

Categories

(Mozilla QA Graveyard :: One and Done, defect, P5)

Version 2
x86
macOS
defect

Tracking

(Not tracked)

VERIFIED FIXED
Future

People

(Reporter: rbillings, Unassigned, Mentored)

Details

(Whiteboard: [goodfirstbug])

Attachments

(1 file)

46 bytes, text/x-github-pull-request
rbillings
: review+
Details | Review
It would be helpful to add this to the readme file:

Access the site via http://127.0.0.1:8000/, nothttp://localhost:8000, 

add to local.py:

BROWSERID_AUDIENCES = ['http://localhost:8000', 'http://127.0.0.1:8000']
Hi Rebecca,

I would like to help fixing this bug. Could you give me a headstart?

Thanks!
Hi! The first step is getting One and Done running locally. You can follow the steps here: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Running_Web_QA_automated_tests

Here is the repo: https://github.com/mozilla/oneanddone

Then all you need to do is edit the readme file and submit a pull request.
Hi Rebecca, 

In which section should I add the line "Access the site via http://127.0.0.1:8000/, not http://localhost:8000" in the readme file?

Thanks
Please add it to the top of the section called "Running Unit Tests".
Attached file Github PR
It's a pull request with the changes required.
Attachment #8546090 - Flags: review?(rbillings)
Comment on attachment 8546090 [details] [review]
Github PR

Reviewed, waiting on one more for a merge.
Attachment #8546090 - Flags: review?(rbillings) → review+
Looking at this now, I think a better solution would be to change `local.py-dist` in the settings folder to specify:

BROWSERID_AUDIENCES = ['http://localhost:8000', 'http://127.0.0.1:8000']

instead of:

BROWSERID_AUDIENCES = ['http://localhost:8000']

That would allow the site to be accessed by either host.

I will also comment on the pull request.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Summary: Add local host info to the readme file → Update BROWSERID_AUDIENCES in local.py-dist
Verified
Status: RESOLVED → VERIFIED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: