go-django

module
v1.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: GPL-2.0

README

go-django (v2)

1719351174099

Django rewritten to Golang.

This is a rewrite of the Django framework in Golang.

The goal is to provide a similar experience to Django, but with the performance of Golang.

At the core this is meant to be a web framework, but it also includes sub-packages to create a CMS-like experience.

Any database logic can be implemented with the queries subpackage, providing an experience similar to the Django ORM.

Documentation needs to be updated.

You can run an example blog- application by cloning the repository and executing:

mkdir ./.private/blogapp
go run ./examples/blogapp makemigrations
go run ./examples/blogapp migrate
go run ./examples/blogapp createuser -s # -s to make superuser, -i to make inactive user
go run ./examples/blogapp

# Navigate to: http://127.0.0.1:8080/admin/login
# Explore!

Latest version: v1.7.1.1

Installation

The package is easily installed with go get.

go get github.com/Nigel2392/go-django@v1.7.1.1
go get github.com/Nigel2392/go-django/queries@v1.7.1.1

The CLI can optionally be installed with go install.

This will provide some useful utilities to help you get started, like creating a new project, app or Dockerfile.

go install github.com/Nigel2392/go-django/cmd/go-django@v1.7.1.1

Or to install the SQLC plugin to auto- generate SQL queries and go-django definitions from your SQL database.

go install github.com/Nigel2392/go-django/cmd/go-django-definitions@v1.7.1.1

Docs

Contrib apps

Tested Databases

GO-Django is tested to work on the following databases:

But more tests / databases will be added over time.

Examples
How to work with models in the database
  • go-django/queries - A library to help you create SQL queries specialized (and only useful) for go-django models.

Help Needed

  • Block application:
    • Javascript for structblock
    • Javascript for listblock
    • (maybe) Javascript for fieldblock

Projects written in Go-Django

Directories

Path Synopsis
cmd
go-django module
djester module
examples
blogapp module
todoapp module
pkg
yml module
queries module
src
contrib/admin
templ: version: v0.3.1020
templ: version: v0.3.1020
contrib/admin/chooser
templ: version: v0.3.1020
templ: version: v0.3.1020
contrib/admin/components
templ: version: v0.3.1020
templ: version: v0.3.1020
contrib/admin/components/columns
templ: version: v0.3.1020
templ: version: v0.3.1020
contrib/admin/components/menu
templ: version: v0.3.1020
templ: version: v0.3.1020
contrib/blocks
templ: version: v0.3.1020
templ: version: v0.3.1020
contrib/editor
templ: version: v0.3.1020
templ: version: v0.3.1020
contrib/editor/features
templ: version: v0.3.1020
templ: version: v0.3.1020
contrib/pages
templ: version: v0.3.1020
templ: version: v0.3.1020
core
Default signals for authentication events.
Default signals for authentication events.
core/pagination
templ: version: v0.3.1020
templ: version: v0.3.1020
forms/widgets
templ: version: v0.3.1020
templ: version: v0.3.1020
views/list
templ: version: v0.3.1020
templ: version: v0.3.1020

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL