Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Academe
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nathan Kibanoff
Academe
Commits
125ce2c5
Commit
125ce2c5
authored
Nov 02, 2017
by
JayCay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Log in
parent
8e6380b2
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
0 deletions
+34
-0
settings.cpython-36.pyc
academe/__pycache__/settings.cpython-36.pyc
+0
-0
urls.cpython-36.pyc
academe/__pycache__/urls.cpython-36.pyc
+0
-0
settings.py
academe/settings.py
+1
-0
urls.py
academe/urls.py
+1
-0
db.sqlite3
db.sqlite3
+0
-0
base.html
templates/base.html
+1
-0
login.html
templates/login.html
+31
-0
No files found.
academe/__pycache__/settings.cpython-36.pyc
View file @
125ce2c5
No preview for this file type
academe/__pycache__/urls.cpython-36.pyc
View file @
125ce2c5
No preview for this file type
academe/settings.py
View file @
125ce2c5
...
...
@@ -134,4 +134,5 @@ STATICFILES_DIRS = [
# Tells django where to put static files after collectstatic
STATIC_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
'staticfiles'
)
LOGIN_REDIRECT_URL
=
'reviews_index'
LOGOUT_REDIRECT_URL
=
'reviews_index'
\ No newline at end of file
academe/urls.py
View file @
125ce2c5
...
...
@@ -25,6 +25,7 @@ from profs import views as profs_views
urlpatterns
=
[
url
(
r'^signup/$'
,
accounts_views
.
signup
,
name
=
'signup'
),
url
(
r'^login/$'
,
auth_views
.
LoginView
.
as_view
(
template_name
=
'templates/login.html'
),
name
=
'login'
),
url
(
r'^logout/$'
,
auth_views
.
LogoutView
.
as_view
(),
name
=
'logout'
),
url
(
r'^admin/'
,
admin
.
site
.
urls
),
url
(
r'^$'
,
reviews_views
.
index
,
name
=
"reviews_index"
),
...
...
db.sqlite3
View file @
125ce2c5
No preview for this file type
templates/base.html
View file @
125ce2c5
...
...
@@ -11,6 +11,7 @@
<ul>
<li><a
href=
"{% url 'reviews_index' %}"
>
Home
</a></li>
<li><a
href=
"{% url 'profs_index' %}"
>
Profs
</a></li>
<li><a
href=
"{% url 'login' %}"
>
Log in
</a></li>
<li>
{{ user.username }}
</li>
</ul>
</nav>
...
...
templates/login.html
0 → 100644
View file @
125ce2c5
{% extends 'templates/base.html' %}
{% block content %}
<div
class=
"container"
>
<h1
class=
"text-center logo my-4"
>
<a
href=
"{% url 'reviews_index'%}"
>
Academe
</a>
</h1>
<div
class=
"row justify-content-center"
>
<div
class=
"col-lg-4 col-md-6 col-sm-8"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<h3
class=
"card-title"
>
Log in
</h3>
<form
method=
"post"
novalidate
>
{% csrf_token %}
{% include 'templates/includes/form.html' %}
<button
type=
"submit"
class=
"btn btn-primary btn-block"
>
Log in
</button>
</form>
</div>
<div
class=
"card-footer text-muted text-center"
>
New to Academe?
<a
href=
"{% url 'signup' %}"
>
Sign up
</a>
</div>
</div>
<div
class=
"text-xenter py-2"
>
<small>
<a
href=
"#"
class=
"text-muted"
>
Forgot your password?
</a>
</small>
</div>
</div>
</div>
</div>
{% endblock %}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment