Skip to content

Commit e15ae36

Browse files
committed
ui changes
1 parent 5804f19 commit e15ae36

File tree

7 files changed

+25
-29
lines changed

7 files changed

+25
-29
lines changed

db.sqlite3

0 Bytes
Binary file not shown.

movie_recommender/settings.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313
import os
14-
from movie_recommender.aws.conf import *
14+
# from movie_recommender.aws.conf import *
1515
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1616
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
1717

@@ -23,13 +23,8 @@
2323
SECRET_KEY = '40_$n*hs61m(shf^y0q6&th7i^b!t1rw6k-458_0)ed34ji73v'
2424

2525
# SECURITY WARNING: don't run with debug turned on in production!
26-
# If you want to run in production
27-
DEBUG = False
28-
ALLOWED_HOSTS = ['awesome-movie-recommender.herokuapp.com','127.0.0.1']
29-
30-
# If u want to run locally
31-
# DEBUG = True
32-
# ALLOWED_HOSTS = []
26+
DEBUG = True
27+
ALLOWED_HOSTS = []
3328

3429
# Application definition
3530

@@ -125,11 +120,9 @@
125120

126121
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles/')
127122
STATIC_URL = '/static/'
128-
STATICFILES_DIRS = ()
129-
#If you want to run locally
130-
# STATICFILES_DIRS = ([
131-
# os.path.join(BASE_DIR, "static"),
132-
# ])
123+
STATICFILES_DIRS = ([
124+
os.path.join(BASE_DIR, "static"),
125+
])
133126

134127
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
135128
MEDIA_URL = '/media/'

recommend/static/recommend/css/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

recommend/templates/recommend/base.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<link rel='stylesheet' href='{% static "recommend/css/base.css" %}' />
1818

1919
<style type="text/css">
20+
element.style{
21+
background-color:#072d4e;
22+
}
2023
.thumbnail p, .thumbnail h4 {
2124
white-space: nowrap;
2225
text-overflow: ellipsis;
@@ -68,7 +71,7 @@
6871
</style>
6972
</head>
7073

71-
<body style="background-color:#000">
74+
<body style="background-color:#052642">
7275
<nav class="navbar navbar-inverse">
7376
<div class="container-fluid">
7477
<div class="collapse navbar-collapse" id="topNavBar">

recommend/templates/recommend/detail.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
<div class="row">
1818
<!-- Left Movie Info -->
1919
<div class="col-sm-2 col-md-3">
20-
<div class="panel panel-default">
21-
<div class="panel-body">
20+
<!-- <div class="panel panel-default">-->
21+
<!-- <div class="panel-body" style="border-radius: 22px 22px 22px 22px;">-->
2222
<a href="#">
23-
<img src="{{ movies.movie_logo.url}}" class="img-responsive">
23+
<img src="{{ movies.movie_logo.url}}" class="img-responsive" style="border-radius: 22px 22px 22px 22px;">
2424
</a>
2525
<h2></h2>
26-
</div>
27-
</div>
26+
<!-- </div>-->
27+
<!-- </div>-->
2828
</div>
2929
<!-- Right Movie Info -->
3030
<div class="col-sm-offset-1 col-sm-4 col-md-4">

recommend/templates/recommend/list.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<center style="color:#fff"><h2>Welcome {{user.username}}!!</h2></center>
88
{% endif %}
99

10-
<div class="container">
10+
<div class="container" >
1111
<div class="col-xs-6 col-xs-offset-3">
1212
<form class="form-horizontal" role="search" method="get" action=''>
1313
<div class="form-group">
@@ -33,14 +33,14 @@ <h2>Movie List</h2>
3333
<br>
3434

3535
<!-- Movie list -->
36-
<div class="row">
36+
<div class="row" >
3737
{% if movies %}
3838
{% for movie in movies %}
39-
<div class="col-sm-2 col-md-2 ">
40-
<div class="thumbnail">
39+
<div class="col-sm-2 col-md-2">
40+
<div class="thumbnail" style="border-radius: 22px 22px 22px 22px;">
4141
<center><h5>{{movie.title}}</h5></center>
4242
<a href="{% url 'detail' movie.id %}">
43-
<img src="{{ movie.movie_logo.url}}" class="img-responsive">
43+
<img src="{{ movie.movie_logo.url}}" class="img-responsive" style="border-radius: 22px 22px 22px 22px;">
4444
</a>
4545
<!-- <h5>{{movie.genre}}</h5> -->
4646
</div>

recommend/templates/recommend/recommend.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ <h2>Recommendations for you</h2>
1515
{% if movie_list %}
1616
{% for movie in movie_list %}
1717
<div class="col-sm-2 col-md-2 ">
18-
<div class="thumbnail">
19-
<h4>{{movie.title}}</h4>
18+
<div class="thumbnail" style="border-radius: 22px 22px 22px 22px;">
19+
<center><h4>{{movie.title}}</h4></center>
2020
<a href="{% url 'detail' movie.id %}">
21-
<img src="{{ movie.movie_logo.url}}" class="img-responsive">
21+
<img src="{{ movie.movie_logo.url}}" class="img-responsive" style="border-radius: 22px 22px 22px 22px;">
2222
</a>
23-
<h5>{{movie.genre}}</h5>
23+
<!-- <center><h5>{{movie.genre}}</h5></center>-->
2424
</div>
2525
</div>
2626
{% endfor %}

0 commit comments

Comments
 (0)