pip 20.0.2 from c:\users\val1n0r\appdata\local\programs\python\python37-32\lib\site-packages\pip (python 3.7)
(vi) ➜ main gunicorn main.wsgi:application --bind 194.87.110.108:8000
[2020-04-26 12:57:54 +0300] [37056] [INFO] Starting gunicorn 20.0.4
[2020-04-26 12:57:54 +0300] [37056] [INFO] Listening at: http://194.87.110.108:8000 (37056)
[2020-04-26 12:57:54 +0300] [37056] [INFO] Using worker: sync
[2020-04-26 12:57:54 +0300] [37059] [INFO] Booting worker with pid: 37059
class UserResource(models.Model):
user_res = models.OneToOneField(User,on_delete=models.CASCADE,primary_key=True)
user_stone = models.IntegerField(default=50)
user_tree = models.IntegerField(default=50)
user_steel = models.IntegerField(default=50)
def __str__(self):
return str(self.user_res.username + ' | Камень: ' + str(self.user_stone) + '| Дерево:' + str(self.user_tree) + '| Железо:' + str(self.user_steel))