Skip to content

Nigel2392/go-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Installation

The package is easily installed with go get.

go get github.com/Nigel2392/go-django@v1.7.0

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

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

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

About

An attempt at a django-like web framework, written in Go.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published