Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
esguerra_lab1
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
James Esguerra
esguerra_lab1
Commits
9e1c35a8
Commit
9e1c35a8
authored
Mar 16, 2021
by
James Esguerra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed ShowHome function to render 'home' template
parent
ed846083
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
5 deletions
+22
-5
forms.cpython-38.pyc
pages/__pycache__/forms.cpython-38.pyc
+0
-0
views.cpython-38.pyc
pages/__pycache__/views.cpython-38.pyc
+0
-0
forms.py
pages/forms.py
+1
-1
views.py
pages/views.py
+1
-1
base.html
templates/base.html
+3
-3
home.html
templates/home.html
+17
-0
No files found.
pages/__pycache__/forms.cpython-38.pyc
View file @
9e1c35a8
No preview for this file type
pages/__pycache__/views.cpython-38.pyc
View file @
9e1c35a8
No preview for this file type
pages/forms.py
View file @
9e1c35a8
...
...
@@ -2,4 +2,4 @@ from django import forms
class
HomeForm
(
forms
.
Form
):
name
=
forms
.
CharField
(
label
=
'
User Name
'
,
max_length
=
100
)
name
=
forms
.
CharField
(
label
=
''
,
max_length
=
100
)
pages/views.py
View file @
9e1c35a8
...
...
@@ -5,4 +5,4 @@ from .forms import HomeForm
def
ShowHome
(
request
):
form
=
HomeForm
()
return
render
(
request
,
'
bas
e.html'
,
{
'form'
:
form
})
return
render
(
request
,
'
hom
e.html'
,
{
'form'
:
form
})
templates/base.html
View file @
9e1c35a8
...
...
@@ -19,13 +19,13 @@
<a
href=
'/profile'
>
Profile
</a>
</div>
<div>
<a
href=
'/
profile
'
>
Key
</a>
<a
href=
'/
Key
'
>
Key
</a>
</div>
<div>
<a
href=
'/
profile
'
>
This Week
</a>
<a
href=
'/
This Week
'
>
This Week
</a>
</div>
<div>
<a
href=
'/
profile
'
>
Today
</a>
<a
href=
'/
Today
'
>
Today
</a>
</div>
</div>
</header>
...
...
templates/home.html
0 → 100644
View file @
9e1c35a8
{% extends 'base.html' %}
{% block title %} Your Bujo {% endblock %}
{% block header %} Your Bullet Journal {% endblock %}
{% block content %}
<h1>
Hello! What is your name?
</h1>
<form
action=
'/home/'
method=
'post'
>
{% csrf_token %}
{{ form }}
<input
type=
'submit'
value=
'Submit'
>
</form>
{% endblock %}
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