Add DEBUG=False to your .env file
docker-compose down
make clean
docker-compose pull
docker-compose up -d
docker-compose exec -T web make localecompile webpack compilejsi18n compile-react-i18n
docker-compose exec -T web ./manage.py collectstatic
Last active
October 17, 2019 13:14
-
-
Save schalkneethling/3000735e0a2b554336c25d4086ab1807 to your computer and use it in GitHub Desktop.
Useful things for Kuma development
Find all pages that uses a specific css class: https://developer.mozilla.org/en-US/search?css_classnames=intrinsic-wrapper&locale=en-US
@import.*whatever
// find imports of specific partials in Sass
Before you start ensure you are in a new private window or user profile where you are not logged into either your local instance of Kuma or Github
- Load up the landing page of MDN Web Docs
- Click on the
Sign in
link at the top right of the page - You will be directed to Github and asked to sign in to authorize
...
- For this you can use the mdnwebdocs-tester account (Ask me if you do not have the details. Not sure if we have a way of sharing this info securely. Perhaps with keybase.io?)
- After authorizing with Github and the needed verification via GMail you will sent back to MDN, and should see the following:
...
- Check the
I agree
checkbox and clickCreate profile
- You should be signed in successfully and your account created
- You can confirm this be hover over your avatar and clicking
View profile
Now that we have a user in the database, we can test a signup scenario where your
chosen username(aka mdnwebdocs-tester
) already exists.
- Head over to http://mdn.localhost:8000/admin/socialaccount/socialaccount/
- You should see the
mdnwebdocs-tester
account here. - Check the checkbox next to the account. From the
Action
dropdown, selectDelete selected social accounts
, and click theGo
button. On the next screen, clickYes, I'm sure
- Head over to http://mdn.localhost:8000/admin/users/user/ and confirm that the user still exists
- We now have a user account with a matching username but, this user is no longer associated with the Github account
- Go to http://mdn.localhost:8000/en-US/ and click
Sign in
- You should now be presented with the following view:
...
- Enter
mdnwebdocs-tester
into the input field, check theI agree
checkbox, and click onCreate profile
- You should now see the following:
...
- Enter a username that does not exists, check the
I agree
checkbox, and click onCreate profile
- You should be signed in and your account should now be created.
- Again, you can confirm this be hover over your avatar and clicking
View profile
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment