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.
There is a caveat though; we try to touch the database as little as possible.
This means that we don't have a full ORM like Django does.
Any database logic should be implemented by the end-developer, but all sub-packages which require it do provide backends to use with MySQL and SQLite. Postgres is not planned yet.
Latest version: v1.7.0
The package is easily installed with go get
.
go get github.com/Nigel2392/[email protected]
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/[email protected]
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/[email protected]
- Using the CLI
- Configuring your server
- Creating an app
- Setting up Routing
- Working with context
- Working with the Filesystem
- Rendering Your Templates
- Easily rendering Views (WIP)
- Creating Forms
- Information about models
- Paginating your data
- Cache Management
- Caching your Views
- Sending Emails
- Setting up Logging
- Setting up and calling Hooks
- Serving your Staticfiles
- Working with permissions
- Creating Management Commands
- go-django-queries - A library to help you create SQL queries specialized (and only useful) for go-django models.
- Block application:
- Javascript for structblock
- Javascript for listblock
- (maybe) Javascript for fieldblock