Skip to main content

Translate django model to go struct.

Project description

# Django Model 2 Go Struct

for gorm or other ORM operation.

Depends in go code:

https://github.com/jinzhu/gorm

https://github.com/guregu/null

## Install

```bash
git clone /django2go.git
cd django2go
python setup.py install .
```

## Usage:

settings.py

```python
INSTALLED_APPS = [
...
'django2go',
...
]

```

run CMD:

`python manage.py model2go app_name`

Example generated go code: [testapp.go](./test_project/testapp.go)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django2go-0.1.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

django2go-0.1.1-py2.py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page