Fakultas Ilmu Komputer UI

Commit e03f9511 authored by Izzatul Muttaqin's avatar Izzatul Muttaqin
Browse files

Revamp

parent 174ed399
Pipeline #28201 passed with stages
in 15 minutes and 13 seconds
......@@ -3,7 +3,7 @@ stages:
- functional_test
- deploy
Test:
UnitTest:
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
......
from django.apps import AppConfig
class PracticeConfig(AppConfig):
name = 'practice'
class ListsConfig(AppConfig):
name = 'lists'
from django.db import models
class Item(models.Model):
text = models.TextField(default='')
text = models.TextField(default='')
\ No newline at end of file
......@@ -38,7 +38,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'practice',
'lists'
]
MIDDLEWARE = [
......
......@@ -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')),
]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment