Added inventory app with models, views, serializers, tests and custom_auth
#22
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.
Description
This pull request includes the following updates:
app.settings FILE:
--registered new app
inventory,rest_frameworkandrest_framework_simplejwt', -- changed DATABASES to usePostgresql`-- added REST_FRAMEWORK list of permission and auth classes
-- added an additional AUTHENTICATION_BACKENDS to the default django own
-- added SIMPLE_JWT list for JWT Authentication and logics
Inventory App:
-- I created a new app called
inventoryProduct,Category,Order, andOrderItemmodels in inventory app.Product,Category,Order, andOrderItem.Product,Category,Order, andOrderItemandUsermodels.File: I Added
custom_auth, in the inventory app forCustom Authentication handling both user email and name on login.
Tests:
How i Tested my Codes
python manage.py testand verified that all tests pass.Also know that
My codes follows the style guidelines of this project as describe in
README.mdI have performed a
self-reviewof my own codeI have commented my code where
neccessaryMy unit tests pass locally with 0
Errors