QueraTeam / django-nextjs

Next.js integration for Django projects
MIT License
351 stars 18 forks source link

Pass allow_redirects parameter to render function #8

Closed SeokEunJu closed 2 years ago

SeokEunJu commented 2 years ago

Hello, I am a Korean django developer.

I work for a company called Buildblock and I want to change the frontend technology stack from django template to nextjs. However, django couldn't recognize the static file built in nextjs and ended up using django-nextjs.

However, redirects are required for translation on our website, but django-nextjs redirects were rejected because allow_redirects was False. So this error occurred.

Therefore, it is suggested to add allow_redirects as a parameter to the render_nextjs_page_sync function. We confirmed that this change would give us the desired behavior.

I look forward to a good answer. thank you

danialkeimasi commented 2 years ago

Hi, thank you for your contribution.