Skip to content

Commit a45c87b

Browse files
committed
Fix postgres setup
1 parent 29d3921 commit a45c87b

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

backend/models.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from django.db import models
2-
32
# Create your models here.
43

5-
class back_cliente(models.Model):
4+
class cliente(models.Model):
65
cpf = models.CharField(max_length=11)
76
senha = models.CharField(max_length=30)
87
endereco = models.CharField(max_length=50)
@@ -12,7 +11,7 @@ class back_cliente(models.Model):
1211

1312

1413

15-
class back_compra(models.Model):
14+
class compra(models.Model):
1615
id_compra = models.IntegerField(default=0)
1716
id_comprador = models.IntegerField(default=0)
1817
cnpj = models.CharField(max_length=20)

boi_voador/settings.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# Application definition
3232

3333
INSTALLED_APPS = [
34-
'polls.apps.PollsConfig',
34+
'backend',
3535
'django.contrib.admin',
3636
'django.contrib.auth',
3737
'django.contrib.contenttypes',
@@ -78,10 +78,10 @@
7878
'default': {
7979
'ENGINE': 'django.db.backends.postgresql',
8080
'NAME': 'hackathonrecife',
81-
'USER': 'postgres',
82-
'PASSWORD': 'postgres',
83-
'HOST': '127.0.0.1',
84-
'PORT': '5433',
81+
'USER': 'rhpr',
82+
'PASSWORD': 'root',
83+
'HOST': 'localhost',
84+
'PORT': '',
8585
}
8686
}
8787

@@ -109,7 +109,7 @@
109109

110110
LANGUAGE_CODE = 'en-us'
111111

112-
TIME_ZONE = 'UTC-3'
112+
TIME_ZONE = 'UTC'
113113

114114
USE_I18N = True
115115

0 commit comments

Comments
 (0)