Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DIARIO_MANAGER
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
DIARIO_MANAGER
Commits
f9900533
Commit
f9900533
authored
Jan 16, 2018
by
Isaias Santana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adicionando model para clientes
parent
13414c48
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
src/backend/core/migrations/0002_auto_20180116_1134.py
src/backend/core/migrations/0002_auto_20180116_1134.py
+25
-0
src/backend/core/models.py
src/backend/core/models.py
+2
-0
src/config.env
src/config.env
+1
-1
No files found.
src/backend/core/migrations/0002_auto_20180116_1134.py
0 → 100644
View file @
f9900533
# Generated by Django 2.0.1 on 2018-01-16 11:34
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'core'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'cliente'
,
name
=
'email'
,
field
=
models
.
EmailField
(
default
=
'isaiassantan301@gmail.com'
,
max_length
=
70
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'cliente'
,
name
=
'password'
,
field
=
models
.
CharField
(
default
=
'123456'
,
max_length
=
20
),
preserve_default
=
False
,
),
]
src/backend/core/models.py
View file @
f9900533
...
...
@@ -6,6 +6,8 @@ class Cliente(models.Model):
"""Model definition for Cliente."""
domain_name
=
models
.
CharField
(
max_length
=
50
)
email
=
models
.
EmailField
(
max_length
=
70
)
password
=
models
.
CharField
(
max_length
=
20
)
class
Meta
:
"""Meta definition for Cliente."""
...
...
src/config.env
View file @
f9900533
DEBUG=True
DATABASE_URL=postgres://postgres:
pamonha123
@localhost/diario_manager
DATABASE_URL=postgres://postgres:
123456
@localhost/diario_manager
SECRET_KEY='=b+8s@l*rnqjd*=1rrsp!op82-qcgubm6oysex+thbu1+myen-'
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment