Re: Django, Docker & SaaS Multi-Tenant Architecture

2022-01-13 Thread Bernard Mallala
I second the suggestion to have a discord channel versus async/email

On Thursday, January 13, 2022 at 1:41:14 PM UTC-7 Bernard Mallala wrote:

> I will paraphrase and feel free to correct.
> You have an image that when deployed results in a django application that 
> can be accessed but without a specific app that is built to work within 
> this image.
>
>1. Let' presume that you working on a Tutorial App and you complete 
>this to taste
>2. Now you only want to configure everything including nginx such that 
>when this is deployed then a user will be able to access the django 
>instance without issue
>3. Thereafter, you want to be able to add the isolated Tutorial app so 
>that it works without issue on this Django instance. I do not know that 
> you 
>can point django to an app or the Tutorial app if it existed somewhere 
> else 
>within the cloud, I have not seen this.
>But, to simply add the Tutorial app within this Django instance.I 
>would perhaps have run a script to apply all required to get the Tutorial 
>App running. E.g add to settings file, run migrations etc
>
> On Thursday, January 13, 2022 at 7:47:26 AM UTC-7 in...@lyntree.io wrote:
>
>> Hello,
>>
>> I'm looking at building and deploying either a SaaS / PaaS or CaaS but 
>> what I'm struggling to figure out is how I can deploy an image of django 
>> (without its app server)  into a container probably using nginx and docker 
>> to work between them. 
>>
>> e.g Django you have the ability to create additional apps within Django 
>> but app I'm building inside at the moment, Ideally I want to isolate that 
>> app and deploy that app but ensure its connected to the main django app 
>> within the cloud and i'm not sure if its possible like this?
>>
>> Anyone have any advice on this? p.s also is there a django instant chat 
>> channel we can speak on as could not connect on the irc one? Discord & 
>> Slack is becoming more popular these days for devs for open questions.
>>
>> Kindest Regards,
>>
>> Bridget
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ea4726aa-5ddb-48b3-a692-be886337c8d4n%40googlegroups.com.


Re: Django, Docker & SaaS Multi-Tenant Architecture

2022-01-13 Thread Bernard Mallala
I will paraphrase and feel free to correct.
You have an image that when deployed results in a django application that 
can be accessed but without a specific app that is built to work within 
this image.

   1. Let' presume that you working on a Tutorial App and you complete this 
   to taste
   2. Now you only want to configure everything including nginx such that 
   when this is deployed then a user will be able to access the django 
   instance without issue
   3. Thereafter, you want to be able to add the isolated Tutorial app so 
   that it works without issue on this Django instance. I do not know that you 
   can point django to an app or the Tutorial app if it existed somewhere else 
   within the cloud, I have not seen this.
   But, to simply add the Tutorial app within this Django instance.I would 
   perhaps have run a script to apply all required to get the Tutorial App 
   running. E.g add to settings file, run migrations etc

On Thursday, January 13, 2022 at 7:47:26 AM UTC-7 in...@lyntree.io wrote:

> Hello,
>
> I'm looking at building and deploying either a SaaS / PaaS or CaaS but 
> what I'm struggling to figure out is how I can deploy an image of django 
> (without its app server)  into a container probably using nginx and docker 
> to work between them. 
>
> e.g Django you have the ability to create additional apps within Django 
> but app I'm building inside at the moment, Ideally I want to isolate that 
> app and deploy that app but ensure its connected to the main django app 
> within the cloud and i'm not sure if its possible like this?
>
> Anyone have any advice on this? p.s also is there a django instant chat 
> channel we can speak on as could not connect on the irc one? Discord & 
> Slack is becoming more popular these days for devs for open questions.
>
> Kindest Regards,
>
> Bridget
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0a3ffaf9-8a43-4324-8401-75bfd40b6bb3n%40googlegroups.com.


Re: Django, Docker & SaaS Multi-Tenant Architecture

2022-01-13 Thread yebo...@gmail.com
By the default Django actually serve media files like images in production 
to do that you have to use any cloud technology like AWS but for you can 
also use Dropbox which I used to in one of my project 
(https://dominic-blog.herokuapp.com) with Dropbox you can serve your media 
files there.

On Thursday, 13 January 2022 at 09:47:26 UTC-5 in...@lyntree.io wrote:

> Hello,
>
> I'm looking at building and deploying either a SaaS / PaaS or CaaS but 
> what I'm struggling to figure out is how I can deploy an image of django 
> (without its app server)  into a container probably using nginx and docker 
> to work between them. 
>
> e.g Django you have the ability to create additional apps within Django 
> but app I'm building inside at the moment, Ideally I want to isolate that 
> app and deploy that app but ensure its connected to the main django app 
> within the cloud and i'm not sure if its possible like this?
>
> Anyone have any advice on this? p.s also is there a django instant chat 
> channel we can speak on as could not connect on the irc one? Discord & 
> Slack is becoming more popular these days for devs for open questions.
>
> Kindest Regards,
>
> Bridget
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ee23f252-14a3-4858-9c32-f23d5f43b17bn%40googlegroups.com.


Re: How to resolve this error? can anyone please help me?

2022-01-13 Thread Luciano Martins
Hello, basically where you are calling this route you have to pass 
something like this: *{% url 'placeOrder' 1 %}* and it is being called 
without nd like this: *{% url 'placeOrder' %}*, but as posted above it 
would be better to put the code for the person to analyze

Em quinta-feira, 13 de janeiro de 2022 às 12:38:36 UTC-3, 
dashlaksh...@gmail.com escreveu:

> Please share me your code privately so that I can solve your proy as soon 
> as possible.
>
> On Thu, Jan 13, 2022, 20:16 sharath p  wrote:
>
>>
>> Environment:
>>
>>
>> Request Method: GET
>> Request URL: http://127.0.0.1:8000/
>>
>> Django Version: 4.0.1
>> Python Version: 3.10.1
>> Installed Applications:
>> ['django.contrib.admin',
>>  'django.contrib.auth',
>>  'django.contrib.contenttypes',
>>  'django.contrib.sessions',
>>  'django.contrib.messages',
>>  'django.contrib.staticfiles',
>>  'website']
>> Installed Middleware:
>> ['django.middleware.security.SecurityMiddleware',
>>  'django.contrib.sessions.middleware.SessionMiddleware',
>>  'django.middleware.common.CommonMiddleware',
>>  'django.middleware.csrf.CsrfViewMiddleware',
>>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>>  'django.contrib.messages.middleware.MessageMiddleware',
>>  'django.middleware.clickjacking.XFrameOptionsMiddleware']
>>
>>
>> Template error:
>> In template 
>> C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\templates\website\navbar.html,
>>  
>> error at line 30
>>Reverse for 'placeOrder' with arguments '('',)' not found. 1 
>> pattern(s) tried: ['placeOrder/(?Pi[^/]+)/\\Z']
>>20 :   li class="nav-item active"
>>21 : a class="nav-link" href="{% url 'home' 
>> %}"Home/a
>>22 :   /li
>>23 :   {% if request.user.is_staff %}
>>24 :   /li
>>25 :   li class="nav-item active"
>>26 : a class="nav-link" href="{% url 'addProduct' 
>> %}"Add Product/a
>>27 :   /li
>>28 :   {% else %}
>>29 :   li class="nav-item"
>>30 : a class="nav-link" href=" {% url 'placeOrder' 
>> request.user.customer.id %} "Cart/a
>>31 :   /li
>>32 :   {% endif %}
>>33 :   li class="nav-item"
>>34 : a class="nav-link" href="{% url 'login' 
>> %}"Login/a
>>35 :   /li
>>36 : /ul
>>37 :   /div
>>38 : 
>>39 :   span class="greet"Hello, {{request.user}}/span
>>40 :   span a  class="greet" href="{% url 'logout' 
>> %}"Logout/a/span
>>
>>
>> Traceback (most recent call last):
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\exception.py",
>>  
>> line 47, in inner
>> response = get_response(request)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\base.py",
>>  
>> line 181, in _get_response
>> response = wrapped_callback(request, *callback_args, 
>> **callback_kwargs)
>>   File 
>> "C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\views.py",
>>  
>> line 13, in home
>> return render(request,'website/home.html',context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\shortcuts.py",
>>  
>> line 19, in render
>> content = loader.render_to_string(template_name, context, request, 
>> using=using)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader.py",
>>  
>> line 62, in render_to_string
>> return template.render(context, request)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\backends\django.py",
>>  
>> line 61, in render
>> return self.template.render(context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 176, in render
>> return self._render(context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 168, in _render
>> return self.nodelist.render(context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 977, in render
>> return SafeString(''.join([
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 978, in listcomp
>> node.render_annotated(context) for node in self
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 938, in render_annotated
>> return self.render(context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader_tags.py",
>>  
>> line 153, in render
>> return compiled_parent._render(context)
>>   File 
>> 

Re: How to resolve this error? can anyone please help me?

2022-01-13 Thread Lakshyaraj Dash X-D 25
Please share me your code privately so that I can solve your proy as soon
as possible.

On Thu, Jan 13, 2022, 20:16 sharath p  wrote:

>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/
>
> Django Version: 4.0.1
> Python Version: 3.10.1
> Installed Applications:
> ['django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'website']
> Installed Middleware:
> ['django.middleware.security.SecurityMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.common.CommonMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.contrib.messages.middleware.MessageMiddleware',
>  'django.middleware.clickjacking.XFrameOptionsMiddleware']
>
>
> Template error:
> In template
> C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\templates\website\navbar.html,
> error at line 30
>Reverse for 'placeOrder' with arguments '('',)' not found. 1 pattern(s)
> tried: ['placeOrder/(?Pi[^/]+)/\\Z']
>20 :   li class="nav-item active"
>21 : a class="nav-link" href="{% url 'home'
> %}"Home/a
>22 :   /li
>23 :   {% if request.user.is_staff %}
>24 :   /li
>25 :   li class="nav-item active"
>26 : a class="nav-link" href="{% url 'addProduct'
> %}"Add Product/a
>27 :   /li
>28 :   {% else %}
>29 :   li class="nav-item"
>30 : a class="nav-link" href=" {% url 'placeOrder'
> request.user.customer.id %} "Cart/a
>31 :   /li
>32 :   {% endif %}
>33 :   li class="nav-item"
>34 : a class="nav-link" href="{% url 'login'
> %}"Login/a
>35 :   /li
>36 : /ul
>37 :   /div
>38 :
>39 :   span class="greet"Hello, {{request.user}}/span
>40 :   span a  class="greet" href="{% url 'logout'
> %}"Logout/a/span
>
>
> Traceback (most recent call last):
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\exception.py",
> line 47, in inner
> response = get_response(request)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\base.py",
> line 181, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File
> "C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\views.py",
> line 13, in home
> return render(request,'website/home.html',context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\shortcuts.py",
> line 19, in render
> content = loader.render_to_string(template_name, context, request,
> using=using)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader.py",
> line 62, in render_to_string
> return template.render(context, request)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\backends\django.py",
> line 61, in render
> return self.template.render(context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 176, in render
> return self._render(context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 168, in _render
> return self.nodelist.render(context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 977, in render
> return SafeString(''.join([
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 978, in listcomp
> node.render_annotated(context) for node in self
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 938, in render_annotated
> return self.render(context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader_tags.py",
> line 153, in render
> return compiled_parent._render(context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 168, in _render
> return self.nodelist.render(context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 977, in render
> return SafeString(''.join([
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 978, in listcomp
> node.render_annotated(context) for node in self
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 938, in 

Re: Complete E-learning apps

2022-01-13 Thread Muhammad Juwaini Abdul Rahman
https://docs.tutor.overhang.io/index.html

Try checking this. Probably it fulfills all your requirements.

Installation-wise, tutor is much easier to install compared to edx.

On Thu, 13 Jan 2022 at 23:08, Bu Market  wrote:

> who have  built apps like this one? i need help guys!
>
> E-Learning Platform(Web App) built-in Python Django Rest Framework for
> backend  and React Native (UX/UI and Development for frontend.
> A fully functional E-Learning platform with frontend pages. Home, About,
> Blog, Login, How it Works etc
> A fully functional E-Learning web application and Android ,IOS APPS where
> users can log in, add courses to cart and checkout out, ask help for their
> Tasks ,instants Task and homeworks
> Three user types: Instructor, Student(Regular User), Admin
> Technology:
> Python Django Rest Framework
> React/Vue Js
> Postgres
> AWS (s3 for file storage and ec2 for hosting)
>
> User Types
> Regular  Users (students)
> Log in / sign up
> Search for classes
> Filter out classes by live or self-paced; date starting, certificate
> Viewing description of the class (on its own page)
> Enroll in a class by clicking “enroll”
> Filling out enrollment forms
> Once logged in, will have other classes similar to the one they enrolled in
> See their classes in the “my classes” section
> When in the class, have an area where they can see the course overview, a
> section for them to put notes while taking the class, Q that will involve
> students posting a question and other students plus instructor can answer
> it, and a resource section where students can see any resources that were
> uploaded from the instructor, and an announcement area to see any
> announcements from instructors.
> Can message instructors
> Students will be able to enroll in classes without waiting for approval
> unless it's a live class, then it will be a first-come, first-serve basis.
>
>
> 2. Instructors
> Admin Can sign up Instructors to become tutors
> Tutor can only login as tutor(no register by himself only admin can
> register him) and tutor can register a new class to the platform and upload
> the videos
> Videos will be on the draft until they are ready to publish live. That way
> they can preview the quality of their videos
> Instructors can upload a course overview
> Can view and  message their students, answer questions in Q thread, post
> announcements
> See and respond to reviews
> Can upload any course material under resources
> Will receive payment (working out the details on how or when)
> For classes that are live, instructors will need the available to limit
> the number of students that can enroll.
>
> 3. Admin
> Can view instructors and students
> Can delete, add instructors and students that break guidelines and policies
> Can update terms and policies
> Approve payouts
> Also, receive their pay ( still working on details)
>
> Other notes:
> Payment details are still being worked out (not sure whether we will have
> payment info saved on the platform or how instructors will be paid and admin
> Website will function like udemy.com but with options for live classes as
> well
> Haven't worked out whether live classes will be done directly through the
> platform or if we will need to integrate a 3rd party classroom software
> Any classes that are self-paced will need to be available at all times for
> students. videos will be live on our platform and private on youtube!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/da0912f5-584f-4e87-b062-e4efca84dad7n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFKhtoRti2NpiNuKZxqmkbp7OvENQdkEXf7nMQTYCvbMb1t_NQ%40mail.gmail.com.


Complete E-learning apps

2022-01-13 Thread Bu Market
who have  built apps like this one? i need help guys! 

E-Learning Platform(Web App) built-in Python Django Rest Framework for 
backend  and React Native (UX/UI and Development for frontend.
A fully functional E-Learning platform with frontend pages. Home, About, 
Blog, Login, How it Works etc
A fully functional E-Learning web application and Android ,IOS APPS where 
users can log in, add courses to cart and checkout out, ask help for their 
Tasks ,instants Task and homeworks 
Three user types: Instructor, Student(Regular User), Admin
Technology:
Python Django Rest Framework
React/Vue Js
Postgres
AWS (s3 for file storage and ec2 for hosting)

User Types
Regular  Users (students)
Log in / sign up
Search for classes
Filter out classes by live or self-paced; date starting, certificate
Viewing description of the class (on its own page)
Enroll in a class by clicking “enroll”
Filling out enrollment forms
Once logged in, will have other classes similar to the one they enrolled in
See their classes in the “my classes” section
When in the class, have an area where they can see the course overview, a 
section for them to put notes while taking the class, Q that will involve 
students posting a question and other students plus instructor can answer 
it, and a resource section where students can see any resources that were 
uploaded from the instructor, and an announcement area to see any 
announcements from instructors.
Can message instructors
Students will be able to enroll in classes without waiting for approval 
unless it's a live class, then it will be a first-come, first-serve basis.


2. Instructors
Admin Can sign up Instructors to become tutors
Tutor can only login as tutor(no register by himself only admin can 
register him) and tutor can register a new class to the platform and upload 
the videos
Videos will be on the draft until they are ready to publish live. That way 
they can preview the quality of their videos
Instructors can upload a course overview
Can view and  message their students, answer questions in Q thread, post 
announcements
See and respond to reviews
Can upload any course material under resources
Will receive payment (working out the details on how or when)
For classes that are live, instructors will need the available to limit the 
number of students that can enroll.

3. Admin
Can view instructors and students
Can delete, add instructors and students that break guidelines and policies
Can update terms and policies
Approve payouts
Also, receive their pay ( still working on details)

Other notes:
Payment details are still being worked out (not sure whether we will have 
payment info saved on the platform or how instructors will be paid and admin
Website will function like udemy.com but with options for live classes as 
well
Haven't worked out whether live classes will be done directly through the 
platform or if we will need to integrate a 3rd party classroom software
Any classes that are self-paced will need to be available at all times for 
students. videos will be live on our platform and private on youtube!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/da0912f5-584f-4e87-b062-e4efca84dad7n%40googlegroups.com.


Django, Docker & SaaS Multi-Tenant Architecture

2022-01-13 Thread Bridget Kelly O'Sheehan
Hello,

I'm looking at building and deploying either a SaaS / PaaS or CaaS but what 
I'm struggling to figure out is how I can deploy an image of django 
(without its app server)  into a container probably using nginx and docker 
to work between them. 

e.g Django you have the ability to create additional apps within Django but 
app I'm building inside at the moment, Ideally I want to isolate that app 
and deploy that app but ensure its connected to the main django app within 
the cloud and i'm not sure if its possible like this?

Anyone have any advice on this? p.s also is there a django instant chat 
channel we can speak on as could not connect on the irc one? Discord & 
Slack is becoming more popular these days for devs for open questions.

Kindest Regards,

Bridget

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/92e5ffb2-4391-48ef-a4d9-99f94db86989n%40googlegroups.com.


How to resolve this error? can anyone please help me?

2022-01-13 Thread sharath p

Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 4.0.1
Python Version: 3.10.1
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'website']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']


Template error:
In template 
C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\templates\website\navbar.html,
 
error at line 30
   Reverse for 'placeOrder' with arguments '('',)' not found. 1 pattern(s) 
tried: ['placeOrder/(?Pi[^/]+)/\\Z']
   20 :   li class="nav-item active"
   21 : a class="nav-link" href="{% url 'home' 
%}"Home/a
   22 :   /li
   23 :   {% if request.user.is_staff %}
   24 :   /li
   25 :   li class="nav-item active"
   26 : a class="nav-link" href="{% url 'addProduct' %}"Add 
Product/a
   27 :   /li
   28 :   {% else %}
   29 :   li class="nav-item"
   30 : a class="nav-link" href=" {% url 'placeOrder' 
request.user.customer.id %} "Cart/a
   31 :   /li
   32 :   {% endif %}
   33 :   li class="nav-item"
   34 : a class="nav-link" href="{% url 'login' 
%}"Login/a
   35 :   /li
   36 : /ul
   37 :   /div
   38 : 
   39 :   span class="greet"Hello, {{request.user}}/span
   40 :   span a  class="greet" href="{% url 'logout' 
%}"Logout/a/span


Traceback (most recent call last):
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\exception.py",
 
line 47, in inner
response = get_response(request)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\base.py",
 
line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File 
"C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\views.py",
 
line 13, in home
return render(request,'website/home.html',context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\shortcuts.py",
 
line 19, in render
content = loader.render_to_string(template_name, context, request, 
using=using)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader.py",
 
line 62, in render_to_string
return template.render(context, request)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\backends\django.py",
 
line 61, in render
return self.template.render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 176, in render
return self._render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 168, in _render
return self.nodelist.render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 977, in render
return SafeString(''.join([
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 978, in listcomp
node.render_annotated(context) for node in self
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 938, in render_annotated
return self.render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader_tags.py",
 
line 153, in render
return compiled_parent._render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 168, in _render
return self.nodelist.render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 977, in render
return SafeString(''.join([
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 978, in listcomp
node.render_annotated(context) for node in self
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 938, in render_annotated
return self.render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader_tags.py",
 
line 201, in render
return template.render(context)
  File