Skip to content

Commit

Permalink
Added Ecommerce Website
Browse files Browse the repository at this point in the history
  • Loading branch information
Fathi7ma committed Jan 29, 2024
1 parent a117aad commit 2a8f405
Show file tree
Hide file tree
Showing 9 changed files with 177 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Ecommerce Website/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Ecommerce Website/.idea/Ecommerce Website.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

133 changes: 133 additions & 0 deletions Ecommerce Website/.idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Ecommerce Website/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Ecommerce Website/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Ecommerce Website/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Ecommerce Website/cart/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Meta:
db_table='Cart'
ordering=['date_added']
def __str__(self):
return '{}'.format(self.cart_id)
return '{}'.format(self.cart_id)

class CartItem(models.Model):
product=models.ForeignKey(Product,on_delete=models.CASCADE)
Expand Down
2 changes: 1 addition & 1 deletion Ecommerce Website/shop/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def allProdCat(request, c_slug=None,):
paginator=Paginator(products_list,6)
try:
page=int(request.GET.get('page','1'))
except:
except(Paginator):
page=1
try:
products=paginator.page(page)
Expand Down

0 comments on commit 2a8f405

Please sign in to comment.