open source software djnext
| by jpic | python django javascript react djnext best-practicehttps://git.yourlabs.org/oss/djnext
https://git.yourlabs.org/oss/djnext
src/djnext_example/artist/urls.py
:: CreateView.as_view( model=Artist, fields=[’name’], success_url=reverse_lazy(‘artist_list’), template_name=‘create.js’, ) The template backend you added will make a request to the nextjs server you have on port 3000 with yarn dev. ## Watchstatic command Run your manage.py watchstatic or yourproject watchstatic if your project has an entrypoint. This will watch static/ directories of all apps in INSTALLED_APPS, and build static_root/ directory. Also, it creates a symlink from static_root/pages to pages/, so that yarn dev will find it. On port 8000 we don’t yet have auto frontend code reload, but you have it on port 3000 wit h watchstatic running at the same time. ## Install in your project Add to ‘djnext’ to INSTALLED_APPS, add dict(BACKEND='djnext.Backend')
to TEMPLATES. .. note:: To have the dev command, add crudlfap to INSTALLED_APPS. ## About This project was made possible thanks to Thomas Binetruy, frontend engineer intervening as pair programing on this R&D; project for a long time now ;) With LOVE from POITOU CHARENTE ∞