Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1606837915-practice
Commits
e03f9511
Commit
e03f9511
authored
Dec 23, 2019
by
Izzatul Muttaqin
Browse files
Revamp
parent
174ed399
Pipeline
#28201
passed with stages
in 15 minutes and 13 seconds
Changes
12
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e03f9511
...
...
@@ -3,7 +3,7 @@ stages:
-
functional_test
-
deploy
Test
:
Unit
Test
:
image
:
python:3.6
stage
:
test
before_script
:
...
...
@@ -12,7 +12,7 @@ Test:
script
:
-
python3 manage.py makemigrations
-
python3 manage.py migrate
-
python3 manage.py test
practice
-
python3 manage.py test
lists
tags
:
-
test
...
...
practice
/__init__.py
→
lists
/__init__.py
View file @
e03f9511
File moved
practice
/admin.py
→
lists
/admin.py
View file @
e03f9511
File moved
practice
/apps.py
→
lists
/apps.py
View file @
e03f9511
from
django.apps
import
AppConfig
class
Practice
Config
(
AppConfig
):
name
=
'
practice
'
class
Lists
Config
(
AppConfig
):
name
=
'
lists
'
practice
/helper.py
→
lists
/helper.py
View file @
e03f9511
File moved
practice
/models.py
→
lists
/models.py
View file @
e03f9511
from
django.db
import
models
class
Item
(
models
.
Model
):
text
=
models
.
TextField
(
default
=
''
)
text
=
models
.
TextField
(
default
=
''
)
\ No newline at end of file
practice
/templates/homepage/home.html
→
lists
/templates/homepage/home.html
View file @
e03f9511
File moved
practice
/tests.py
→
lists
/tests.py
View file @
e03f9511
File moved
practice
/urls.py
→
lists
/urls.py
View file @
e03f9511
File moved
practice
/views.py
→
lists
/views.py
View file @
e03f9511
File moved
testproject/settings.py
View file @
e03f9511
...
...
@@ -38,7 +38,7 @@ INSTALLED_APPS = [
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'
practice'
,
'
lists'
]
MIDDLEWARE
=
[
...
...
testproject/urls.py
View file @
e03f9511
...
...
@@ -17,9 +17,9 @@ from django.contrib import admin
from
django.urls
import
path
from
django.conf.urls
import
url
,
include
import
practice
.urls
as
practice
import
lists
.urls
as
lists
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
url
(
r
'^'
,
include
((
practice
,
'practice
'
),
namespace
=
'
practice
'
)),
url
(
r
'^'
,
include
((
lists
,
'lists
'
),
namespace
=
'
lists
'
)),
]
Write
Preview
Supports
Markdown
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