Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Bullet Journal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Franz Leonard Atanacio
Bullet Journal
Commits
0468b71e
Commit
0468b71e
authored
Apr 07, 2021
by
nikkastra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
starting point
parent
d95f5f5a
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
4 deletions
+48
-4
models.cpython-38.pyc
mysite/bulletjournal/__pycache__/models.cpython-38.pyc
+0
-0
0001_initial.py
mysite/bulletjournal/migrations/0001_initial.py
+21
-0
0001_initial.cpython-38.pyc
...ournal/migrations/__pycache__/0001_initial.cpython-38.pyc
+0
-0
models.py
mysite/bulletjournal/models.py
+22
-1
settings.cpython-38.pyc
mysite/mysite/__pycache__/settings.cpython-38.pyc
+0
-0
e.env
mysite/mysite/e.env
+3
-0
settings.py
mysite/mysite/settings.py
+2
-3
No files found.
mysite/bulletjournal/__pycache__/models.cpython-38.pyc
View file @
0468b71e
No preview for this file type
mysite/bulletjournal/migrations/0001_initial.py
0 → 100644
View file @
0468b71e
# Generated by Django 3.1.7 on 2021-04-07 14:36
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Name'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
100
)),
],
),
]
mysite/bulletjournal/migrations/__pycache__/0001_initial.cpython-38.pyc
0 → 100644
View file @
0468b71e
File added
mysite/bulletjournal/models.py
View file @
0468b71e
from
django.db
import
models
from
django.db
import
models
# Create your models here.
class
Name
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
100
,
unique
=
True
)
image
=
models
.
ImageField
(
upload_to
=
None
)
nickname
=
models
.
CharField
(
max_length
=
50
)
bio
=
models
.
CharField
(
max_length
=
200
)
def
__str__
(
self
):
return
'{} {} {}'
.
format
(
self
.
name
,
self
.
nickname
,
self
.
bio
)
def
get_absolute_url
(
self
):
return
reverse
(
'string'
,
args
=
[
str
(
self
.
name
)])
@
property
def
is_tutorial
(
self
):
return
self
.
units
==
1
class
Tasks
(
models
.
Model
):
name
=
models
.
ForeignKey
(
Name
,
on_delete
=
models
.
CASCADE
)
key
=
models
.
CharField
(
max_length
=
2
)
task
=
models
.
CharField
(
max_length
=
100
)
\ No newline at end of file
mysite/mysite/__pycache__/settings.cpython-38.pyc
View file @
0468b71e
No preview for this file type
mysite/mysite/e.env
0 → 100644
View file @
0468b71e
SECRET_KEY = 'x+@o#@l9kc94!9+(c4gy*ma6*^h)5e&l(wz8k9g%8%js^bcd%1'
DB_NAME = labbujo
DB_USER = franz
\ No newline at end of file
mysite/mysite/settings.py
View file @
0468b71e
...
@@ -78,9 +78,8 @@ WSGI_APPLICATION = 'mysite.wsgi.application'
...
@@ -78,9 +78,8 @@ WSGI_APPLICATION = 'mysite.wsgi.application'
DATABASES
=
{
DATABASES
=
{
'default'
:
{
'default'
:
{
'ENGINE'
:
'django.db.backends.postgresql_psycopg2'
,
'ENGINE'
:
'django.db.backends.postgresql_psycopg2'
,
'NAME'
:
'mysite'
,
'NAME'
:
os
.
getenv
(
"DB_NAME"
),
'USER'
:
'postgres'
,
'USER'
:
os
.
getenv
(
'DB_USER'
),
'PASSWORD'
:
'RawrrXD123'
,
'HOST'
:
'localhost'
,
'HOST'
:
'localhost'
,
'PORT'
:
'5432'
,
'PORT'
:
'5432'
,
}
}
...
...
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