-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cleanup #123
cleanup #123
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello Contributor,👋👋 Thank You For Opening This Pull Request 🎉🎉
Welcome to SpaceYaTech
We are the fastest growing Africa Open-Source Community Looking To Change The Way Young Africans Get Started In Technology.
JOIN US | THRIVE | GROW
It's great having you contribute to this project
Welcome to the community 🤓 🍿 **Fun facts** - we eat bugs 🐛🐛🐛🐛 for breakfast 🥣This Pull request has been queued for `review`
Sit tight the maintainers are on your case.Soon the maintainers/owner will review it and provide you with feedback suggestions.
If you think it's something urgent, feel free to reach out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the env argument or parameter, is that a windows is devs thing? I’d suggest using decouple and using config instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes to be effected but all is working fine ... Thumbs Up
CMS/settings.py
Outdated
@@ -182,8 +180,8 @@ | |||
} | |||
|
|||
SIMPLE_JWT = { | |||
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=5), | |||
'REFRESH_TOKEN_LIFETIME': timedelta(days=90), | |||
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=60), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change back to 5 mins
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay
router = routers.DefaultRouter() | ||
router.register('blog',StoriViewset,basename="blog" ) | ||
router.register('blogs', StoriViewset, basename="blogs") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well need to have consistent names for our routes, models and views
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. Either posts, blogs or stori or mastori
self.permission_classes = [IsAdminUser] | ||
# anyone can create, retrieve and list all categories | ||
elif self.action == 'retrieve' or self.action == "create" or self.action == "list": | ||
self.permission_classes = [AllowAny] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to include permisions that only allow account owners to list their accounts
- Restrict only acount owners and admins to list accounts
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Test Configuration:
Checklist: