Skip to content

Commit

Permalink
third deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
khannakshat7 committed Jul 27, 2020
1 parent 9e771f3 commit 399ad17
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 8 deletions.
Binary file modified InsideUG/__pycache__/settings.cpython-36.pyc
Binary file not shown.
Binary file modified InsideUG/__pycache__/urls.cpython-36.pyc
Binary file not shown.
11 changes: 10 additions & 1 deletion InsideUG/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'InsideUGApp',
#Social login
'django.contrib.sites',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.google',
'allauth.socialaccount.providers.facebook',
]

MIDDLEWARE = [
Expand Down Expand Up @@ -126,4 +133,6 @@
]

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

SITE_ID = 1
3 changes: 2 additions & 1 deletion InsideUG/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path,include
from InsideUGApp import views

urlpatterns = [
path('admin/', admin.site.urls),
path('', views.index, name='index'),
path('accounts/', include('allauth.urls')),
path('books/', views.books, name='books'),
path('courses/', views.courses, name='courses'),
path('category/<path:cat>/', views.category, name='category'),
Expand Down
Binary file modified db.sqlite3
Binary file not shown.
5 changes: 5 additions & 0 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,39 @@
url('./fonts/gilroy-bold-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'gilroy-heavy';
src: url('./fonts/gilroy-heavy-webfont.woff2') format('woff2'),
url('./fonts/gilroy-heavy-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'gilroy-light';
src: url('./fonts/gilroy-light-webfont.woff2') format('woff2'),
url('./fonts/gilroy-light-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'gilroy-medium';
src: url('./fonts/gilroy-medium-webfont.woff2') format('woff2'),
url('./fonts/gilroy-medium-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'gilroy';
src: url('./fonts/gilroy-regular-webfont.woff2') format('woff2'),
url('./fonts/gilroy-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
html {
scroll-behavior: smooth;
Expand Down
Binary file added static/favicon.ico
Binary file not shown.
10 changes: 7 additions & 3 deletions templates/addbook.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ <h1>Add Book</h1>
<label for="exampleFormControlSelect1">Course</label>
<select class="form-control" name="course" id="exampleFormControlSelect1">
<option value="btech">B.Tech</option>
<option value="bsc">B.Sc</option>
<option value="bba">BBA</option>
<option value="ba">BA</option>
<option value="bl">B.Law</option>
<option value="mbbs">MBBS</option>
</select>
</div>
<div class="form-group">
Expand All @@ -36,6 +33,13 @@ <h1>Add Book</h1>
<option value="civil">Civil</option>
<option value="chem">Chemical</option>
<option value="biotech">Bio Tech</option>
<option value="marketing">Marketing</option>
<option value="finance">Finance</option>
<option value="hr">HR</option>
<option value="itanalytics">IT & Analytics</option>
<option value="operations">Operations</option>
<option value="consulting">Consulting</option>
<option value="schooloflaw">School of Law</option>
</select>
</div>
<div class="form-group">
Expand Down
10 changes: 7 additions & 3 deletions templates/addcourse.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ <h1>Add Course</h1>
<label for="exampleFormControlSelect1">Course</label>
<select class="form-control" name="course" id="exampleFormControlSelect1">
<option value="btech">B.Tech</option>
<option value="bsc">B.Sc</option>
<option value="bba">BBA</option>
<option value="ba">BA</option>
<option value="bl">B.Law</option>
<option value="mbbs">MBBS</option>
</select>
</div>
<div class="form-group">
Expand All @@ -36,6 +33,13 @@ <h1>Add Course</h1>
<option value="civil">Civil</option>
<option value="chem">Chemical</option>
<option value="biotech">Bio Tech</option>
<option value="marketing">Marketing</option>
<option value="finance">Finance</option>
<option value="hr">HR</option>
<option value="itanalytics">IT & Analytics</option>
<option value="operations">Operations</option>
<option value="consulting">Consulting</option>
<option value="schooloflaw">School of Law</option>
</select>
</div>
<div class="form-group">
Expand Down
1 change: 1 addition & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<script src="https://use.fontawesome.com/2f18b63e9f.js"></script>
<link rel="shortcut icon" href="{% static 'favicon.ico' %}" />
<link rel="stylesheet" href="{% static 'css/style.css' %}">
</head>

Expand Down
1 change: 1 addition & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<script src="https://use.fontawesome.com/2f18b63e9f.js"></script>
<link rel="shortcut icon" href="{% static 'favicon.ico' %}" />
<link rel="stylesheet" href="{% static 'css/style.css' %}">
</head>

Expand Down

0 comments on commit 399ad17

Please sign in to comment.