File tree Expand file tree Collapse file tree 7 files changed +25
-29
lines changed Expand file tree Collapse file tree 7 files changed +25
-29
lines changed Original file line number Diff line number Diff line change 11
11
"""
12
12
13
13
import os
14
- from movie_recommender .aws .conf import *
14
+ # from movie_recommender.aws.conf import *
15
15
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
16
16
BASE_DIR = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
17
17
23
23
SECRET_KEY = '40_$n*hs61m(shf^y0q6&th7i^b!t1rw6k-458_0)ed34ji73v'
24
24
25
25
# 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 = []
33
28
34
29
# Application definition
35
30
125
120
126
121
STATIC_ROOT = os .path .join (BASE_DIR , 'staticfiles/' )
127
122
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
+ ])
133
126
134
127
MEDIA_ROOT = os .path .join (BASE_DIR , 'media' )
135
128
MEDIA_URL = '/media/'
Original file line number Diff line number Diff line change 17
17
< link rel ='stylesheet ' href ='{% static "recommend/css/base.css" %} ' />
18
18
19
19
< style type ="text/css ">
20
+ element .style {
21
+ background-color : # 072d4e ;
22
+ }
20
23
.thumbnail p , .thumbnail h4 {
21
24
white-space : nowrap;
22
25
text-overflow : ellipsis;
68
71
</ style >
69
72
</ head >
70
73
71
- < body style ="background-color:#000 ">
74
+ < body style ="background-color:#052642 ">
72
75
< nav class ="navbar navbar-inverse ">
73
76
< div class ="container-fluid ">
74
77
< div class ="collapse navbar-collapse " id ="topNavBar ">
Original file line number Diff line number Diff line change 17
17
< div class ="row ">
18
18
<!-- Left Movie Info -->
19
19
< 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;">-- >
22
22
< 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; " >
24
24
</ a >
25
25
< h2 > </ h2 >
26
- </ div >
27
- </ div >
26
+ <!-- </div>-- >
27
+ <!-- </div>-- >
28
28
</ div >
29
29
<!-- Right Movie Info -->
30
30
< div class ="col-sm-offset-1 col-sm-4 col-md-4 ">
Original file line number Diff line number Diff line change 7
7
< center style ="color:#fff "> < h2 > Welcome {{user.username}}!!</ h2 > </ center >
8
8
{% endif %}
9
9
10
- < div class ="container ">
10
+ < div class ="container " >
11
11
< div class ="col-xs-6 col-xs-offset-3 ">
12
12
< form class ="form-horizontal " role ="search " method ="get " action =''>
13
13
< div class ="form-group ">
@@ -33,14 +33,14 @@ <h2>Movie List</h2>
33
33
< br >
34
34
35
35
<!-- Movie list -->
36
- < div class ="row ">
36
+ < div class ="row " >
37
37
{% if movies %}
38
38
{% 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; " >
41
41
< center > < h5 > {{movie.title}}</ h5 > </ center >
42
42
< 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; " >
44
44
</ a >
45
45
<!-- <h5>{{movie.genre}}</h5> -->
46
46
</ div >
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ <h2>Recommendations for you</h2>
15
15
{% if movie_list %}
16
16
{% for movie in movie_list %}
17
17
< 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 >
20
20
< 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; " >
22
22
</ a >
23
- < h5 > {{movie.genre}}</ h5 >
23
+ <!-- <center>< h5>{{movie.genre}}</h5></center>-- >
24
24
</ div >
25
25
</ div >
26
26
{% endfor %}
You can’t perform that action at this time.
0 commit comments