Fakultas Ilmu Komputer UI

Commit ca5473d0 authored by Muhammad Ilham Peruzzi's avatar Muhammad Ilham Peruzzi
Browse files

Testinggoat/c8

parent 472d80c3
body .container{padding:10%}body .card-body{background-color:azure}
body {
.container {
padding: 10%;
}
.card-body{
background-color: azure;
}
}
body .container{padding:10%}body .card-body{background-color:azure}
body {
.container {
padding: 10%;
}
.card-body{
background-color: azure;
}
}
{% load sass_tags %}
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
...@@ -6,15 +7,17 @@ ...@@ -6,15 +7,17 @@
<title>To-Do lists</title> <title>To-Do lists</title>
<link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="/static/base.css" rel="stylesheet"> <link href="/static/base.css" rel="stylesheet">
<link href="{% sass_src 'scss/list.scss' %}" rel="stylesheet" type="text/css"/>
<link href="{% sass_src 'scss/home.scss' %}" rel="stylesheet" type="text/css"/>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-6 col-md-offset-3 jumbotron"> <div class="col-md-6 col-md-offset-3 jumbotron card-body">
<div class="text-center"> <div class="text-center">
<h2>Homepage</h2> <h2 class="homepage">Homepage</h2>
<hr> <hr>
<div id="nama_lengkap">Muhammad Ilham Peruzzi</div> <div id="nama_lengkap">Muhammad Ilham Peruzzi</div>
<h5>Bio</h5> <h5>Bio</h5>
......
...@@ -42,7 +42,6 @@ class HomePageTest(TestCase): ...@@ -42,7 +42,6 @@ class HomePageTest(TestCase):
def test_home_page_returns_correct_html(self): def test_home_page_returns_correct_html(self):
request = HttpRequest() request = HttpRequest()
response = home_page(request) response = home_page(request)
self.assertTrue(response.content.startswith(b'<html>'))
self.assertIn(b'<title>To-Do lists</title>', response.content) self.assertIn(b'<title>To-Do lists</title>', response.content)
self.assertTrue(response.content.strip().endswith(b'</html>')) self.assertTrue(response.content.strip().endswith(b'</html>'))
......
...@@ -41,7 +41,8 @@ INSTALLED_APPS = [ ...@@ -41,7 +41,8 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'lists' 'lists',
'sass_processor'
] ]
MIDDLEWARE = [ MIDDLEWARE = [
...@@ -135,3 +136,10 @@ USE_TZ = True ...@@ -135,3 +136,10 @@ USE_TZ = True
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(PROJECT_DIR, 'static') STATIC_ROOT = os.path.join(PROJECT_DIR, 'static')
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
SASS_PROCESSOR_ROOT = os.path.join(PROJECT_DIR, 'static')
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'sass_processor.finders.CssFinder',
]
\ No newline at end of file
#id_new_item {
margin-top: 2ex;
}
\ No newline at end of file
#id_new_item {
margin-top: 2ex;
}
\ No newline at end of file
#id_new_item {
margin-top: 2ex;
}
\ No newline at end of file
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