6 ms·
Why not start out by using the Django Admin features? That allows you to start with next to no code, but you can easily add a little business logic anywhere yo
by jeffasinger 5y ago
Why not start out by using the Django Admin features?
That allows you to start with next to no code, but you can easily add a little business logic anywhere you need it eventually, and it provides a way to long term transition to a true application if the need arises.
- Closi 5y agoThis is definitely the correct approach! This will take a few minutes to implement and be significantly more stable and full-featured than any low/no-code solution.
- cpach 5y agoInteresting! It would be awesome if anyone would want to expand on this advice (^_^) How does one get started with Django Admin? Would this tutorial be a good start? https://first-django-admin.readthedocs.io/ https://first-django-admin.readthedocs.io/
- StavrosK 5y agoThat seems reasonable, though it looks like it's a few years old by now. You can use my project template, it comes with the admin enabled out of the box: https://github.com/skorokithakis/django-project-template https://github.com/skorokithakis/django-project-template You just install that, add the TODOs that it says, and then run it with "./manage.py migrate; ./manage.py createsuperuser; ./manage.py runserver", and that's about it.
- Closi 5y agoI think the best one would simply be the Django 'Getting Started' guide, which covers admin. Here is the relevant page: https://docs.djangoproject.com/en/3.1/intro/tutorial02/ https://docs.djangoproject.com/en/3.1/intro/tutorial02/
- jnskender 5y agoI find answers in this format annoying. Why not? Maybe he's never heard of it. Great answer, but let's not assume he's considered it and decided not to.
- deleted 5y ago[deleted]
- cpach 5y agoI read as just a friendly suggestion that it’s something the OP might want to take a look at (^_^)
- jeffasinger 5y agoI had written it this way because the OP had specifically ruled out using Django. Point taken though.
- xupybd 5y agoI think you came across as friendly and helpful. To me "why not" is a gentle suggestion, and not a literal question. Maybe that changes in different parts of the world?
- giardini 5y agoColloquially "Why not?" is used to make a suggestion. That is, "Why not" means "Perhaps". One need not trace or question preceding statements or ideas nor is there any need to be annoyed. Is English your native language?
- throwmeout2141 5y agoI'm pushing ~$120 million this year through that exact model. Use what works. Throwaway for obvious reasons.
- mywacaday 5y agoWell done! What's the margin?
- StavrosK 5y agoDjango SQL explorer is fantastic as well: https://django-sql-explorer.readthedocs.io/en/latest/index.html https://django-sql-explorer.readthedocs.io/en/latest/index.h...
- adsharma 5y agoI explore this topic in my blog post from a few months ago: https://adsharma.github.io/flattools-programs/ https://adsharma.github.io/flattools-programs/ In short, django models are written using a very low level of abstraction. I much prefer dataclasses generated from a high level IDL. The blog post compares different IDLs and argues why flatbuffer IDL is more suitable. In order to express queries over such models: https://adsharma.github.io/fquery/ https://adsharma.github.io/fquery/
- adsharma 5y agoAlso see: https://github.com/oxan/djangorestframework-dataclasses/issues/33 https://github.com/oxan/djangorestframework-dataclasses/issu... on how this could work. The author wasn't interested, but I might pursue it in a fork.