Skip to content

Using Django's Built-in Permissions inside React Template #293

Answered by mmonj
joefessenden asked this question in Q&A
Discussion options

You must be logged in to vote

You could follow this guide on creating custom context processors and how to register them in the django settings: https://dev.to/gilbishkosma/custom-context-processors-in-django-3c93

A simple custom processor example is the following: https://github.com/mmonj/Inventory-Manager/blob/reactivated-dev/server/context_processors.py

as for how to use it inside of the react template: https://github.com/mmonj/Inventory-Manager/blob/reactivated-dev/client/components/stockTracker/NavigationBar.tsx

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@silviogutierrez
Comment options

@joefessenden
Comment options

@mmonj
Comment options

Answer selected by silviogutierrez
@silviogutierrez
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants