Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40 Project1
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
Jason
CSCI40 Project1
Commits
4d6eaaf9
Commit
4d6eaaf9
authored
Apr 01, 2020
by
Jason
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'revert-
59925c40
' into 'master'
Revert "removed redundant files" See merge request
!2
parents
59925c40
3e8454db
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
247 additions
and
0 deletions
+247
-0
froyo_homepage.html
froyo/templates/froyo_homepage.html
+6
-0
ingredients_create_form.html
froyo/templates/ingredients_create_form.html
+6
-0
ingredients_detail.html
froyo/templates/ingredients_detail.html
+6
-0
ingredients_list.html
froyo/templates/ingredients_list.html
+6
-0
ingredients_update_form.html
froyo/templates/ingredients_update_form.html
+6
-0
orders_create_form.html
froyo/templates/orders_create_form.html
+6
-0
orders_detail.html
froyo/templates/orders_detail.html
+6
-0
orders_list.html
froyo/templates/orders_list.html
+6
-0
orders_update_form.html
froyo/templates/orders_update_form.html
+6
-0
recipes_create_form.html
froyo/templates/recipes_create_form.html
+6
-0
recipes_detail.html
froyo/templates/recipes_detail.html
+6
-0
recipes_list.html
froyo/templates/recipes_list.html
+6
-0
recipes_update_form.html
froyo/templates/recipes_update_form.html
+6
-0
tests.py
froyo/tests.py
+92
-0
urls.py
froyo/urls.py
+23
-0
views.py
froyo/views.py
+54
-0
No files found.
froyo/templates/froyo_homepage.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
The Good Place FroYo Shop
</h1>
</body>
</html>
\ No newline at end of file
froyo/templates/ingredients_create_form.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
Ingredients - Create Form
</h1>
</body>
</html>
\ No newline at end of file
froyo/templates/ingredients_detail.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
Ingredients - Detail
</h1>
</body>
</html>
\ No newline at end of file
froyo/templates/ingredients_list.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
Ingredients - List
</h1>
</body>
</html>
\ No newline at end of file
froyo/templates/ingredients_update_form.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
Ingredients - Update Form
</h1>
</body>
</html>
\ No newline at end of file
froyo/templates/orders_create_form.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
Orders - Create Form
</h1>
</body>
</html>
\ No newline at end of file
froyo/templates/orders_detail.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
Orders - Detail
</h1>
</body>
</html>
\ No newline at end of file
froyo/templates/orders_list.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
Orders - List
</h1>
</body>
</html>
\ No newline at end of file
froyo/templates/orders_update_form.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
Orders - Update Form
</h1>
</body>
</html>
\ No newline at end of file
froyo/templates/recipes_create_form.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
Recipes - Create Form
</h1>
</body>
</html>
\ No newline at end of file
froyo/templates/recipes_detail.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
Recipes - Detail
</h1>
</body>
</html>
\ No newline at end of file
froyo/templates/recipes_list.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
Recipes - List
</h1>
</body>
</html>
\ No newline at end of file
froyo/templates/recipes_update_form.html
0 → 100644
View file @
4d6eaaf9
<!DOCTYPE html>
<html>
<body>
<h1>
Recipes - Update Form
</h1>
</body>
</html>
\ No newline at end of file
froyo/tests.py
0 → 100644
View file @
4d6eaaf9
from
django.test
import
TestCase
class
GoodPlaceHomepageTest
(
TestCase
):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo_homepage'
)
self
.
assertTemplateUsed
(
response
,
"froyo_homepage.html"
)
class
IngredientsCreateFormTest
(
TestCase
):
def
test_ingredients_create_form_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/ingredients_create_form'
)
self
.
assertTemplateUsed
(
response
,
"ingredients_create_form.html"
)
class
IngredientsDetailTest
(
TestCase
):
def
test_ingredients_detail_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/ingredients_detail'
)
self
.
assertTemplateUsed
(
response
,
"ingredients_detail.html"
)
class
IngredientsListTest
(
TestCase
):
def
test_ingredients_list_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/ingredients_list'
)
self
.
assertTemplateUsed
(
response
,
"ingredients_list.html"
)
class
IngredientsUpdateFormTest
(
TestCase
):
def
test_ingredients_update_form_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/ingredients_update_form'
)
self
.
assertTemplateUsed
(
response
,
"ingredients_update_form.html"
)
class
OrdersCreateFormTest
(
TestCase
):
def
test_orders_create_form_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/orders_create_form'
)
self
.
assertTemplateUsed
(
response
,
"orders_create_form.html"
)
class
OrdersDetailTest
(
TestCase
):
def
test_orders_detail_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/orders_detail'
)
self
.
assertTemplateUsed
(
response
,
"orders_detail.html"
)
class
OrdersListTest
(
TestCase
):
def
test_orders_list_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/orders_list'
)
self
.
assertTemplateUsed
(
response
,
"orders_list.html"
)
class
OrdersUpdateFormTest
(
TestCase
):
def
test_orders_update_form_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/orders_update_form'
)
self
.
assertTemplateUsed
(
response
,
"orders_update_form.html"
)
class
RecipesCreateFormTest
(
TestCase
):
def
test_recipes_create_form_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/recipes_create_form'
)
self
.
assertTemplateUsed
(
response
,
"recipes_create_form.html"
)
class
RecipesDetailTest
(
TestCase
):
def
test_recipes_detail_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/recipes_detail'
)
self
.
assertTemplateUsed
(
response
,
"recipes_detail.html"
)
class
RecipesListTest
(
TestCase
):
def
test_recipes_list_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/recipes_list'
)
self
.
assertTemplateUsed
(
response
,
"recipes_list.html"
)
class
RecipesUpdateFormTest
(
TestCase
):
def
test_recipes_update_form_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/froyo/recipes_update_form'
)
self
.
assertTemplateUsed
(
response
,
"recipes_update_form.html"
)
froyo/urls.py
0 → 100644
View file @
4d6eaaf9
from
django.conf.urls
import
url
from
.views
import
FroyoView
,
\
IngCreateFormView
,
IngDetailView
,
IngListView
,
IngUpdateFormView
,
\
OrdCreateFormView
,
OrdDetailView
,
OrdListView
,
OrdUpdateFormView
,
\
RecCreateFormView
,
RecDetailView
,
RecListView
,
RecUpdateFormView
urlpatterns
=
[
url
(
r'^froyo_homepage$'
,
FroyoView
.
as_view
(),
name
=
'froyo_homepage'
),
url
(
r'^froyo/ingredients_create_form$'
,
IngCreateFormView
.
as_view
(),
name
=
'ingredients_create_form'
),
url
(
r'^froyo/ingredients_detail$'
,
IngDetailView
.
as_view
(),
name
=
'ingredients_detail'
),
url
(
r'^froyo/ingredients_list$'
,
IngListView
.
as_view
(),
name
=
'ingredients_list'
),
url
(
r'^froyo/ingredients_update_form$'
,
IngUpdateFormView
.
as_view
(),
name
=
'ingredients_update_form'
),
url
(
r'^froyo/orders_create_form$'
,
OrdCreateFormView
.
as_view
(),
name
=
'orders_create_form'
),
url
(
r'^froyo/orders_detail$'
,
OrdDetailView
.
as_view
(),
name
=
'orders_detail'
),
url
(
r'^froyo/orders_list$'
,
OrdListView
.
as_view
(),
name
=
'orders_list'
),
url
(
r'^froyo/orders_update_form$'
,
OrdUpdateFormView
.
as_view
(),
name
=
'orders_update_form'
),
url
(
r'^froyo/recipes_create_form$'
,
RecCreateFormView
.
as_view
(),
name
=
'recipes_create_form'
),
url
(
r'^froyo/recipes_detail$'
,
RecDetailView
.
as_view
(),
name
=
'recipes_detail'
),
url
(
r'^froyo/recipes_list$'
,
RecListView
.
as_view
(),
name
=
'recipes_list'
),
url
(
r'^froyo/recipes_update_form$'
,
RecUpdateFormView
.
as_view
(),
name
=
'recipes_update_form'
)
]
\ No newline at end of file
froyo/views.py
0 → 100644
View file @
4d6eaaf9
from
django.shortcuts
import
render
from
django.views.generic.base
import
TemplateView
class
FroyoView
(
TemplateView
):
template_name
=
'froyo_homepage.html'
class
IngCreateFormView
(
TemplateView
):
template_name
=
'ingredients_create_form.html'
class
IngDetailView
(
TemplateView
):
template_name
=
'ingredients_detail.html'
class
IngListView
(
TemplateView
):
template_name
=
'ingredients_list.html'
class
IngUpdateFormView
(
TemplateView
):
template_name
=
'ingredients_update_form.html'
class
OrdCreateFormView
(
TemplateView
):
template_name
=
'orders_create_form.html'
class
OrdDetailView
(
TemplateView
):
template_name
=
'orders_detail.html'
class
OrdListView
(
TemplateView
):
template_name
=
'orders_list.html'
class
OrdUpdateFormView
(
TemplateView
):
template_name
=
'orders_update_form.html'
class
RecCreateFormView
(
TemplateView
):
template_name
=
'recipes_create_form.html'
class
RecDetailView
(
TemplateView
):
template_name
=
'recipes_detail.html'
class
RecListView
(
TemplateView
):
template_name
=
'recipes_list.html'
class
RecUpdateFormView
(
TemplateView
):
template_name
=
'recipes_update_form.html'
\ 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