Building a full Django project, starting with a single file

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • nanodjango

    Run Django models and views from a single file, and convert it to a full project.

  • The app-based model is really baked into Django. As we've seen from a bunch of examples, especially recently, it's not too hard to build out a single-file project that serves a simple home page with a brief message. As soon as you want to support a full actual page, and a set of pages, you really have to figure out a well-thought-out plan for how people will expand the project.

    If you're still interested in this work, I suggest checking out nanodjango, which was mentioned earlier in this thread. That project is new, but there's a plan from the outset for how people can transition from the single-file based version to a standard Django project. You might also want to check out Andrew Godwin's django-singlefile project. It's meant to support small flask-like projects, where you don't have any intention of expanding out into a standard Django project.

    Both of these projects have their own code that takes what's included in the small file and tells Django how to make sense of it. That's much different than the projects that are only trying to make use of what's included in Django itself.

    (I'm the author of the Django from first principles series that was submitted here, but I didn't see it on HN until this morning.)

    nanodjango: https://github.com/radiac/nanodjango

    django-singlefile: https://github.com/andrewgodwin/django-singlefile

  • djng

    Turtles all the way down

  • I'm a big fan of the single-file Django ambition - it's the feature I most envy from frameworks like Flask and Starlette.

    I actually had a go at this myself 15 years ago, with a project I called Djng: https://github.com/simonw/djng - more details on that here: https://simonwillison.net/2009/May/19/djng/

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • djantic

    Pydantic model support for Django

  • tortoise-orm

    Familiar asyncio ORM for python, built with relations in mind

  • django-first-principles

    A Django project, developed from a single file.

  • also here's the repo: https://github.com/ehmatthes/django-first-principles/

  • iommi

    Your first pick for a django power cord

  • It's not really tied to manage.py no. And in any case that's a trivial 3 lines of code (plus imports, blank lines: https://github.com/iommirocks/iommi/blob/master/examples/man...).

    I think you're overdramatizing 3 lines of code...

  • django-singlefile

  • The app-based model is really baked into Django. As we've seen from a bunch of examples, especially recently, it's not too hard to build out a single-file project that serves a simple home page with a brief message. As soon as you want to support a full actual page, and a set of pages, you really have to figure out a well-thought-out plan for how people will expand the project.

    If you're still interested in this work, I suggest checking out nanodjango, which was mentioned earlier in this thread. That project is new, but there's a plan from the outset for how people can transition from the single-file based version to a standard Django project. You might also want to check out Andrew Godwin's django-singlefile project. It's meant to support small flask-like projects, where you don't have any intention of expanding out into a standard Django project.

    Both of these projects have their own code that takes what's included in the small file and tells Django how to make sense of it. That's much different than the projects that are only trying to make use of what's included in Django itself.

    (I'm the author of the Django from first principles series that was submitted here, but I didn't see it on HN until this morning.)

    nanodjango: https://github.com/radiac/nanodjango

    django-singlefile: https://github.com/andrewgodwin/django-singlefile

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • FastAPI with Django ORM

    3 projects | /r/FastAPI | 13 Feb 2022
  • Help wanted: support for PR

    2 projects | /r/FastAPI | 6 Jun 2023
  • What DB and Hosting Site should I use for my Python Bot?

    1 project | /r/Discord_Bots | 27 Sep 2022
  • Which ORM framework are you using with Python, and why?

    1 project | /r/Python | 10 Sep 2022
  • Using Django ORM in asyncio project without Django?

    2 projects | /r/django | 6 Jun 2022