5 ms·
Not sure why the `accounts` app is included [0]. As seen from the comments [1] in the `models.py` it looks like it's from an existing project, don't think this
by gitaarik 11y ago
Not sure why the `accounts` app is included [0]. As seen from the comments [1] in the `models.py` it looks like it's from an existing project, don't think this should be in a boilerplate project.
Nevertheless, nice boilerplate project :).
[0] https://github.com/Seedstars/django-react-redux-jwt-base/tree/master/src/accounts https://github.com/Seedstars/django-react-redux-jwt-base/tre...
[1] https://github.com/Seedstars/django-react-redux-jwt-base/blob/master/src/accounts/models.py#L44 https://github.com/Seedstars/django-react-redux-jwt-base/blo...
- lfrodrigues 11y agoYou're right. I copy pasted some code from some projects to build this generic one. A colleague will fix it in a few minutes :)
- rahimnathwani 11y agoIncluding the 'accounts' app is actually pretty useful. Then even a newcomer to react and redux can see how the front and back end are hooked up. I'd encourage anyone to look at these files: Auth action (which depends on the accounts app and DRF): https://github.com/Seedstars/django-react-redux-jwt-base/blob/master/src/static/actions/auth.js https://github.com/Seedstars/django-react-redux-jwt-base/blo... Auth Reducer (which changes redux state based on the outcome of login/logout actions): https://github.com/Seedstars/django-react-redux-jwt-base/blob/master/src/static/reducers/auth.js https://github.com/Seedstars/django-react-redux-jwt-base/blo...
- deleted 11y ago[deleted]