Re: Django admin redirects behind nginx proxy subpath

2021-10-30 Thread Karthik Karthik
yaa
On Saturday, 23 October 2021 at 04:44:10 UTC-7 268088...@gmail.com wrote:

> I don't know but I'm interested in that
>
> 在2021年10月20日星期三 UTC+8 上午3:37:04 写道:
>
>>
>> I am running a small django app with django admin.
>> In fact, I only use django admin to edit a few models.
>>
>> It works fine in local and behind a simple proxy reverse, but now I have 
>> this kind a rewrite that changes the path: (it's a nginx ingress rewrite 
>> rule for Kubernetes)
>>
>> path: /diagnosis-admin(/|$)(.*) => $2
>>
>> Wich means, urls such as mydomain.com/diagnosis-admin redirect to 
>> localhost/ (mind the path change.
>>
>> When I try to access the admin at mydomain.com/diagnosis-admin/admin, 
>> django tries to redirect to mydomain.com/admin/, which leads nowhere 
>> because it falls on the proxy:
>>
>>
>>1. Request URL: 
>>   https://mydomain.com/diagnosis-admin/admin
>>   2. Request Method: 
>>   GET
>>   3. Status Code: 
>>   301 
>>   4. Remote Address: 
>>   138.21.17.33:3128
>>   5. Referrer Policy: 
>>   strict-origin-when-cross-origin
>>   1. Response Headers
>>   1. content-length: 
>>   0
>>   2. content-type: 
>>   text/html; charset=utf-8
>>   3. date: 
>>   Tue, 19 Oct 2021 15:11:42 GMT
>>   4. location: 
>>   /admin/
>>   5. script_name: 
>>   /diagnosis-admin
>>   6. strict-transport-security: 
>>   max-age=15724800; includeSubDomains
>>   7. x-content-type-options: 
>>   nosniff
>>
>>
>> I had this problems with other applicative frameworks but could solve it 
>> since they can interpret the FORWARDED_HOST, FORWARDED_PORT and 
>> FORWARDED_PATH headers provided by the proxy.
>>
>> Searching the internets gave me tons of solutions for reverse proxy with 
>> simple rewrite rules with no path alterations, but here I am stuck 
>>
>> I have no idea how to solve this withing django. Any help will be much 
>> appreciated
>>
>>
>> Additionnal information:
>> I run django with "python manage.py runserver 0.0.0.0:8000" on a docker 
>> container (running through GKE)
>>
>> Everything is pretty standard, I ran the basic django project scafolding, 
>> setup the database, auto migrated the models and that's about it. I can 
>> provide additionnal files if needed
>>
>>
>>
>>

-- 
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/6dd77ed7-8645-4306-ab0a-01279eb3cb96n%40googlegroups.com.


Re: Hi, i had question in django rest framework

2021-10-30 Thread MR INDIA
see the license page

On Saturday, 30 October 2021 at 17:55:09 UTC+5:30 kkwaq...@gmail.com wrote:

> I am waqar khan 
> I am from Maharashtra in thane city 
> i am looking for job python web developer 
> Please recommend any job.
>
>
> On Fri, Oct 29, 2021 at 10:16 PM taxijjang  wrote:
>
>> Hello I am a backend developer who is developing python django.
>> I sent you an e-mail because I had a question.
>> Currently, my company provides web services using pure django.
>> As the company grew bigger and bigger,
>> the direction of development was decided through api communication by 
>> separating the front and backend from one django project,
>> and we are trying to proceed with api communication using the django rest 
>> framework.
>> At this time, do I have to pay the usage fee when I want to develop it 
>> using the django rest framework for commercial purposes in the project 
>> currently being serviced by the company?
>> Or if you can use it without paying the usage fee, do you have to 
>> disclose the source or any restrictions under the license?
>>
>> -- 
>>
> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/ffda96a9-7ef1-4318-b895-aa4d5e61d80dn%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/0ebcf950-e7da-4a3c-b70c-e4c68b03c1d5n%40googlegroups.com.


Re: Hi, How can I implement Microservices and Serverless with Django on AWS?

2021-10-30 Thread MR INDIA
Microservices can be implemented via APIs Rest Or Graphql it is your choice 
and as a matter of fact Django can run server less infrastructures. See 
this talk about server less with Django: https://youtu.be/oYy9_4fm56o  or 
this tutorial: https://youtu.be/WaiL4sbaj_o 
Microservices : https://youtu.be/0iB5IPoTDts 

On Friday, 29 October 2021 at 19:36:44 UTC+5:30 edchels...@gmail.com wrote:

> Just attended yesterday the AWS Innovate Modern Applications in this link:
>
> https://innovate-modernapps-apj.virtual.awsevents.com/
>
> I'm really interested on the Microservices and Serverless approach.
>
> How can I implement this with django?
>
> Thanks in advance!
>
> Sincerely,
> Ed

-- 
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/a432f043-ec18-4d7c-b30e-a4f573cf8e0an%40googlegroups.com.


Re: Hi, i had question in django rest framework

2021-10-30 Thread waqar khan
I am waqar khan
I am from Maharashtra in thane city
i am looking for job python web developer
Please recommend any job.


On Fri, Oct 29, 2021 at 10:16 PM taxijjang  wrote:

> Hello I am a backend developer who is developing python django.
> I sent you an e-mail because I had a question.
> Currently, my company provides web services using pure django.
> As the company grew bigger and bigger,
> the direction of development was decided through api communication by
> separating the front and backend from one django project,
> and we are trying to proceed with api communication using the django rest
> framework.
> At this time, do I have to pay the usage fee when I want to develop it
> using the django rest framework for commercial purposes in the project
> currently being serviced by the company?
> Or if you can use it without paying the usage fee, do you have to disclose
> the source or any restrictions under the license?
>
> --
> 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/ffda96a9-7ef1-4318-b895-aa4d5e61d80dn%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/CA%2B08CANh%3D4FzD-35QfDVs1xyrPAioEYq%2BqwXDZWLqM8%3DkUC6mA%40mail.gmail.com.


Re: TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

2021-10-30 Thread waqar khan
close round bracket

*class Meta:*


On Fri, Oct 29, 2021 at 7:36 PM Sabbir Hasan Munna <
sabbirhasan2...@gmail.com> wrote:

>
> [image: Annotation 2021-10-29 081743.png]
>
> --
> 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/f7d8a010-0f68-437c-b3df-ec99a4460aafn%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/CA%2B08CAOqLzjbRa9b_knzsZGqV9h88_G6B5cZjytRCvXDH7SDxA%40mail.gmail.com.