Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
theGoodPlaceFroyo
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
1
Merge Requests
1
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
Neil Patrick Lim de los Reyes
theGoodPlaceFroyo
Commits
fdd38349
Commit
fdd38349
authored
Mar 18, 2020
by
Neil Patrick Lim de los Reyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding html to templates folder, html to urls, defining requests to show html in views
parent
b449571c
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
148 additions
and
3 deletions
+148
-3
urls.py
thegoodplace/froyo/urls.py
+14
-1
views.py
thegoodplace/froyo/views.py
+25
-1
ingredients_create_form.html
thegoodplace/templates/ingredients_create_form.html
+9
-0
ingredients_detail.html
thegoodplace/templates/ingredients_detail.html
+9
-0
ingredients_list.html
thegoodplace/templates/ingredients_list.html
+9
-0
ingredients_update_form.html
thegoodplace/templates/ingredients_update_form.html
+9
-0
orders_create_form.html
thegoodplace/templates/orders_create_form.html
+9
-0
orders_detail.html
thegoodplace/templates/orders_detail.html
+9
-0
orders_list.html
thegoodplace/templates/orders_list.html
+9
-0
orders_update_form.html
thegoodplace/templates/orders_update_form.html
+9
-0
recipes_create_form.html
thegoodplace/templates/recipes_create_form.html
+9
-0
recipes_detail.html
thegoodplace/templates/recipes_detail.html
+9
-0
recipes_list.html
thegoodplace/templates/recipes_list.html
+9
-0
recipes_update_form.html
thegoodplace/templates/recipes_update_form.html
+9
-0
urls.py
thegoodplace/thegoodplace/urls.py
+1
-1
No files found.
thegoodplace/froyo/urls.py
View file @
fdd38349
...
@@ -2,5 +2,18 @@ from django.conf.urls import url
...
@@ -2,5 +2,18 @@ from django.conf.urls import url
from
.
import
views
from
.
import
views
urlpatterns
=
[
urlpatterns
=
[
url
(
r'list/'
,
views
.
list
)
url
(
r'ingredients_list/'
,
views
.
ingredients_list
),
url
(
r'ingredients_detail/'
,
views
.
ingredients_detail
),
url
(
r'ingredients_update_form/'
,
views
.
ingredients_update_form
),
url
(
r'ingredients_create_form/'
,
views
.
ingredients_create_form
),
url
(
r'recipes_list/'
,
views
.
recipes_list
),
url
(
r'recipes_detail/'
,
views
.
recipes_detail
),
url
(
r'recipes_update_form/'
,
views
.
recipes_update_form
),
url
(
r'recipes_create_form/'
,
views
.
recipes_create_form
),
url
(
r'orders_list/'
,
views
.
orders_list
),
url
(
r'orders_detail/'
,
views
.
orders_detail
),
url
(
r'orders_update_form/'
,
views
.
orders_update_form
),
url
(
r'orders_create_form/'
,
views
.
orders_create_form
),
]
]
\ No newline at end of file
thegoodplace/froyo/views.py
View file @
fdd38349
from
django.shortcuts
import
render
from
django.shortcuts
import
render
def
list
(
request
):
def
ingredients_
list
(
request
):
return
render
(
request
,
'ingredients_list.html'
)
return
render
(
request
,
'ingredients_list.html'
)
def
ingredients_detail
(
request
):
return
render
(
request
,
'ingredients_detail.html'
)
def
ingredients_update_form
(
request
):
return
render
(
request
,
'ingredients_update_form.html'
)
def
ingredients_create_form
(
request
):
return
render
(
request
,
'ingredients_create_form.html'
)
def
recipes_list
(
request
):
return
render
(
request
,
'recipes_list.html'
)
def
recipes_detail
(
request
):
return
render
(
request
,
'recipes_detail.html'
)
def
recipes_update_form
(
request
):
return
render
(
request
,
'recipes_update_form.html'
)
def
recipes_create_form
(
request
):
return
render
(
request
,
'recipes_create_form.html'
)
def
orders_list
(
request
):
return
render
(
request
,
'orders_list.html'
)
def
orders_detail
(
request
):
return
render
(
request
,
'orders_detail.html'
)
def
orders_update_form
(
request
):
return
render
(
request
,
'orders_update_form.html'
)
def
orders_create_form
(
request
):
return
render
(
request
,
'orders_create_form.html'
)
\ No newline at end of file
thegoodplace/templates/ingredients_create_form.html
0 → 100644
View file @
fdd38349
<!DOCTYPE html>
<html>
<head>
<title>
Ingredients - Create
</title>
</head>
<body>
<h1>
Ingredients - Create
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/templates/ingredients_detail.html
0 → 100644
View file @
fdd38349
<!DOCTYPE html>
<html>
<head>
<title>
Ingredients - Detail
</title>
</head>
<body>
<h1>
Ingredients - Detail
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/templates/ingredients_list.html
0 → 100644
View file @
fdd38349
<!DOCTYPE html>
<html>
<head>
<title>
Ingredients - List
</title>
</head>
<body>
<h1>
Ingredients - List
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/templates/ingredients_update_form.html
0 → 100644
View file @
fdd38349
<!DOCTYPE html>
<html>
<head>
<title>
Ingredients - Update
</title>
</head>
<body>
<h1>
Ingredients - Update
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/templates/orders_create_form.html
0 → 100644
View file @
fdd38349
<!DOCTYPE html>
<html>
<head>
<title>
Orders - Create
</title>
</head>
<body>
<h1>
Orders - Create
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/templates/orders_detail.html
0 → 100644
View file @
fdd38349
<!DOCTYPE html>
<html>
<head>
<title>
Orders - Detail
</title>
</head>
<body>
<h1>
Orders - Detail
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/templates/orders_list.html
0 → 100644
View file @
fdd38349
<!DOCTYPE html>
<html>
<head>
<title>
Orders - List
</title>
</head>
<body>
<h1>
Orders - List
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/templates/orders_update_form.html
0 → 100644
View file @
fdd38349
<!DOCTYPE html>
<html>
<head>
<title>
Orders - Update
</title>
</head>
<body>
<h1>
Orders - Update
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/templates/recipes_create_form.html
0 → 100644
View file @
fdd38349
<!DOCTYPE html>
<html>
<head>
<title>
Recipes - Create
</title>
</head>
<body>
<h1>
Recipes - Create
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/templates/recipes_detail.html
0 → 100644
View file @
fdd38349
<!DOCTYPE html>
<html>
<head>
<title>
Recipes - Detail
</title>
</head>
<body>
<h1>
Recipes - Detail
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/templates/recipes_list.html
0 → 100644
View file @
fdd38349
<!DOCTYPE html>
<html>
<head>
<title>
Recipes - List
</title>
</head>
<body>
<h1>
Recipes - List
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/templates/recipes_update_form.html
0 → 100644
View file @
fdd38349
<!DOCTYPE html>
<html>
<head>
<title>
Recipes - Update
</title>
</head>
<body>
<h1>
Recipes - Update
</h1>
</body>
</html>
\ No newline at end of file
thegoodplace/thegoodplace/urls.py
View file @
fdd38349
...
@@ -14,7 +14,7 @@ Including another URLconf
...
@@ -14,7 +14,7 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
"""
from
django.conf.urls
import
url
from
django.conf.urls
import
url
,
include
from
django.contrib
import
admin
from
django.contrib
import
admin
urlpatterns
=
[
urlpatterns
=
[
...
...
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