File tree 2 files changed +8
-9
lines changed
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
from django .db import models
2
-
3
2
# Create your models here.
4
3
5
- class back_cliente (models .Model ):
4
+ class cliente (models .Model ):
6
5
cpf = models .CharField (max_length = 11 )
7
6
senha = models .CharField (max_length = 30 )
8
7
endereco = models .CharField (max_length = 50 )
@@ -12,7 +11,7 @@ class back_cliente(models.Model):
12
11
13
12
14
13
15
- class back_compra (models .Model ):
14
+ class compra (models .Model ):
16
15
id_compra = models .IntegerField (default = 0 )
17
16
id_comprador = models .IntegerField (default = 0 )
18
17
cnpj = models .CharField (max_length = 20 )
Original file line number Diff line number Diff line change 31
31
# Application definition
32
32
33
33
INSTALLED_APPS = [
34
- 'polls.apps.PollsConfig ' ,
34
+ 'backend ' ,
35
35
'django.contrib.admin' ,
36
36
'django.contrib.auth' ,
37
37
'django.contrib.contenttypes' ,
78
78
'default' : {
79
79
'ENGINE' : 'django.db.backends.postgresql' ,
80
80
'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' : '' ,
85
85
}
86
86
}
87
87
109
109
110
110
LANGUAGE_CODE = 'en-us'
111
111
112
- TIME_ZONE = 'UTC-3 '
112
+ TIME_ZONE = 'UTC'
113
113
114
114
USE_I18N = True
115
115
You can’t perform that action at this time.
0 commit comments