Dump existing data:
python3 manage.py dumpdata > datadump.json
Change settings.py to Postgres backend.
Make sure you can connect on PostgreSQL. Then:
on se dirige en occident et en france a un systeme a la weechat ou l'app de chat fait tout. | |
# -*- coding: utf-8 -*- | |
import Image | |
def resize_and_crop(img_path, modified_path, size, crop_type='top'): | |
""" | |
Resize and crop an image to fit the specified size. | |
args: | |
img_path: path for the image to resize. |
root@Kusanagi:/home/bussiere# zpool import storedb | |
root@Kusanagi:/home/bussiere# zfs set mountpoint=/Data storedb | |
root@Kusanagi:/home/bussiere# systemctl restart postgresql |
root@Kusanagi:/home/bussiere# zpool import storedb | |
root@Kusanagi:/home/bussiere# zfs set mountpoint=/Data storedb |
python3 -m json.tool < export_05_02_2019_AT_17_28_final.json > final.json |
import "math" | |
// haversin(θ) function | |
func hsin(theta float64) float64 { | |
return math.Pow(math.Sin(theta/2), 2) | |
} | |
// Distance function returns the distance (in meters) between two points of | |
// a given longitude and latitude relatively accurately (using a spherical | |
// approximation of the Earth) through the Haversin Distance Formula for |
package main | |
import ( | |
"fmt" | |
"github.com/starlight-go/starlight" | |
) | |
type contact struct { | |
Name string | |
} |
func main() { | |
var reception = Data{} | |
var sendData = Data{} | |
sendData.Fruit = "Melon" | |
url := "http://localhost:8309/" | |
fmt.Println("URL:>", url) | |
js, err := json.Marshal(sendData) |