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)
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.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for django2go-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bd4a1dfe91228cbdcc2325ce2085072a10129a9190e6c2efc8458dcd0c7c1d2 |
|
MD5 | 4214c46904794c8c707f428817ccaeeb |
|
BLAKE2b-256 | db117a92083a6115f5ee8c2765b7d168e8dfb0ed043122ac5fccb4eff2d98fc5 |