diff --git a/db.sqlite3 b/db.sqlite3 index 9125db2..1d3af6c 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/loginApp/views.py b/loginApp/views.py index 23bc299..78b849f 100644 --- a/loginApp/views.py +++ b/loginApp/views.py @@ -8,8 +8,8 @@ def showLogin(request): # If the user is already logged in, they cannot navigate to the login/registration page - if 'user_id' in request.session: - return redirect('/home') + # if 'user_id' in request.session: + # return redirect('/home') # form = RegisterForm() # context = { # 'regForm': form @@ -18,8 +18,8 @@ def showLogin(request): def showRegister(request): # If the user is already logged in, they cannot navigate to the login/registration page - if 'user_id' in request.session: - return redirect('/home') + # if 'user_id' in request.session: + # return redirect('/home') return render(request, 'register.html') def register(request): @@ -56,7 +56,7 @@ def login(request): return redirect('/home') messages.error(request, "Invalid email/password", extra_tags="login_email") - return redirect('/user') + return redirect('/user/login') def editUser(request, userId): diff --git a/productsApp/migrations/0006_merge_20200529_0143.py b/productsApp/migrations/0006_merge_20200529_0143.py new file mode 100644 index 0000000..dbd0e23 --- /dev/null +++ b/productsApp/migrations/0006_merge_20200529_0143.py @@ -0,0 +1,14 @@ +# Generated by Django 2.2.4 on 2020-05-29 01:43 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('productsApp', '0005_auto_20200528_1726'), + ('productsApp', '0005_auto_20200528_2323'), + ] + + operations = [ + ] diff --git a/productsApp/templates/payment.html b/productsApp/templates/payment.html index 978d4da..aba3240 100644 --- a/productsApp/templates/payment.html +++ b/productsApp/templates/payment.html @@ -7,14 +7,39 @@ {% load static %} Order Page + {% load static %} + + + + + + + + + + + + + + + + + + + + + + + + + +
-
- {% csrf_token %}

Your Orders - +
@@ -29,63 +54,58 @@

Your Orders

{% endfor %} -
-
+ {% csrf_token %}

Shipping information

- + - + - + - + - + - + - +
-
- -
- {% csrf_token %} +

Billing information:


- + - + - + - + - + - + - + - + - + - +
- - \ No newline at end of file + \ No newline at end of file diff --git a/productsApp/templates/productPage.html b/productsApp/templates/productPage.html index 000e1d3..b865b3d 100644 --- a/productsApp/templates/productPage.html +++ b/productsApp/templates/productPage.html @@ -11,8 +11,6 @@
-
- {% csrf_token %}
- Logo + Logo
Products Price Quantity

-
- +

{{product.name}}

@@ -51,7 +48,7 @@

{{product.name}}