from django.db import models
class Blog(models.Model):
name = models.CharField(max_length=100)
tagline = models.TextField()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
const uint16_t port = 8585; | |
const char *host = "SERVER-IP"; | |
WiFiClient client; | |
void setup() | |
{ | |
Serial.begin(115200); |
Notic :
If you have foreign key in new filds,must allow null(like below) or set default value else don't work
from django.db.models.signals import post_save
from django.dispatch import receiver
class Role(models.Model):
RoleID = models.IntegerField(primary_key=True)
name = models.CharField(max_length=10)
i
x , X
o , O
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys | |
os.execl(sys.executable, sys.executable, * sys.argv) |
OlderNewer