Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Django SQL explorer is fantastic as well: https://django-sql-explorer.readthedocs.io/en/latest/index.h...


I'm pushing ~$120 million this year through that exact model. Use what works.

Throwaway for obvious reasons.


Well done! What's the margin?


This 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.


Interesting! 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/


That 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

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.


I took a quick look at the README and this looks like a great resource. Docker-readiness is a nice touch. I should definitely find some time for trying this out. Thank you for the advice, Stavros!


I'm glad you like it!


I 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/


I explore this topic in my blog post from a few months ago:

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/


Also see:

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.


I 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.


I read as just a friendly suggestion that it’s something the OP might want to take a look at (^_^)


I had written it this way because the OP had specifically ruled out using Django. Point taken though.


I 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?


Colloquially "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?




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: