From 04dc07a88112040b7a6b02af25ac2a778d1d4917 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Tue, 3 Oct 2023 20:20:05 -0700 Subject: [PATCH 01/32] updated package version for Django 4 and Python 3 current version cannot run on Python 3 --- requirements.txt | Bin 1764 -> 1790 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/requirements.txt b/requirements.txt index 9a87dec21cc9392fab0b0ed21c81a898a1fc7509..86d8ce2c0c526581bfea38a23d972b99ae27a336 100644 GIT binary patch delta 230 zcmaFD`;T{m1f$tTNq$CFGX^~dgUPy#r#Vf4EF&N`oy^Fj$!yACK3SJZm(v_10>p-s z4VgqImoQ1Og47rQ)d){s#k7yp7{mk17cwu_H3YN4d z2tn!%!PscCJxe;HGDHBRxR{}Yp@<<9s5BL<6y!9B^G>tcvVt68I+>TPS3CnKpURK} VRs*ui1Z<$u=r#V3^5H^|2$fU_^!eB62mr0k^6ewak*^o(e zas`tVry-DM4pIkHBRqK((>}N^qsfKLi?z*wav(JZ47?0n3 Date: Tue, 3 Oct 2023 20:33:04 -0700 Subject: [PATCH 02/32] Update README.md --- README.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a3fdfc3c..4b568b13 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Django-Ecommerce +# Ecommerce website with Django4.2 & Python 3 & AWS -Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS +Ecommerce website built with Django 4.2.X, Python 3.10, and AWS ![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png) @@ -26,22 +26,20 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS `Order Success Page` ![image](https://user-images.githubusercontent.com/29988949/66291657-3e091880-e897-11e9-830b-6cf44e72a995.png) -# Installation - -`pip install django` - +# Installation of Django and Virtual environtment `virtualenv env` -# For Mac/ Linux - +# Activate the virtual environment +For Mac/ Linux `source env/bin/activate` - -# For Window - +For Window `env\scripts\activate` +# install required packages of the project +`pip install django` `pip install -r requirements.txt` +# start the project database and run the server `python manage.py makemigrations` `python manage.py migrate` From 88383049e27cc09db818b42f5d06b5aef474a2c4 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Tue, 3 Oct 2023 20:34:08 -0700 Subject: [PATCH 03/32] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b568b13..d854c978 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Ecommerce website with Django4.2 & Python 3 & AWS +# Ecommerce with Django4.2 & Python 3 & AWS Ecommerce website built with Django 4.2.X, Python 3.10, and AWS From 57cf950864ffd78a7e0eda6c550ebbccd1fb3f15 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Tue, 3 Oct 2023 20:37:18 -0700 Subject: [PATCH 04/32] Update README.md --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d854c978..a9244e4d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Ecommerce with Django4.2 & Python 3 & AWS -Ecommerce website built with Django 4.2.X, Python 3.10, and AWS +# Demo of the Ecommerce website ![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png) @@ -31,15 +31,21 @@ Ecommerce website built with Django 4.2.X, Python 3.10, and AWS # Activate the virtual environment For Mac/ Linux + `source env/bin/activate` + For Window + `env\scripts\activate` # install required packages of the project + `pip install django` + `pip install -r requirements.txt` # start the project database and run the server + `python manage.py makemigrations` `python manage.py migrate` @@ -53,9 +59,6 @@ python manage.py createsuperuser Username : admin Password : 12345678 ``` -# Demo - -http://djangoecommerce.pythonanywhere.com # HTML Template From f37e3a97ac0adc86c7c488db4cbaee16e856aff5 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Tue, 3 Oct 2023 20:39:31 -0700 Subject: [PATCH 05/32] Update README.md --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a9244e4d..75a92348 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Ecommerce with Django4.2 & Python 3 & AWS -# Demo of the Ecommerce website +## 1. Demo of the Ecommerce website ![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png) @@ -26,10 +26,12 @@ `Order Success Page` ![image](https://user-images.githubusercontent.com/29988949/66291657-3e091880-e897-11e9-830b-6cf44e72a995.png) -# Installation of Django and Virtual environtment +## 2.instruction + +### Installation of Django and Virtual environtment `virtualenv env` -# Activate the virtual environment +### Activate the virtual environment For Mac/ Linux `source env/bin/activate` @@ -38,13 +40,13 @@ For Window `env\scripts\activate` -# install required packages of the project +### install required packages of the project `pip install django` `pip install -r requirements.txt` -# start the project database and run the server +### start the project database and run the server `python manage.py makemigrations` @@ -52,7 +54,7 @@ For Window `python manage.py runserver` -# For Admin Login +### For Admin Login ```python python manage.py createsuperuser From 943dfda7f92de8a30555399a1e65ae6e32a8d2b1 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Tue, 3 Oct 2023 20:41:40 -0700 Subject: [PATCH 06/32] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 75a92348..de80b1c6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Ecommerce with Django4.2 & Python 3 & AWS +# Ecommerce with Django 4.2 & Python 3.10 & AWS ## 1. Demo of the Ecommerce website @@ -26,12 +26,12 @@ `Order Success Page` ![image](https://user-images.githubusercontent.com/29988949/66291657-3e091880-e897-11e9-830b-6cf44e72a995.png) -## 2.instruction +## 2.Instruction -### Installation of Django and Virtual environtment +### 2.1 Installation of Django and Virtual environtment `virtualenv env` -### Activate the virtual environment +### 2.2 Activate the virtual environment For Mac/ Linux `source env/bin/activate` @@ -40,13 +40,13 @@ For Window `env\scripts\activate` -### install required packages of the project +### 2.3 install required packages of the project `pip install django` `pip install -r requirements.txt` -### start the project database and run the server +### 2.4 start the project database and run the server `python manage.py makemigrations` @@ -54,7 +54,7 @@ For Window `python manage.py runserver` -### For Admin Login +### 2.5 For Admin Login ```python python manage.py createsuperuser @@ -62,7 +62,7 @@ Username : admin Password : 12345678 ``` -# HTML Template +## 3.0 HTML Template https://colorlib.com/etc/fashe/index.html From fd958a22f893839a4ecc5f4f03899c7c5b4b92f2 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Tue, 3 Oct 2023 20:46:09 -0700 Subject: [PATCH 07/32] Update views.py The function render_to_response is deprecated since Django 2.0 and was removed in Django 3.0. Django suggests using the render function instead. --- core/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views.py b/core/views.py index e335e394..71ced303 100644 --- a/core/views.py +++ b/core/views.py @@ -10,7 +10,7 @@ from .forms import CheckoutForm, CouponForm, RefundForm from .models import Item, OrderItem, Order, BillingAddress, Payment, Coupon, Refund, Category from django.http import HttpResponseRedirect -from django.shortcuts import render_to_response +from django.shortcuts import render # Create your views here. import random From 81ba18a5135109d80ada82028ea263d5fb66162b Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Tue, 3 Oct 2023 21:00:19 -0700 Subject: [PATCH 08/32] Update models.py solve the warning messages: WARNINGS: core.BillingAddress: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. --- core/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/models.py b/core/models.py index b6451884..bb2fdc2b 100644 --- a/core/models.py +++ b/core/models.py @@ -25,6 +25,7 @@ class Slide(models.Model): + id = models.AutoField(primary_key=True) caption1 = models.CharField(max_length=100) caption2 = models.CharField(max_length=100) link = models.CharField(max_length=100) @@ -35,6 +36,7 @@ def __str__(self): return "{} - {}".format(self.caption1, self.caption2) class Category(models.Model): + id = models.AutoField(primary_key=True) title = models.CharField(max_length=100) slug = models.SlugField() description = models.TextField() @@ -51,6 +53,7 @@ def get_absolute_url(self): class Item(models.Model): + id = models.AutoField(primary_key=True) title = models.CharField(max_length=100) price = models.FloatField() discount_price = models.FloatField(blank=True, null=True) @@ -83,6 +86,7 @@ def get_remove_from_cart_url(self): class OrderItem(models.Model): + id = models.AutoField(primary_key=True) user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) ordered = models.BooleanField(default=False) @@ -108,6 +112,7 @@ def get_final_price(self): class Order(models.Model): + id = models.AutoField(primary_key=True) user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) ref_code = models.CharField(max_length=20) @@ -151,6 +156,7 @@ def get_total(self): class BillingAddress(models.Model): + id = models.AutoField(primary_key=True) user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) street_address = models.CharField(max_length=100) @@ -168,6 +174,7 @@ class Meta: class Payment(models.Model): + id = models.AutoField(primary_key=True) stripe_charge_id = models.CharField(max_length=50) user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.SET_NULL, blank=True, null=True) @@ -179,6 +186,7 @@ def __str__(self): class Coupon(models.Model): + id = models.AutoField(primary_key=True) code = models.CharField(max_length=15) amount = models.FloatField() @@ -187,6 +195,7 @@ def __str__(self): class Refund(models.Model): + id = models.AutoField(primary_key=True) order = models.ForeignKey(Order, on_delete=models.CASCADE) reason = models.TextField() accepted = models.BooleanField(default=False) From 45fc2bf75e0461be32bfd27a04fbc5efef38239c Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Tue, 3 Oct 2023 22:11:33 -0700 Subject: [PATCH 09/32] Update settings.py Regarding django-crispy-forms templates packs are now in separate package, depending on the boostrap version you are using, You will need to pip install crispy-bootstrap4 and add crispy_bootstrap4 to your list of INSTALLED_APPS. That will solve your issue --- demo/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/settings.py b/demo/settings.py index 7210b11f..9ff5ef3f 100644 --- a/demo/settings.py +++ b/demo/settings.py @@ -21,7 +21,8 @@ 'allauth.socialaccount.providers.google', 'crispy_forms', 'django_countries', - 'core' + 'core', + 'crispy_bootstrap4' ] MIDDLEWARE = [ From 1d3531433f64be101fab7015d4ecac6a46296647 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Wed, 4 Oct 2023 11:50:02 -0700 Subject: [PATCH 10/32] update for python3.10 django4 and crispy-form --- requirements.txt | Bin 1790 -> 1844 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/requirements.txt b/requirements.txt index 86d8ce2c0c526581bfea38a23d972b99ae27a336..1be321277396d446045a7684fada6078e6673ee7 100644 GIT binary patch delta 75 zcmeyzyM=Fq5G%V8g8_pcgW+aL)~AeS$qYpdnGD4Y1q_u8@eD}}`9N3#>8 T47NZB(qaUJKy3`X3|tHVgIx{_ delta 20 bcmdnO_m6jj5G%VOg9U>ggXv~T)~AdBJADNo From 8ae8c109da8848cc1397f4d97061b2499c6cfedf Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:24:14 -0700 Subject: [PATCH 11/32] Add files via upload --- README.md | 156 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 141 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index de80b1c6..d9e2e2ef 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,29 @@ -# Ecommerce with Django 4.2 & Python 3.10 & AWS +# Django E-commerce. -## 1. Demo of the Ecommerce website +

+ + + + + + + + +

+ + +
+It is an E-commerce system built in Django. It contains all the essentials for adding products and use PayPal and Stripe as payment systems. + +## About this Project: + +It is an E-commerce system built in Django. It contains all the essentials for adding products and use PayPal and Stripe as payment systems. + +The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. + +# Django-Ecommerce + +Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working on it) ![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png) @@ -26,43 +49,146 @@ `Order Success Page` ![image](https://user-images.githubusercontent.com/29988949/66291657-3e091880-e897-11e9-830b-6cf44e72a995.png) -## 2.Instruction +# Installation + +`pip install django` -### 2.1 Installation of Django and Virtual environtment `virtualenv env` -### 2.2 Activate the virtual environment -For Mac/ Linux +# For Mac/ Linux `source env/bin/activate` -For Window +# For Window `env\scripts\activate` -### 2.3 install required packages of the project - -`pip install django` - `pip install -r requirements.txt` -### 2.4 start the project database and run the server - `python manage.py makemigrations` `python manage.py migrate` `python manage.py runserver` -### 2.5 For Admin Login +# For Admin Login ```python python manage.py createsuperuser Username : admin Password : 12345678 ``` +# Demo + +http://djangoecommerce.pythonanywhere.com -## 3.0 HTML Template +# HTML Template https://colorlib.com/etc/fashe/index.html + + +## Some technical information: + +- Django - 3.1.1 +- Django Allauth - 0.42.0 +- Django Crispy Forms - 1.9.2 +- Django Environ - 0.4.5 +- Stripe - 2.51.0 + + +## To Install: + +Cloning the Repository: + +``` +$ git clone https://github.com/fl4viooliveira/django_ecommerce.git + +$ cd django_ecommerce + +``` + +Installing the environment control: + +``` +$ pip install virtualenv + +$ virtualenv env + +``` + +Activating the environment: + +on Windows: +``` +env\Scripts\activate + +``` +on Mac OS / Linux: +``` +$ source env/bin/activate + +``` + +Installing dependencies: + +``` +$ pip install -r requirements.txt + +``` + +Create a .env file on ecom folder (/ecom/.env) setting all requirements without using space after "=". + +Copy and paste on our .env file: + +``` +DEBUG= +SECRET_KEY= +DEFAULT_FROM_EMAIL= +NOTIFY_EMAIL= +PAYPAL_SANDBOX_CLIENT_ID= +PAYPAL_SANDBOX_SECRET_KEY= +PAYPAL_LIVE_CLIENT_ID= +PAYPAL_LIVE_SECRET_KEY= +STRIPE_PUBLIC_KEY= +STRIPE_SECRET_KEY= +STRIPE_WEBHOOK_SECRET= + +``` + +Last commands to start: + +``` +$ python manage.py makemigrations + +$ python manage.py migrate + +``` +Create a super user: + +``` +$ python manage.py createsuperuser admin-name + +``` + +Finishing running server: + +``` +$ python manage.py runserver + +``` + +## Contributing + +You can send how many PR's do you want, I'll be glad to analyse and accept them! And if you have any question about the project... + + +Thank you! + +## License + + + NPM +   + +This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/fl4viooliveira/django_ecommerce/blob/master/LICENSE) file for details. From 489237beeb889cde1b999e2887a4c84eef2a2b9b Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:28:29 -0700 Subject: [PATCH 12/32] Update README.md --- README.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d9e2e2ef..eaa3e354 100644 --- a/README.md +++ b/README.md @@ -13,17 +13,13 @@
-It is an E-commerce system built in Django. It contains all the essentials for adding products and use PayPal and Stripe as payment systems. -## About this Project: +Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working on it) -It is an E-commerce system built in Django. It contains all the essentials for adding products and use PayPal and Stripe as payment systems. +## About this Project: The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. -# Django-Ecommerce - -Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working on it) ![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png) @@ -49,17 +45,17 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o `Order Success Page` ![image](https://user-images.githubusercontent.com/29988949/66291657-3e091880-e897-11e9-830b-6cf44e72a995.png) -# Installation +## Installation `pip install django` `virtualenv env` -# For Mac/ Linux +### For Mac/ Linux `source env/bin/activate` -# For Window +### For Window `env\scripts\activate` @@ -71,7 +67,7 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o `python manage.py runserver` -# For Admin Login +## For Admin Login ```python python manage.py createsuperuser From 3113ed5814b0bab6cb4bbd18c7e1be2c2d6d9a3d Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:37:04 -0700 Subject: [PATCH 13/32] Update README.md --- README.md | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index eaa3e354..0a278ace 100644 --- a/README.md +++ b/README.md @@ -47,16 +47,16 @@ The repository is a start point for most of my professional projects; for this, ## Installation +``` `pip install django` - `virtualenv env` - +``` ### For Mac/ Linux - +``` `source env/bin/activate` - +``` ### For Window - +``` `env\scripts\activate` `pip install -r requirements.txt` @@ -66,17 +66,23 @@ The repository is a start point for most of my professional projects; for this, `python manage.py migrate` `python manage.py runserver` - +``` ## For Admin Login -```python +``` python manage.py createsuperuser Username : admin Password : 12345678 ``` -# Demo +## Potential Error and solutions +### +django python tried to input http instead of https, but still have the following error: [13/Oct/2023 18:45:36] code 400, message Bad request version ('u|q&L¹°zUÀ\x00"\x13\x01\x13\x03\x13\x02À+À/̨̩À,À0À') +[13/Oct/2023 18:45:36] You're accessing the development server over HTTPS, but it only supports HTTP. + +This error indicates that there's an attempt to access the Django development server over HTTPS, but it only supports HTTP. This might be due to a few reasons: +1. **Clear browser cache**: Clear the cache of your browser and try again. Sometimes, the browser remembers that it should access a certain URL via HTTPS and tries to do so every time. + -http://djangoecommerce.pythonanywhere.com # HTML Template From e99753238c08b9209b6e37462bfc4d639056f2a7 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:38:15 -0700 Subject: [PATCH 14/32] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a278ace..56feeb60 100644 --- a/README.md +++ b/README.md @@ -48,8 +48,9 @@ The repository is a start point for most of my professional projects; for this, ## Installation ``` -`pip install django` -`virtualenv env` +$ pip install django` +$ virtualenv env` + ``` ### For Mac/ Linux ``` From b0dd59df7c5116793b58c4c2b05366c6dbf68541 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:42:20 -0700 Subject: [PATCH 15/32] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 56feeb60..59315ab0 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. -![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png) +![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png | width=100 ) `Product Slide` From 4e9e7de62e30c0ac5df2df861ab5931f947ba8a6 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:46:27 -0700 Subject: [PATCH 16/32] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 59315ab0..d383fce8 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. -![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png | width=100 ) +![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png {width=40px height=400px} ) `Product Slide` From 3b53b2246b2cfbf27819170df355933ed1ffae83 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:47:15 -0700 Subject: [PATCH 17/32] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d383fce8..f3960c3b 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. -![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png {width=40px height=400px} ) +![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png "Title" {width=40px height=400px} ) `Product Slide` From 8cef23fa31df29506430aab42cbff771172f7148 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:48:01 -0700 Subject: [PATCH 18/32] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f3960c3b..9ac68765 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. -![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png "Title" {width=40px height=400px} ) +![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png = 250x250 ) `Product Slide` From 9f0bbc99e0aba7a1aeb336632354f79c41d36e43 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:48:29 -0700 Subject: [PATCH 19/32] Update README.md From 77da12b88c15242d69d105fe1482711a094bdbb7 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:49:59 -0700 Subject: [PATCH 20/32] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ac68765..315d8206 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. -![image](https://user-images.githubusercontent.com/29988949/65267147-499fc580-dac9-11e9-90e8-eccbc93c7c3a.png = 250x250 ) + `Product Slide` From 075ef0b37ed319ac9ae11867d2a888ce3e192f95 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:50:52 -0700 Subject: [PATCH 21/32] Update README.md --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 315d8206..257b413c 100644 --- a/README.md +++ b/README.md @@ -20,14 +20,12 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. - - - `Product Slide` - -![image](https://user-images.githubusercontent.com/29988949/65999313-ff67fe00-e451-11e9-9ed9-fc7bce704f17.png) + `Shop Page` + + ![image](https://user-images.githubusercontent.com/29988949/66098968-923f9000-e559-11e9-8691-cd5c2b181ca1.png) `Product Detail Page` From 97c32e53d510ee87871139e60a17420b8163e488 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:51:28 -0700 Subject: [PATCH 22/32] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 257b413c..0da7e570 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,10 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. `Product Slide` - + `Shop Page` - + ![image](https://user-images.githubusercontent.com/29988949/66098968-923f9000-e559-11e9-8691-cd5c2b181ca1.png) From 623acacf323b9540be3ab84bf9108a0cd6ba1a0a Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:51:53 -0700 Subject: [PATCH 23/32] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0da7e570..3f23261a 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. `Product Slide` - + `Shop Page` From c3112ef4b9c5137d99b302198fa3f50e79636037 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:52:33 -0700 Subject: [PATCH 24/32] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3f23261a..73b36dcb 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,7 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. -`Product Slide` - +`Product Slide` `Shop Page` From 5f9674b1549ba40ec745b6de8538a67110fe57bb Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:54:29 -0700 Subject: [PATCH 25/32] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 73b36dcb..9312d814 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. + + `Product Slide` `Shop Page` From 044730a0c4511830cac23ff2163873e1e27e78b8 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:55:31 -0700 Subject: [PATCH 26/32] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9312d814..a644d7b0 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,8 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. - + + `Product Slide` From 6b2615fb158441bf8d73fc98dcaac5cdf9b97bd1 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:56:15 -0700 Subject: [PATCH 27/32] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a644d7b0..4d21ab9c 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. - + `Product Slide` From 9b05aeacb92e566dc5cb7a172151be15c5d6ff94 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Fri, 13 Oct 2023 12:58:02 -0700 Subject: [PATCH 28/32] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4d21ab9c..13efae80 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,11 @@ Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working o The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. - + -`Product Slide` +`Product Slide` + `Shop Page` From 2c6ba545313d713a0f6d14a007ce1169b8e24c29 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Tue, 17 Oct 2023 12:00:32 -0700 Subject: [PATCH 29/32] Update README.md --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 13efae80..406db783 100644 --- a/README.md +++ b/README.md @@ -182,12 +182,24 @@ $ python manage.py runserver ``` -## Contributing +## Other related topics and solutions +### stripe integration +When testing your e-commerce website, you certainly wouldn't want to make actual payments for each transaction. Thankfully, Stripe provides a testing environment with a set of test API keys that you can use. Here's a general process on how to test Stripe payment functionality: +``` + +1. **Get your test API keys**: Go to the Stripe Dashboard and switch the view from "Live" to "Test". You will find publishable and secret API keys for testing. Use these keys in your test environment. + +2. **Use test card numbers**: Stripe provides a variety of [test card numbers](https://stripe.com/docs/testing#cards) that you can use to simulate different types of behavior. For example, the card number `4242 4242 4242 4242` simulates a successful payment, while other numbers can simulate different types of failures. -You can send how many PR's do you want, I'll be glad to analyse and accept them! And if you have any question about the project... +3. **Simulate different scenarios**: In addition to successful payments and payment failures, you can also simulate other scenarios, like refunds, disputes, and subscription changes. Check the [Stripe testing documentation](https://stripe.com/docs/testing) for more details. +4. **Use Stripe's webhook testing**: If your application uses webhooks, you can use Stripe's webhook testing feature to send sample events to your server. + +5. **Inspect and monitor**: Use the Stripe Dashboard to view and monitor your test transactions. You can check the details of each transaction, including the associated requests and responses. + +Remember to make sure that you only use your test API keys and test card numbers in your test environment, and never in your live environment. Also, make sure to thoroughly test all aspects of your payment functionality, including edge cases and failure scenarios, to ensure that your application handles all possible situations correctly. +``` -Thank you! ## License From 2a87662aaee94f467976e413c1616f325f33a2ff Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Tue, 17 Oct 2023 18:23:49 -0700 Subject: [PATCH 30/32] Update README.md --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 406db783..6f38050c 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,10 @@
-Ecommerce website built with Django 2.2.3, Python 3.7.3, and AWS(still working on it) +Ecommerce website built with Django 2.2.3, Python 3.7.3. +Other features include: +- integrated with Stripe payment +- depolyed on AWS (still working on it) ## About this Project: @@ -185,7 +188,7 @@ $ python manage.py runserver ## Other related topics and solutions ### stripe integration When testing your e-commerce website, you certainly wouldn't want to make actual payments for each transaction. Thankfully, Stripe provides a testing environment with a set of test API keys that you can use. Here's a general process on how to test Stripe payment functionality: -``` + 1. **Get your test API keys**: Go to the Stripe Dashboard and switch the view from "Live" to "Test". You will find publishable and secret API keys for testing. Use these keys in your test environment. @@ -198,8 +201,9 @@ When testing your e-commerce website, you certainly wouldn't want to make actual 5. **Inspect and monitor**: Use the Stripe Dashboard to view and monitor your test transactions. You can check the details of each transaction, including the associated requests and responses. Remember to make sure that you only use your test API keys and test card numbers in your test environment, and never in your live environment. Also, make sure to thoroughly test all aspects of your payment functionality, including edge cases and failure scenarios, to ensure that your application handles all possible situations correctly. -``` +### Chrome and other browser show error and changing your http to https +Clear Browsing Data: Sometimes, Chrome stores settings or cookies that force redirection to HTTPS. Clearing them might solve the issue. ## License From da3ab6c1e4262ceec93c3523679f205c62110bd3 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Tue, 17 Oct 2023 19:03:11 -0700 Subject: [PATCH 31/32] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6f38050c..9287d20b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Other features include: The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. - + `Product Slide` From b169c5fe0429f0c660ad00b1802a6fda98a5b253 Mon Sep 17 00:00:00 2001 From: iQiongLiu Date: Thu, 30 Nov 2023 13:35:59 -0800 Subject: [PATCH 32/32] Update README.md --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 9287d20b..49428cbe 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,8 @@ Other features include: The repository is a start point for most of my professional projects; for this, I'm using as a part of my portfolio, feel free to use wherever you want. I'll be happy if you provide any feedback or code improvements or suggestions. - - - `Product Slide` - + `Shop Page`