models.py 1005 B

12345678910111213141516171819202122
  1. # Create your models here.
  2. #from __future__ import unicode_literals
  3. # Create your models here.
  4. from django.db import models
  5. class ProxyServer(models.Model):
  6. id = models.IntegerField(db_column='id',primary_key=True)
  7. nome = models.CharField(db_column='nome',max_length=30) #nome del server
  8. sub = models.CharField(db_column='sub',max_length=10) #non me lo ricordo!
  9. server = models.CharField(db_column='server',max_length=15) #ip del server
  10. http = models.IntegerField(db_column='http') # porta http (questa porta insieme a https deve essere raggiungibile dal proxy)
  11. https = models.IntegerField(db_column='https') # porta https
  12. enabled = models.BooleanField(db_column='enabled')
  13. path = models.CharField(db_column='path',max_length=64) # boh, non mi ricordo!
  14. httpconfig = models.TextField(db_column='httpconfig') # usato per indicare dove scaricare le configurazioni
  15. httpsconfig = models.TextField(db_column='httpsconfig')
  16. class Meta:
  17. db_table = 'proxy_server'
  18. managed = False