This repository was archived by the owner on Mar 11, 2020. It is now read-only.
Draft
Conversation
* Add vk gate - Add function to obtain token - Add function to submit post to group (to be updated) - Group all Vk API requests into a small client - Add Vk API request exception
* Add OAuth2 authentication * Fix trailing commas 🙈 * Add instruction for oauth using and basic setting * Add user registration * Fix flake8-per-file-ignores with flake8 3.7.x issues :( more info: wemake-services/wemake-python-styleguide#472 (comment) * Fix code for passing flake8 linter checks
Also remove most of superuser endpoints, because I'm not sure about them. Maybe they should be in isolated prefix, like `/admin/workspace`
teners
reviewed
Mar 9, 2019
|
|
||
| Because most of requests to our API tied to specific workspace (e.g. | ||
| work with publications), the middleware saves us from a lot of repeated | ||
| code for extracting workspace by request data. |
Member
There was a problem hiding this comment.
Suggested change
| code for extracting workspace by request data. | |
| code for extracting workspace from request data. |
teners
reviewed
Mar 9, 2019
|
|
||
| def __init__(self, get_response): | ||
| """ | ||
| Standard interface of django middleware. |
Member
There was a problem hiding this comment.
Suggested change
| Standard interface of django middleware. | |
| A standard interface of Django middleware. |
teners
reviewed
Mar 9, 2019
|
|
||
| def process_view(self, request, view_func, view_args, view_kwargs): | ||
| """ | ||
| One of the django middleware hook. |
Member
There was a problem hiding this comment.
Suggested change
| One of the django middleware hook. | |
| One of the django middleware hooks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolve #19