Falco + NiceGui #113
Replies: 1 comment 1 reply
-
Thanks for sharing this, @Mte90 ! The CRUD feature came from an idea at my workplace, where we have a solid workflow based on similar concepts to speed up new app development. I’ve already improved the CRUD part in Falco to make it more consistent with Django’s conventions and easier to customize, but I haven’t released it yet since it still needs proper docs, tests, and so on. Regarding split settings, I haven’t had a chance to respond properly to your issue, but my view boils down to this: while I like organization, Django settings are the one place where I prefer not to over-organize. I started writting django projects with cookiecutter-django and its separate files approach (default, prod, dev), but I found it can lead to confusion. Personally, I think a single settings file is enough since Django settings are straightforward—a simple key-value structure really. Trying to make them more than that hasn’t brought me any real benefits. |
Beta Was this translation helpful? Give feedback.
-
I used Falco as bootstrap and did that changes:
Now I have Django as superadmin that is the backend for everything but NiceGui in another instance that frontend (with django-nice automatically sync fields changes to a Django model) and in the nicegui backend calls Django models and stuff. I was able to implement the login (in the screen after the access).
I removed tailwind integration in Django as I don't pages in django as everything is managed by unfold.
This is the complete folder structure:
So why use Falco if I am not using a lot of stuff?
Well the startup phase included everything and a lot of stuff, the CRUD stuff is managed by unfold as I need only the superuser there and for me is enough to have the various models.
Maybe can be an idea to have a light falco boilerplate on creating the app like for my user case, as if there was more Django stuff probably I would keep that as can be useful if simplify the development.
Beta Was this translation helpful? Give feedback.
All reactions