Re: Chat Application in Django

2021-03-10 Thread vijay naudiyal
Hi Kasper,

Sure I am not offended and thank you for asking that. I will be glad to
share the project once completed.

Regards
Vijay



On Thu, 11 Mar, 2021, 08:23 Kasper Laudrup,  wrote:

> On 11/03/2021 03.34, vijay naudiyal wrote:
> >
> > Pls no personal attacks. Lets keep the thread meaningful.
> >
>
> I don't hope you feel attacked by me in any way, that has certainly not
> been my intention.
>
> > i am really a rookie in this, started Django as a hobby during the Covid
> > times, but i am glad i have been consistent in my learning and have been
> > continuously working on projects that matters to me. if people are
> > interested we can connect together, that will surely speed up our
> learning.
> >
>
> It was hard to tell from your initial
>
> --
> 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/4beb8b4a-047f-a059-9b0e-5c6e88890eae%40stacktrace.dk
> .
>

-- 
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/CABm_SG2%2BcRVudG7rVtUJW1uSTo74PoS-48wRNGtmiWG--R6O0g%40mail.gmail.com.


Re: How to disable django views in the browser

2021-03-10 Thread Kunal Solanke
Won't you end up stopping  multipart  requests in that case?

On Thu, Mar 11, 2021, 02:36 Ryan Nowakowski  wrote:

> On Wed, Mar 10, 2021 at 07:43:55AM -0800, Mostapha Bouderka wrote:
> > I'm working on a project with react and django; and want to use django
> > views to be used as information source only and not show a page on the
> > browser. For example, I have a pilot sign up page that uses a pilot
> create
> > view to provide information to the pilot model. I want the users to be
> able
> > to sign up only by using the sign up page, but if someone accesses the
> > create pilot view, he shouldn't see anything.
> > ( if the url is domain.com/sign-up, he can see the react form )
> > (if the url is domain.com/pilot/create, he shouldn't see anything or
> get an
> > error, this url should only be used by the react form)
>
> You can probably do something like:
>
> if not request.accept('application/json'):
> raise SuspiciousOperation("Sorry we only handle JSON")
>
> --
> 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/20210310210601.GM15054%40fattuba.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/CAOecAny0ZCrqmzfN_e9vrAShJ7RiV69M3N6GUAwUHen382kUaQ%40mail.gmail.com.


Re: django social login with github issue

2021-03-10 Thread Kunal Solanke
I'd have answered on stack itself but it seems kind of pointless to ask
question to another queations there.ps I don't have rep to comment.

Anyways,  ques I have here is are you opening admin panel in same window?
If so open in incognito mode.

Another are the user objects getting created in admin panel?




On Thu, Mar 11, 2021, 04:21 DJANGO DEVELOPER 
wrote:

> sorry for improper question.
> but it is the question on stack over flow with my code.
> https://stackoverflow.com/questions/66573665/github-social-login-in-django
>
> On Thu, Mar 11, 2021 at 3:46 AM Kasper Laudrup 
> wrote:
>
>> On 10/03/2021 23.00, DJANGO DEVELOPER wrote:
>> > Can anyone help me? it is just a matter of 5 minutes if someone is
>> > experienced in it.
>> >
>>
>> If you expect someone to spend five minutes of their time helping you,
>> then the least you could do would be to spend five minutes trying to
>> write a proper question giving people a chance to help you.
>>
>> This seems like it might help you:
>>
>>
>> https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> 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/dde0d4b0-0258-6f96-4c18-529b889d79e9%40stacktrace.dk
>> .
>>
> --
> 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/CAKPY9pk0-Q5EKF5ry8H2YRBLKw8vq-kheoKciGX5jR15rY9-6A%40mail.gmail.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/CAOecAnz2yFkfWYkvNezDcC-xUfhBgX2OwO0E-jELHNHdY%2B-HVQ%40mail.gmail.com.


Re: Chat Application in Django

2021-03-10 Thread Kasper Laudrup

On 11/03/2021 03.34, vijay naudiyal wrote:


Pls no personal attacks. Lets keep the thread meaningful.



I don't hope you feel attacked by me in any way, that has certainly not 
been my intention.


i am really a rookie in this, started Django as a hobby during the Covid 
times, but i am glad i have been consistent in my learning and have been 
continuously working on projects that matters to me. if people are 
interested we can connect together, that will surely speed up our learning.




It was hard to tell from your initial post what your level of experience 
was. My point was that a chat application with channels is probably not 
very good for a first Django project, but it seems like you have plenty 
of experience already for experimenting with developing a project like this.


Good to hear you are spending these times on something meaningful and 
constructive. Best of luck with your chat project. Hope you'll consider 
sharing it once you feel like you have something to share.


Kind regards,

Kasper Laudrup

Ps. Sorry for my previous half written message. I hit the wrong keys by 
accident :-(


--
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/5381f4ee-85e2-312f-0fbd-32e919bd431c%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Chat Application in Django

2021-03-10 Thread Kasper Laudrup

On 11/03/2021 03.34, vijay naudiyal wrote:


Pls no personal attacks. Lets keep the thread meaningful.



I don't hope you feel attacked by me in any way, that has certainly not 
been my intention.


i am really a rookie in this, started Django as a hobby during the Covid 
times, but i am glad i have been consistent in my learning and have been 
continuously working on projects that matters to me. if people are 
interested we can connect together, that will surely speed up our learning.




It was hard to tell from your initial

--
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/4beb8b4a-047f-a059-9b0e-5c6e88890eae%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Chat Application in Django

2021-03-10 Thread Gabriel Araya Garcia
Could you give me some hosting name where I may test (free) my django
project. My database is MySql. In PythonAnywhere they accepts only one app
(already I've one) and Heroku only run with Postgresql.

Thanks,

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos
from Santiago of Chile




El mié, 10 mar 2021 a las 14:15, vijay naudiyal ()
escribió:

> Hi All,
>
> I am a rookie and Django and trying to make chat application.
>
> I want users to be able to send messages to each other in real-time.
>
> I also want to create the chat rooms and provide permissions to users.
>
> What is the best way to do it ? I have gone through some packages and
> blogs on this but still not sure what is the right way to do it.
>
> Any help would be appreciated. Thanks in advance.
>
> Have a nice day.
>
> Regards
> Vijay
>
> --
> 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/CABm_SG2w-pR3f8SfxT-bjXmx54gc-%3DB%3DNLhe1FJWixmWjSEoEg%40mail.gmail.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/CAKVvSDA_OS1n6SBrO9U6ZOLO3E-r6Xia4cC1FRW3_X9NrO5O4w%40mail.gmail.com.


Re: Chat Application in Django

2021-03-10 Thread vijay naudiyal
Guys,

Pls no personal attacks. Lets keep the thread meaningful.

i am really a rookie in this, started Django as a hobby during the Covid
times, but i am glad i have been consistent in my learning and have been
continuously working on projects that matters to me. if people are
interested we can connect together, that will surely speed up our learning.

Of my little research i have found channels and some Django packages are a
good way. I am starting with Django Private Chat package, i will be trying
the channels approach after this.

if someone is interested to collaborate they can connect to me at
vijaynaudiyal...@gmail.com

Have a good day.

Vijay

On Thu, Mar 11, 2021 at 3:53 AM Rajesh Ranjan_067 <
rajeshrausan3...@gmail.com> wrote:

> Dear sakshi mam may I join you, as you are doing on chat app
>
> On Thu, 11 Mar, 2021, 12:15 am sakshi jain,  wrote:
>
>> shut up u owl I know its not want team member but I want to help BcoZ I'm
>> working on same project
>>
>> On Thu, Mar 11, 2021, 00:11 Kunal Solanke 
>> wrote:
>>
>>> Ig there is some confusion here,So op asked que about chat ,kasper and
>>> one other guy answered it.There was no mentions of project or someone
>>> looking for team members.
>>> On Thu, Mar 11, 2021, 00:07 Kunal Solanke 
>>> wrote:
>>>
 😂😂


 On Thu, Mar 11, 2021, 00:07 sakshi jain  wrote:

> ur chat appilication in django
>
> On Thu, Mar 11, 2021, 00:05 Kasper Laudrup 
> wrote:
>
>> On 10/03/2021 19.25, sakshi jain wrote:
>> > in ur project
>> >
>>
>> Which project?
>>
>> --
>> 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/060d988a-42a9-3e3d-0680-5f531cbe5755%40stacktrace.dk
>> .
>>
> --
> 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/CAJhs3iNdTG3Jm6y%2BJS6fCQ4CLeeq-pubEx4SY%3DwwuB6OKV6QLw%40mail.gmail.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/CAOecAnxpmrbxPc8Xv4_1stvcCoKB-xSkAg4o%3Dn8-kwSy4DKQng%40mail.gmail.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/CAJhs3iMycZXvKgi3f99pe5%2Bie43HaBttVtqz5316rdZSe%2Biahg%40mail.gmail.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/CAGy%3DYM_J5%2BJc%2BWM9ow_JSNApAa%3DravgyEO%3DKx8wOMJ-uWrH%2BDA%40mail.gmail.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/CABm_SG1ujTM9K69Wp96aCCTObgFUDzEC9-JE_XSA3hf6tjNF_A%40mail.gmail.com.


Re: how to do social login with github in python/django

2021-03-10 Thread DJANGO DEVELOPER
I am new and learning it.

On Thu, Mar 11, 2021 at 4:33 AM DJANGO DEVELOPER 
wrote:

> please help me.
>
> On Thu, Mar 11, 2021 at 4:30 AM Kasper Laudrup 
> wrote:
>
>> On 10/03/2021 23.59, DJANGO DEVELOPER wrote:
>> > are you able to solve the issue?
>> >
>>
>> Yes
>>
>> --
>> 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/b17d4661-44e4-fe7b-aef7-b66bbc4d21f1%40stacktrace.dk
>> .
>>
>

-- 
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/CAKPY9pmp6bBPHuvzO7nU3gg-rn1Jn9AoTd6E1OKLWaCDHL0Nsw%40mail.gmail.com.


Re: how to do social login with github in python/django

2021-03-10 Thread DJANGO DEVELOPER
please help me.

On Thu, Mar 11, 2021 at 4:30 AM Kasper Laudrup 
wrote:

> On 10/03/2021 23.59, DJANGO DEVELOPER wrote:
> > are you able to solve the issue?
> >
>
> Yes
>
> --
> 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/b17d4661-44e4-fe7b-aef7-b66bbc4d21f1%40stacktrace.dk
> .
>

-- 
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/CAKPY9pnjjbz36gBuaw7QOZPFJnMb%3DrMgRUNM_i-JYwqAs0S%2BcA%40mail.gmail.com.


Re: how to do social login with github in python/django

2021-03-10 Thread Kasper Laudrup

On 10/03/2021 23.59, DJANGO DEVELOPER wrote:

are you able to solve the issue?



Yes

--
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/b17d4661-44e4-fe7b-aef7-b66bbc4d21f1%40stacktrace.dk.


Re: how to do social login with github in python/django

2021-03-10 Thread DJANGO DEVELOPER
are you able to solve the issue?

On Thu, Mar 11, 2021 at 3:45 AM DJANGO DEVELOPER 
wrote:

> please this is the question I have asked on stack overflow.
> https://stackoverflow.com/questions/66573665/github-social-login-in-django
>
> On Thu, Mar 11, 2021 at 3:41 AM boyuanl...@gmail.com 
> wrote:
>
>> Can you share your code?
>>
>> On Wednesday, March 10, 2021, 02:24:21 PM PST, DJANGO DEVELOPER <
>> abubakarbr...@gmail.com> wrote:
>>
>>
>> I have been working since this afternoon and everything is working fine.
>> when I login via github and github redirects to me on home page after
>> logging in then it is not displaying me the github's username. can anyone
>> help me out right now? it is urgent please.
>>
>> --
>> 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/496ab2cb-4421-4f49-8b15-8f3940b74278n%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/1763076983.2401833.1615416048749%40mail.yahoo.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/CAKPY9pk9xZfqUZA9ayQh8Fj_F2aZoYf-7STm%3DVMXHmnF4UT4Eg%40mail.gmail.com.


Re: django social login with github issue

2021-03-10 Thread DJANGO DEVELOPER
sorry for improper question.
but it is the question on stack over flow with my code.
https://stackoverflow.com/questions/66573665/github-social-login-in-django

On Thu, Mar 11, 2021 at 3:46 AM Kasper Laudrup 
wrote:

> On 10/03/2021 23.00, DJANGO DEVELOPER wrote:
> > Can anyone help me? it is just a matter of 5 minutes if someone is
> > experienced in it.
> >
>
> If you expect someone to spend five minutes of their time helping you,
> then the least you could do would be to spend five minutes trying to
> write a proper question giving people a chance to help you.
>
> This seems like it might help you:
>
>
> https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/dde0d4b0-0258-6f96-4c18-529b889d79e9%40stacktrace.dk
> .
>

-- 
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/CAKPY9pk0-Q5EKF5ry8H2YRBLKw8vq-kheoKciGX5jR15rY9-6A%40mail.gmail.com.


Re: django social login with github issue

2021-03-10 Thread Kasper Laudrup

On 10/03/2021 23.00, DJANGO DEVELOPER wrote:
Can anyone help me? it is just a matter of 5 minutes if someone is 
experienced in it.




If you expect someone to spend five minutes of their time helping you, 
then the least you could do would be to spend five minutes trying to 
write a proper question giving people a chance to help you.


This seems like it might help you:

https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd

Kind regards,

Kasper Laudrup

--
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/dde0d4b0-0258-6f96-4c18-529b889d79e9%40stacktrace.dk.


Re: how to do social login with github in python/django

2021-03-10 Thread DJANGO DEVELOPER
please this is the question I have asked on stack overflow.
https://stackoverflow.com/questions/66573665/github-social-login-in-django

On Thu, Mar 11, 2021 at 3:41 AM boyuanl...@gmail.com 
wrote:

> Can you share your code?
>
> On Wednesday, March 10, 2021, 02:24:21 PM PST, DJANGO DEVELOPER <
> abubakarbr...@gmail.com> wrote:
>
>
> I have been working since this afternoon and everything is working fine.
> when I login via github and github redirects to me on home page after
> logging in then it is not displaying me the github's username. can anyone
> help me out right now? it is urgent please.
>
> --
> 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/496ab2cb-4421-4f49-8b15-8f3940b74278n%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/1763076983.2401833.1615416048749%40mail.yahoo.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/CAKPY9pkHrdn6Eg5Z21bPj7MyRjAxULkj8JoqcJQZCmuTCXydAA%40mail.gmail.com.


Re: how to do social login with github in python/django

2021-03-10 Thread boyuanl...@gmail.com
 Can you share your code?
On Wednesday, March 10, 2021, 02:24:21 PM PST, DJANGO DEVELOPER 
 wrote:  
 
 I have been working since this afternoon and everything is working fine. when 
I login via github and github redirects to me on home page after logging in 
then it is not displaying me the github's username. can anyone help me out 
right now? it is urgent please.

-- 
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/496ab2cb-4421-4f49-8b15-8f3940b74278n%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/1763076983.2401833.1615416048749%40mail.yahoo.com.


Re: Okta implementation with djnago 1.8

2021-03-10 Thread Andréas Kühne
I am guessing you mean to use Okta as an identity provider?

You should check the social-auth-app-django package. It has the required
connections so that you can get what you want to do working. It's more or
less just configuration.

Regards

Andréas


Den ons 10 mars 2021 kl 21:31 skrev Chandrashekhar Singh <
chandrashekhar...@gmail.com>:

> Good morning,
>
> Does anyone know how to integrate okta with django 1.8 ?
>
> Thanks
>
> --
> 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/CADNvQ1MefOii_y_CXO7k%3D1EvSN9ZaTccnxymcHh-ePi5iNdDrQ%40mail.gmail.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/CAK4qSCePsemW%2B7B7OAsbvfeAt%2BQHna3T1Pj-vkYxV-NmLNm%2BCA%40mail.gmail.com.


django social login with github issue

2021-03-10 Thread DJANGO DEVELOPER
hi I need a little help related to social login via github.
everything is working fine but when user login through github and github 
redirects to user to home page then I want to display the github's username 
on front-end. but my program is not showing the username.
Note: When I try {{request.user}} then it displays admin username, which 
shouldn't be displayed. but when I try {{user.username}} then it displays 
nothing.
Can anyone help me? it is just a matter of 5 minutes if someone is 
experienced in it.

-- 
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/d5e415cd-579f-4eea-82fc-49d7feee4e5bn%40googlegroups.com.


how to do social login with github in python/django

2021-03-10 Thread DJANGO DEVELOPER
I have been working since this afternoon and everything is working fine. 
when I login via github and github redirects to me on home page after 
logging in then it is not displaying me the github's username. can anyone 
help me out right now? it is urgent please.

-- 
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/496ab2cb-4421-4f49-8b15-8f3940b74278n%40googlegroups.com.


Re: Chat Application in Django

2021-03-10 Thread Rajesh Ranjan_067
Dear sakshi mam may I join you, as you are doing on chat app

On Thu, 11 Mar, 2021, 12:15 am sakshi jain,  wrote:

> shut up u owl I know its not want team member but I want to help BcoZ I'm
> working on same project
>
> On Thu, Mar 11, 2021, 00:11 Kunal Solanke 
> wrote:
>
>> Ig there is some confusion here,So op asked que about chat ,kasper and
>> one other guy answered it.There was no mentions of project or someone
>> looking for team members.
>> On Thu, Mar 11, 2021, 00:07 Kunal Solanke 
>> wrote:
>>
>>> 😂😂
>>>
>>>
>>> On Thu, Mar 11, 2021, 00:07 sakshi jain  wrote:
>>>
 ur chat appilication in django

 On Thu, Mar 11, 2021, 00:05 Kasper Laudrup 
 wrote:

> On 10/03/2021 19.25, sakshi jain wrote:
> > in ur project
> >
>
> Which project?
>
> --
> 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/060d988a-42a9-3e3d-0680-5f531cbe5755%40stacktrace.dk
> .
>
 --
 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/CAJhs3iNdTG3Jm6y%2BJS6fCQ4CLeeq-pubEx4SY%3DwwuB6OKV6QLw%40mail.gmail.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/CAOecAnxpmrbxPc8Xv4_1stvcCoKB-xSkAg4o%3Dn8-kwSy4DKQng%40mail.gmail.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/CAJhs3iMycZXvKgi3f99pe5%2Bie43HaBttVtqz5316rdZSe%2Biahg%40mail.gmail.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/CAGy%3DYM_J5%2BJc%2BWM9ow_JSNApAa%3DravgyEO%3DKx8wOMJ-uWrH%2BDA%40mail.gmail.com.


Re: How to disable django views in the browser

2021-03-10 Thread Ryan Nowakowski
On Wed, Mar 10, 2021 at 07:43:55AM -0800, Mostapha Bouderka wrote:
> I'm working on a project with react and django; and want to use django 
> views to be used as information source only and not show a page on the 
> browser. For example, I have a pilot sign up page that uses a pilot create 
> view to provide information to the pilot model. I want the users to be able 
> to sign up only by using the sign up page, but if someone accesses the 
> create pilot view, he shouldn't see anything.
> ( if the url is domain.com/sign-up, he can see the react form )
> (if the url is domain.com/pilot/create, he shouldn't see anything or get an 
> error, this url should only be used by the react form) 

You can probably do something like:

if not request.accept('application/json'):
raise SuspiciousOperation("Sorry we only handle JSON")

-- 
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/20210310210601.GM15054%40fattuba.com.


Re: Chat Application in Django

2021-03-10 Thread Desh Deepak
I also working chat application

On Thu, 11 Mar 2021, 12:21 am sakshi jain,  wrote:

> shut up I know everthing ...U rascal
>
> On Thu, Mar 11, 2021, 00:19 Kasper Laudrup  wrote:
>
>> On 10/03/2021 19.36, sakshi jain wrote:
>> > ur chat appilication in django
>> >
>>
>> If you don't understand how something works, in this case either a forum
>> like this one, the English language or basic human interaction, then
>> there's nothing wrong in asking for clarification.
>>
>> Confirming that you lack this basic understanding like you're doing now,
>> just confirms other peoples initial impression that you might simply be
>> an idiot or a troll.
>>
>> --
>> 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/8272c34f-a484-ee02-53c4-c7a8ba8e4291%40stacktrace.dk
>> .
>>
> --
> 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/CAJhs3iNjFJwa6HR9M3z2mnxMOVrZTk92omzjP_QU2bhnj7Sb1Q%40mail.gmail.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/CAJ0m4xiLPNb46twPpEnwkhJrbcAMdLWTkkS9u4k4yiktMk2jwQ%40mail.gmail.com.


Okta implementation with djnago 1.8

2021-03-10 Thread Chandrashekhar Singh
Good morning,

Does anyone know how to integrate okta with django 1.8 ?

Thanks

-- 
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/CADNvQ1MefOii_y_CXO7k%3D1EvSN9ZaTccnxymcHh-ePi5iNdDrQ%40mail.gmail.com.


Re: How to disable django views in the browser

2021-03-10 Thread Mostapha Bouderka
Alright i'll check it right now

Many thanks for the assistance.

On Wednesday, March 10, 2021 at 8:15:08 PM UTC kunalsol...@gmail.com wrote:

> Also you will need to add allowed hosts in djnago settung to stop requests 
> from untrusted origins
>
> On Thu, Mar 11, 2021, 01:43 Kunal Solanke  wrote:
>
>> By doing this you won't be able to stop the get requests from browser, 
>> but post requests can be stopped.
>>
>> On Thu, Mar 11, 2021, 01:42 Kunal Solanke  wrote:
>>
>>> Ok in that case, drf by default sets a browsableapi render on all of the 
>>> views and viewsets, either overide that in settings, or use 
>>> renderer_classes=(JSONRendere,) in views in which yiu want to stop it. 
>>>
>>> Search for BrowsableAPIRenderer. 
>>>
>>> Ig you should have mentioned drf sooner. 
>>>
>>>
>>>
>>>
>>> On Thu, Mar 11, 2021, 01:35 Mostapha Bouderka  
>>> wrote:
>>>
 I'am using the django rest framework


 On Wednesday, March 10, 2021 at 8:01:26 PM UTC kunalsol...@gmail.com 
 wrote:

> Idk the overall use case here ,
> But if the prject is reasonably bigger and you want to use class based 
> views, I'd suggest you to use drf. 
> But you if you don't want to use that,you will have to overide most to 
> the CBV given by djnango as most of them expect a success url or a 
> template 
> that they render. 
>
> If you are fine with functional views, do as kasper said,just use post 
> method. And moreover send JsonResponse .
>
> On Thu, Mar 11, 2021, 01:14 Kasper Laudrup  
> wrote:
>
>> On 10/03/2021 16.43, Mostapha Bouderka wrote:
>> > I'm working on a project with react and django; and want to use 
>> django 
>> > views to be used as information source only and not show a page on 
>> the 
>> > browser. For example, I have a pilot sign up page that uses a pilot 
>> > create view to provide information to the pilot model. I want the 
>> users 
>> > to be able to sign up only by using the sign up page, but if 
>> someone 
>> > accesses the create pilot view, he shouldn't see anything.
>> > ( if the url is domain.com/sign-up, he can see the react form )
>> > (if the url is domain.com/pilot/create, he shouldn't see anything 
>> or get 
>> > an error, this url should only be used by the react form)
>> > 
>> > I hope the question is clear and thanks in advance.
>> >
>>
>> If I understand correctly, wouldn't it work simply to look at the 
>> request method for the "domain.com/pilot/create" page and only 
>> return a 
>> response in case the method is POST very similar to any other form 
>> handling like this example:
>>
>>
>> https://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view
>>
>> but leaving out the else branch and the default return (which would 
>> then 
>> make Django return an HTTP 405 error)?
>>
>> I don't know anything about React, but from a quick look at the 
>> documentation it like it's just normal HTTP forms using POST.
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> -- 
>> 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/219471bc-d101-a13e-388f-25a0836e61ef%40stacktrace.dk
>> .
>>
> -- 
 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/30357e43-13fd-404a-88a3-90ca135aeff7n%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/f94b895f-e241-4529-80a5-d102212f11b5n%40googlegroups.com.


Re: How to disable django views in the browser

2021-03-10 Thread Kunal Solanke
Also you will need to add allowed hosts in djnago settung to stop requests
from untrusted origins

On Thu, Mar 11, 2021, 01:43 Kunal Solanke 
wrote:

> By doing this you won't be able to stop the get requests from browser, but
> post requests can be stopped.
>
> On Thu, Mar 11, 2021, 01:42 Kunal Solanke 
> wrote:
>
>> Ok in that case, drf by default sets a browsableapi render on all of the
>> views and viewsets, either overide that in settings, or use
>> renderer_classes=(JSONRendere,) in views in which yiu want to stop it.
>>
>> Search for BrowsableAPIRenderer.
>>
>> Ig you should have mentioned drf sooner.
>>
>>
>>
>>
>> On Thu, Mar 11, 2021, 01:35 Mostapha Bouderka 
>> wrote:
>>
>>> I'am using the django rest framework
>>>
>>>
>>> On Wednesday, March 10, 2021 at 8:01:26 PM UTC kunalsol...@gmail.com
>>> wrote:
>>>
 Idk the overall use case here ,
 But if the prject is reasonably bigger and you want to use class based
 views, I'd suggest you to use drf.
 But you if you don't want to use that,you will have to overide most to
 the CBV given by djnango as most of them expect a success url or a template
 that they render.

 If you are fine with functional views, do as kasper said,just use post
 method. And moreover send JsonResponse .

 On Thu, Mar 11, 2021, 01:14 Kasper Laudrup 
 wrote:

> On 10/03/2021 16.43, Mostapha Bouderka wrote:
> > I'm working on a project with react and django; and want to use
> django
> > views to be used as information source only and not show a page on
> the
> > browser. For example, I have a pilot sign up page that uses a pilot
> > create view to provide information to the pilot model. I want the
> users
> > to be able to sign up only by using the sign up page, but if someone
> > accesses the create pilot view, he shouldn't see anything.
> > ( if the url is domain.com/sign-up, he can see the react form )
> > (if the url is domain.com/pilot/create, he shouldn't see anything
> or get
> > an error, this url should only be used by the react form)
> >
> > I hope the question is clear and thanks in advance.
> >
>
> If I understand correctly, wouldn't it work simply to look at the
> request method for the "domain.com/pilot/create" page and only return
> a
> response in case the method is POST very similar to any other form
> handling like this example:
>
>
> https://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view
>
> but leaving out the else branch and the default return (which would
> then
> make Django return an HTTP 405 error)?
>
> I don't know anything about React, but from a quick look at the
> documentation it like it's just normal HTTP forms using POST.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/219471bc-d101-a13e-388f-25a0836e61ef%40stacktrace.dk
> .
>
 --
>>> 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/30357e43-13fd-404a-88a3-90ca135aeff7n%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/CAOecAnz4T5tYLBJrnVyJE5WJqPCMVXhEJmigbkJK_K%2BqekvxXg%40mail.gmail.com.


Re: How to disable django views in the browser

2021-03-10 Thread Kunal Solanke
By doing this you won't be able to stop the get requests from browser, but
post requests can be stopped.

On Thu, Mar 11, 2021, 01:42 Kunal Solanke 
wrote:

> Ok in that case, drf by default sets a browsableapi render on all of the
> views and viewsets, either overide that in settings, or use
> renderer_classes=(JSONRendere,) in views in which yiu want to stop it.
>
> Search for BrowsableAPIRenderer.
>
> Ig you should have mentioned drf sooner.
>
>
>
>
> On Thu, Mar 11, 2021, 01:35 Mostapha Bouderka 
> wrote:
>
>> I'am using the django rest framework
>>
>>
>> On Wednesday, March 10, 2021 at 8:01:26 PM UTC kunalsol...@gmail.com
>> wrote:
>>
>>> Idk the overall use case here ,
>>> But if the prject is reasonably bigger and you want to use class based
>>> views, I'd suggest you to use drf.
>>> But you if you don't want to use that,you will have to overide most to
>>> the CBV given by djnango as most of them expect a success url or a template
>>> that they render.
>>>
>>> If you are fine with functional views, do as kasper said,just use post
>>> method. And moreover send JsonResponse .
>>>
>>> On Thu, Mar 11, 2021, 01:14 Kasper Laudrup  wrote:
>>>
 On 10/03/2021 16.43, Mostapha Bouderka wrote:
 > I'm working on a project with react and django; and want to use
 django
 > views to be used as information source only and not show a page on
 the
 > browser. For example, I have a pilot sign up page that uses a pilot
 > create view to provide information to the pilot model. I want the
 users
 > to be able to sign up only by using the sign up page, but if someone
 > accesses the create pilot view, he shouldn't see anything.
 > ( if the url is domain.com/sign-up, he can see the react form )
 > (if the url is domain.com/pilot/create, he shouldn't see anything or
 get
 > an error, this url should only be used by the react form)
 >
 > I hope the question is clear and thanks in advance.
 >

 If I understand correctly, wouldn't it work simply to look at the
 request method for the "domain.com/pilot/create" page and only return
 a
 response in case the method is POST very similar to any other form
 handling like this example:


 https://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view

 but leaving out the else branch and the default return (which would
 then
 make Django return an HTTP 405 error)?

 I don't know anything about React, but from a quick look at the
 documentation it like it's just normal HTTP forms using POST.

 Kind regards,

 Kasper Laudrup

 --
 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/219471bc-d101-a13e-388f-25a0836e61ef%40stacktrace.dk
 .

>>> --
>> 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/30357e43-13fd-404a-88a3-90ca135aeff7n%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/CAOecAnztt-yDHsWHRECBarfmab1rUiQDLfs%3Dxy%2Bo7cW1u%3DXRDQ%40mail.gmail.com.


Re: Chat Application in Django

2021-03-10 Thread ajaykumar...@gmail.com
Well ... well .. well  rookie you are rocking here, any ways That seems 
to be interesting I haven't tried this before...  Good luck. I'll get 
back to you if i found something for you. :) 

On Thursday, March 11, 2021 at 12:28:32 AM UTC+5:30 vn241...@gmail.com 
wrote:

> Ur idot
>
> On Thu, Mar 11, 2021, 00:26 Kasper Laudrup  wrote:
>
>> On 10/03/2021 19.51, sakshi jain wrote:
>> > shut up I know everthing ...U rascal
>> >
>>
>> An idiot believes he knows everything, the genius admits he knows nothing.
>>
>> Q.E.D. Sakshi Jain is an idiot.
>>
>> (Apologies to everyone else, I know I should how stopped a long time ago)
>>
>> -- 
>> 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/160471ac-13d7-5317-a96b-66b4439241ab%40stacktrace.dk
>> .
>>
>

-- 
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/73d89f48-5c4a-4403-8ba0-3547858b8541n%40googlegroups.com.


Re: How to disable django views in the browser

2021-03-10 Thread Kunal Solanke
Ok in that case, drf by default sets a browsableapi render on all of the
views and viewsets, either overide that in settings, or use
renderer_classes=(JSONRendere,) in views in which yiu want to stop it.

Search for BrowsableAPIRenderer.

Ig you should have mentioned drf sooner.




On Thu, Mar 11, 2021, 01:35 Mostapha Bouderka 
wrote:

> I'am using the django rest framework
>
>
> On Wednesday, March 10, 2021 at 8:01:26 PM UTC kunalsol...@gmail.com
> wrote:
>
>> Idk the overall use case here ,
>> But if the prject is reasonably bigger and you want to use class based
>> views, I'd suggest you to use drf.
>> But you if you don't want to use that,you will have to overide most to
>> the CBV given by djnango as most of them expect a success url or a template
>> that they render.
>>
>> If you are fine with functional views, do as kasper said,just use post
>> method. And moreover send JsonResponse .
>>
>> On Thu, Mar 11, 2021, 01:14 Kasper Laudrup  wrote:
>>
>>> On 10/03/2021 16.43, Mostapha Bouderka wrote:
>>> > I'm working on a project with react and django; and want to use django
>>> > views to be used as information source only and not show a page on the
>>> > browser. For example, I have a pilot sign up page that uses a pilot
>>> > create view to provide information to the pilot model. I want the
>>> users
>>> > to be able to sign up only by using the sign up page, but if someone
>>> > accesses the create pilot view, he shouldn't see anything.
>>> > ( if the url is domain.com/sign-up, he can see the react form )
>>> > (if the url is domain.com/pilot/create, he shouldn't see anything or
>>> get
>>> > an error, this url should only be used by the react form)
>>> >
>>> > I hope the question is clear and thanks in advance.
>>> >
>>>
>>> If I understand correctly, wouldn't it work simply to look at the
>>> request method for the "domain.com/pilot/create" page and only return a
>>> response in case the method is POST very similar to any other form
>>> handling like this example:
>>>
>>>
>>> https://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view
>>>
>>> but leaving out the else branch and the default return (which would then
>>> make Django return an HTTP 405 error)?
>>>
>>> I don't know anything about React, but from a quick look at the
>>> documentation it like it's just normal HTTP forms using POST.
>>>
>>> Kind regards,
>>>
>>> Kasper Laudrup
>>>
>>> --
>>> 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/219471bc-d101-a13e-388f-25a0836e61ef%40stacktrace.dk
>>> .
>>>
>> --
> 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/30357e43-13fd-404a-88a3-90ca135aeff7n%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/CAOecAnyY%2BMe%3Dd4EeNGSxN4AQ2vSzNnYZbFzS3ZZiPq7ztquwsg%40mail.gmail.com.


Re: How to disable django views in the browser

2021-03-10 Thread Mostapha Bouderka
I'am using the django rest framework


On Wednesday, March 10, 2021 at 8:01:26 PM UTC kunalsol...@gmail.com wrote:

> Idk the overall use case here ,
> But if the prject is reasonably bigger and you want to use class based 
> views, I'd suggest you to use drf. 
> But you if you don't want to use that,you will have to overide most to the 
> CBV given by djnango as most of them expect a success url or a template 
> that they render. 
>
> If you are fine with functional views, do as kasper said,just use post 
> method. And moreover send JsonResponse .
>
> On Thu, Mar 11, 2021, 01:14 Kasper Laudrup  wrote:
>
>> On 10/03/2021 16.43, Mostapha Bouderka wrote:
>> > I'm working on a project with react and django; and want to use django 
>> > views to be used as information source only and not show a page on the 
>> > browser. For example, I have a pilot sign up page that uses a pilot 
>> > create view to provide information to the pilot model. I want the users 
>> > to be able to sign up only by using the sign up page, but if someone 
>> > accesses the create pilot view, he shouldn't see anything.
>> > ( if the url is domain.com/sign-up, he can see the react form )
>> > (if the url is domain.com/pilot/create, he shouldn't see anything or 
>> get 
>> > an error, this url should only be used by the react form)
>> > 
>> > I hope the question is clear and thanks in advance.
>> >
>>
>> If I understand correctly, wouldn't it work simply to look at the 
>> request method for the "domain.com/pilot/create" page and only return a 
>> response in case the method is POST very similar to any other form 
>> handling like this example:
>>
>> https://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view
>>
>> but leaving out the else branch and the default return (which would then 
>> make Django return an HTTP 405 error)?
>>
>> I don't know anything about React, but from a quick look at the 
>> documentation it like it's just normal HTTP forms using POST.
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> -- 
>> 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/219471bc-d101-a13e-388f-25a0836e61ef%40stacktrace.dk
>> .
>>
>

-- 
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/30357e43-13fd-404a-88a3-90ca135aeff7n%40googlegroups.com.


Re: How to disable django views in the browser

2021-03-10 Thread Mostapha Bouderka
Thanks for the reply.

However, your answer didn't really solve my issue.
The form i mentioned is just an example, in fact i have other views,. The 
issue is that i want those views to only handle information and send them 
bach to the front end, but if a user tries to access them through a 
browser, he either gets redirected to another page or gets an error message.

On Wednesday, March 10, 2021 at 7:44:26 PM UTC Kasper Laudrup wrote:

> On 10/03/2021 16.43, Mostapha Bouderka wrote:
> > I'm working on a project with react and django; and want to use django 
> > views to be used as information source only and not show a page on the 
> > browser. For example, I have a pilot sign up page that uses a pilot 
> > create view to provide information to the pilot model. I want the users 
> > to be able to sign up only by using the sign up page, but if someone 
> > accesses the create pilot view, he shouldn't see anything.
> > ( if the url is domain.com/sign-up, he can see the react form )
> > (if the url is domain.com/pilot/create, he shouldn't see anything or 
> get 
> > an error, this url should only be used by the react form)
> > 
> > I hope the question is clear and thanks in advance.
> >
>
> If I understand correctly, wouldn't it work simply to look at the 
> request method for the "domain.com/pilot/create" page and only return a 
> response in case the method is POST very similar to any other form 
> handling like this example:
>
> https://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view
>
> but leaving out the else branch and the default return (which would then 
> make Django return an HTTP 405 error)?
>
> I don't know anything about React, but from a quick look at the 
> documentation it like it's just normal HTTP forms using POST.
>
> Kind regards,
>
> Kasper Laudrup
>

-- 
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/dd57c808-7c3e-4dcf-b46f-30a5ab02d8a2n%40googlegroups.com.


Re: How to disable django views in the browser

2021-03-10 Thread Kunal Solanke
Please ignore typos.

On Thu, Mar 11, 2021, 01:30 Kunal Solanke 
wrote:

> Idk the overall use case here ,
> But if the prject is reasonably bigger and you want to use class based
> views, I'd suggest you to use drf.
> But you if you don't want to use that,you will have to overide most to the
> CBV given by djnango as most of them expect a success url or a template
> that they render.
>
> If you are fine with functional views, do as kasper said,just use post
> method. And moreover send JsonResponse .
>
> On Thu, Mar 11, 2021, 01:14 Kasper Laudrup  wrote:
>
>> On 10/03/2021 16.43, Mostapha Bouderka wrote:
>> > I'm working on a project with react and django; and want to use django
>> > views to be used as information source only and not show a page on the
>> > browser. For example, I have a pilot sign up page that uses a pilot
>> > create view to provide information to the pilot model. I want the users
>> > to be able to sign up only by using the sign up page, but if someone
>> > accesses the create pilot view, he shouldn't see anything.
>> > ( if the url is domain.com/sign-up, he can see the react form )
>> > (if the url is domain.com/pilot/create, he shouldn't see anything or
>> get
>> > an error, this url should only be used by the react form)
>> >
>> > I hope the question is clear and thanks in advance.
>> >
>>
>> If I understand correctly, wouldn't it work simply to look at the
>> request method for the "domain.com/pilot/create" page and only return a
>> response in case the method is POST very similar to any other form
>> handling like this example:
>>
>> https://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view
>>
>> but leaving out the else branch and the default return (which would then
>> make Django return an HTTP 405 error)?
>>
>> I don't know anything about React, but from a quick look at the
>> documentation it like it's just normal HTTP forms using POST.
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> 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/219471bc-d101-a13e-388f-25a0836e61ef%40stacktrace.dk
>> .
>>
>

-- 
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/CAOecAnwkcDGf3vPuwq%2BP7q8NWxEcqaDBNHV_3DXZkSFR2oygQQ%40mail.gmail.com.


Re: How to disable django views in the browser

2021-03-10 Thread Kunal Solanke
Idk the overall use case here ,
But if the prject is reasonably bigger and you want to use class based
views, I'd suggest you to use drf.
But you if you don't want to use that,you will have to overide most to the
CBV given by djnango as most of them expect a success url or a template
that they render.

If you are fine with functional views, do as kasper said,just use post
method. And moreover send JsonResponse .

On Thu, Mar 11, 2021, 01:14 Kasper Laudrup  wrote:

> On 10/03/2021 16.43, Mostapha Bouderka wrote:
> > I'm working on a project with react and django; and want to use django
> > views to be used as information source only and not show a page on the
> > browser. For example, I have a pilot sign up page that uses a pilot
> > create view to provide information to the pilot model. I want the users
> > to be able to sign up only by using the sign up page, but if someone
> > accesses the create pilot view, he shouldn't see anything.
> > ( if the url is domain.com/sign-up, he can see the react form )
> > (if the url is domain.com/pilot/create, he shouldn't see anything or
> get
> > an error, this url should only be used by the react form)
> >
> > I hope the question is clear and thanks in advance.
> >
>
> If I understand correctly, wouldn't it work simply to look at the
> request method for the "domain.com/pilot/create" page and only return a
> response in case the method is POST very similar to any other form
> handling like this example:
>
> https://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view
>
> but leaving out the else branch and the default return (which would then
> make Django return an HTTP 405 error)?
>
> I don't know anything about React, but from a quick look at the
> documentation it like it's just normal HTTP forms using POST.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/219471bc-d101-a13e-388f-25a0836e61ef%40stacktrace.dk
> .
>

-- 
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/CAOecAnwasg%3DXnDYLpQPiXfZ7UEwKzr9townw%3DYixhZ4%3DvJagpQ%40mail.gmail.com.


Re: How to disable django views in the browser

2021-03-10 Thread Kasper Laudrup

On 10/03/2021 16.43, Mostapha Bouderka wrote:
I'm working on a project with react and django; and want to use django 
views to be used as information source only and not show a page on the 
browser. For example, I have a pilot sign up page that uses a pilot 
create view to provide information to the pilot model. I want the users 
to be able to sign up only by using the sign up page, but if someone 
accesses the create pilot view, he shouldn't see anything.

( if the url is domain.com/sign-up, he can see the react form )
(if the url is domain.com/pilot/create, he shouldn't see anything or get 
an error, this url should only be used by the react form)


I hope the question is clear and thanks in advance.



If I understand correctly, wouldn't it work simply to look at the 
request method for the "domain.com/pilot/create" page and only return a 
response in case the method is POST very similar to any other form 
handling like this example:


https://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view

but leaving out the else branch and the default return (which would then 
make Django return an HTTP 405 error)?


I don't know anything about React, but from a quick look at the 
documentation it like it's just normal HTTP forms using POST.


Kind regards,

Kasper Laudrup

--
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/219471bc-d101-a13e-388f-25a0836e61ef%40stacktrace.dk.


How to disable django views in the browser

2021-03-10 Thread Mostapha Bouderka
Hi

I'm working on a project with react and django; and want to use django 
views to be used as information source only and not show a page on the 
browser. For example, I have a pilot sign up page that uses a pilot create 
view to provide information to the pilot model. I want the users to be able 
to sign up only by using the sign up page, but if someone accesses the 
create pilot view, he shouldn't see anything.
( if the url is domain.com/sign-up, he can see the react form )
(if the url is domain.com/pilot/create, he shouldn't see anything or get an 
error, this url should only be used by the react form) 

I hope the question is clear and thanks in advance.

-- 
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/a8be6367-ae4c-45ef-837f-fbdc6695b4d5n%40googlegroups.com.


Re: Chat Application in Django

2021-03-10 Thread sakshi jain
Ur idot

On Thu, Mar 11, 2021, 00:26 Kasper Laudrup  wrote:

> On 10/03/2021 19.51, sakshi jain wrote:
> > shut up I know everthing ...U rascal
> >
>
> An idiot believes he knows everything, the genius admits he knows nothing.
>
> Q.E.D. Sakshi Jain is an idiot.
>
> (Apologies to everyone else, I know I should how stopped a long time ago)
>
> --
> 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/160471ac-13d7-5317-a96b-66b4439241ab%40stacktrace.dk
> .
>

-- 
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/CAJhs3iMZE-mPvTC7ooPgsLhfkrabwV3rY7XmvoKz_GXS-X6GVg%40mail.gmail.com.


Re: Chat Application in Django

2021-03-10 Thread Kasper Laudrup

On 10/03/2021 19.51, sakshi jain wrote:

shut up I know everthing ...U rascal



An idiot believes he knows everything, the genius admits he knows nothing.

Q.E.D. Sakshi Jain is an idiot.

(Apologies to everyone else, I know I should how stopped a long time ago)

--
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/160471ac-13d7-5317-a96b-66b4439241ab%40stacktrace.dk.


Re: Chat Application in Django

2021-03-10 Thread sakshi jain
shut up I know everthing ...U rascal

On Thu, Mar 11, 2021, 00:19 Kasper Laudrup  wrote:

> On 10/03/2021 19.36, sakshi jain wrote:
> > ur chat appilication in django
> >
>
> If you don't understand how something works, in this case either a forum
> like this one, the English language or basic human interaction, then
> there's nothing wrong in asking for clarification.
>
> Confirming that you lack this basic understanding like you're doing now,
> just confirms other peoples initial impression that you might simply be
> an idiot or a troll.
>
> --
> 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/8272c34f-a484-ee02-53c4-c7a8ba8e4291%40stacktrace.dk
> .
>

-- 
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/CAJhs3iNjFJwa6HR9M3z2mnxMOVrZTk92omzjP_QU2bhnj7Sb1Q%40mail.gmail.com.


Re: Chat Application in Django

2021-03-10 Thread Kasper Laudrup

On 10/03/2021 19.36, sakshi jain wrote:

ur chat appilication in django



If you don't understand how something works, in this case either a forum 
like this one, the English language or basic human interaction, then 
there's nothing wrong in asking for clarification.


Confirming that you lack this basic understanding like you're doing now, 
just confirms other peoples initial impression that you might simply be 
an idiot or a troll.


--
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/8272c34f-a484-ee02-53c4-c7a8ba8e4291%40stacktrace.dk.


Re: Chat Application in Django

2021-03-10 Thread sakshi jain
shut up u owl I know its not want team member but I want to help BcoZ I'm
working on same project

On Thu, Mar 11, 2021, 00:11 Kunal Solanke 
wrote:

> Ig there is some confusion here,So op asked que about chat ,kasper and one
> other guy answered it.There was no mentions of project or someone looking
> for team members.
> On Thu, Mar 11, 2021, 00:07 Kunal Solanke 
> wrote:
>
>> 😂😂
>>
>>
>> On Thu, Mar 11, 2021, 00:07 sakshi jain  wrote:
>>
>>> ur chat appilication in django
>>>
>>> On Thu, Mar 11, 2021, 00:05 Kasper Laudrup 
>>> wrote:
>>>
 On 10/03/2021 19.25, sakshi jain wrote:
 > in ur project
 >

 Which project?

 --
 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/060d988a-42a9-3e3d-0680-5f531cbe5755%40stacktrace.dk
 .

>>> --
>>> 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/CAJhs3iNdTG3Jm6y%2BJS6fCQ4CLeeq-pubEx4SY%3DwwuB6OKV6QLw%40mail.gmail.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/CAOecAnxpmrbxPc8Xv4_1stvcCoKB-xSkAg4o%3Dn8-kwSy4DKQng%40mail.gmail.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/CAJhs3iMycZXvKgi3f99pe5%2Bie43HaBttVtqz5316rdZSe%2Biahg%40mail.gmail.com.


Re: Chat Application in Django

2021-03-10 Thread Kunal Solanke
Ig there is some confusion here,So op asked que about chat ,kasper and one
other guy answered it.There was no mentions of project or someone looking
for team members.
On Thu, Mar 11, 2021, 00:07 Kunal Solanke 
wrote:

> 😂😂
>
>
> On Thu, Mar 11, 2021, 00:07 sakshi jain  wrote:
>
>> ur chat appilication in django
>>
>> On Thu, Mar 11, 2021, 00:05 Kasper Laudrup  wrote:
>>
>>> On 10/03/2021 19.25, sakshi jain wrote:
>>> > in ur project
>>> >
>>>
>>> Which project?
>>>
>>> --
>>> 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/060d988a-42a9-3e3d-0680-5f531cbe5755%40stacktrace.dk
>>> .
>>>
>> --
>> 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/CAJhs3iNdTG3Jm6y%2BJS6fCQ4CLeeq-pubEx4SY%3DwwuB6OKV6QLw%40mail.gmail.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/CAOecAnxpmrbxPc8Xv4_1stvcCoKB-xSkAg4o%3Dn8-kwSy4DKQng%40mail.gmail.com.


Re: Chat Application in Django

2021-03-10 Thread sakshi jain
I'm not joking

On Thu, Mar 11, 2021, 00:08 Kunal Solanke 
wrote:

> 😂😂
>
>
> On Thu, Mar 11, 2021, 00:07 sakshi jain  wrote:
>
>> ur chat appilication in django
>>
>> On Thu, Mar 11, 2021, 00:05 Kasper Laudrup  wrote:
>>
>>> On 10/03/2021 19.25, sakshi jain wrote:
>>> > in ur project
>>> >
>>>
>>> Which project?
>>>
>>> --
>>> 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/060d988a-42a9-3e3d-0680-5f531cbe5755%40stacktrace.dk
>>> .
>>>
>> --
>> 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/CAJhs3iNdTG3Jm6y%2BJS6fCQ4CLeeq-pubEx4SY%3DwwuB6OKV6QLw%40mail.gmail.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/CAOecAnzpZNB0HBEq3waJA7muS-Fz4AoB-ygYQ%3DTtutnZmx2C8A%40mail.gmail.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/CAJhs3iMW8g4%3DDb2Dy2fg%2BCb9_2QuGZ7HbomGGTsQjFNnR%3DHNcw%40mail.gmail.com.


Re: Chat Application in Django

2021-03-10 Thread Kunal Solanke
😂😂


On Thu, Mar 11, 2021, 00:07 sakshi jain  wrote:

> ur chat appilication in django
>
> On Thu, Mar 11, 2021, 00:05 Kasper Laudrup  wrote:
>
>> On 10/03/2021 19.25, sakshi jain wrote:
>> > in ur project
>> >
>>
>> Which project?
>>
>> --
>> 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/060d988a-42a9-3e3d-0680-5f531cbe5755%40stacktrace.dk
>> .
>>
> --
> 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/CAJhs3iNdTG3Jm6y%2BJS6fCQ4CLeeq-pubEx4SY%3DwwuB6OKV6QLw%40mail.gmail.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/CAOecAnzpZNB0HBEq3waJA7muS-Fz4AoB-ygYQ%3DTtutnZmx2C8A%40mail.gmail.com.


Re: Chat Application in Django

2021-03-10 Thread sakshi jain
ur chat appilication in django

On Thu, Mar 11, 2021, 00:05 Kasper Laudrup  wrote:

> On 10/03/2021 19.25, sakshi jain wrote:
> > in ur project
> >
>
> Which project?
>
> --
> 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/060d988a-42a9-3e3d-0680-5f531cbe5755%40stacktrace.dk
> .
>

-- 
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/CAJhs3iNdTG3Jm6y%2BJS6fCQ4CLeeq-pubEx4SY%3DwwuB6OKV6QLw%40mail.gmail.com.


Re: Chat Application in Django

2021-03-10 Thread Kasper Laudrup

On 10/03/2021 19.25, sakshi jain wrote:

in ur project



Which project?

--
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/060d988a-42a9-3e3d-0680-5f531cbe5755%40stacktrace.dk.


Re: Chat Application in Django

2021-03-10 Thread sakshi jain
in ur project

On Wed, Mar 10, 2021, 23:29 Kasper Laudrup  wrote:

> On 10/03/2021 18.17, sakshi jain wrote:
> > plz include me
> >
>
> Include you in what?
>
> Remember to take your medicine before posting online, otherwise people
> might think you're simply being retarded.
>
> (Look at this guys post history before blaming me)
>
> --
> 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/3100ba6c-462f-c837-f56a-1f7da3956d15%40stacktrace.dk
> .
>

-- 
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/CAJhs3iN8M8WH-6qECYsG-jey6cZ5eEnec-%2BVyEO1XOXK9R1V_w%40mail.gmail.com.


Re: Chat Application in Django

2021-03-10 Thread Kasper Laudrup

On 10/03/2021 18.17, sakshi jain wrote:

plz include me



Include you in what?

Remember to take your medicine before posting online, otherwise people 
might think you're simply being retarded.


(Look at this guys post history before blaming me)

--
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/3100ba6c-462f-c837-f56a-1f7da3956d15%40stacktrace.dk.


Re: Chat Application in Django

2021-03-10 Thread Kasper Laudrup

On 10/03/2021 18.17, sakshi jain wrote:

I'm intrested



"intrested" in what?

Do you ever read what you respond to?

--
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/aecfd175-3366-2405-3523-4fc14761ad9b%40stacktrace.dk.


Re: Chat Application in Django

2021-03-10 Thread Kasper Laudrup

On 10/03/2021 18.15, vijay naudiyal wrote:

Hi All,

I am a rookie and Django and trying to make chat application.

I want users to be able to send messages to each other in real-time.

I also want to create the chat rooms and provide permissions to users.

What is the best way to do it ? I have gone through some packages and 
blogs on this but still not sure what is the right way to do it.


Any help would be appreciated. Thanks in advance.



While creating a chat application with the help of Django in one way 
another is definitely possible, it might help to remember that Django is 
first and foremost a web development framework.


The "web" or HTTP is inherently using the client/server model meaning, a 
client sends a requests and the server provides a response. That is of 
course extremely simplified, but it does mean that creating a real time 
chat application doesn't fit very well into this paradigm.


In order to do something like this most of the work most likely needs to 
be done using javascript with either some polling or (better) using 
websockets.


My point is, that if you're a rookie and want to learn Django, a real 
time chat application is probably not the best choice as a starting point.


Something like a forum with more "static" messages would be a much 
better challenge as you can spend most of your time learning Django 
without dealing with thirdparty packages, client side javascript and such.


You would still have a great opertunity to learn about user permissions, 
database models etc. which Django does extremely well.


If on the other hand you want to get your hands dirty with creating a 
real time chat application that works in a browser, I could imagine 
Django more or less just getting in the way and causing confusion and 
you might be better of looking at client side frameworks.


That's just my opinion of course and happy to be corrected, but I hope 
that does help you somewhat.


Good luck no matter what.

Kind regards,

Kasper Laudrup

--
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/d316dc09-2b4f-e5b0-febf-32576bc1b064%40stacktrace.dk.


Re: Chat Application in Django

2021-03-10 Thread Ryan Nowakowski
On Wed, Mar 10, 2021 at 10:45:13PM +0530, vijay naudiyal wrote:
> I am a rookie and Django and trying to make chat application.
>
> I want users to be able to send messages to each other in real-time.
> 
> I also want to create the chat rooms and provide permissions to users.
> 
> What is the best way to do it ? I have gone through some packages and blogs
> on this but still not sure what is the right way to do it.

Channels is probably the currently recommended approach:

https://channels.readthedocs.io/en/stable/tutorial/index.html

-- 
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/20210310174233.GJ15054%40fattuba.com.


Re: Chat Application in Django

2021-03-10 Thread sakshi jain
plz include me

On Wed, Mar 10, 2021, 22:47 sakshi jain  wrote:

> I'm intrested
>
> On Wed, Mar 10, 2021, 22:46 vijay naudiyal  wrote:
>
>> Hi All,
>>
>> I am a rookie and Django and trying to make chat application.
>>
>> I want users to be able to send messages to each other in real-time.
>>
>> I also want to create the chat rooms and provide permissions to users.
>>
>> What is the best way to do it ? I have gone through some packages and
>> blogs on this but still not sure what is the right way to do it.
>>
>> Any help would be appreciated. Thanks in advance.
>>
>> Have a nice day.
>>
>> Regards
>> Vijay
>>
>> --
>> 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/CABm_SG2w-pR3f8SfxT-bjXmx54gc-%3DB%3DNLhe1FJWixmWjSEoEg%40mail.gmail.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/CAJhs3iPYP4iUvCmHNMnbHE3BQjOCQJSzQVtQtpW%3D%3DE8x2dEuXg%40mail.gmail.com.


Re: Chat Application in Django

2021-03-10 Thread sakshi jain
I'm intrested

On Wed, Mar 10, 2021, 22:46 vijay naudiyal  wrote:

> Hi All,
>
> I am a rookie and Django and trying to make chat application.
>
> I want users to be able to send messages to each other in real-time.
>
> I also want to create the chat rooms and provide permissions to users.
>
> What is the best way to do it ? I have gone through some packages and
> blogs on this but still not sure what is the right way to do it.
>
> Any help would be appreciated. Thanks in advance.
>
> Have a nice day.
>
> Regards
> Vijay
>
> --
> 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/CABm_SG2w-pR3f8SfxT-bjXmx54gc-%3DB%3DNLhe1FJWixmWjSEoEg%40mail.gmail.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/CAJhs3iNN_exqzC407dYujF%3Dax9ADOSfpAifev7_wo1xY35vvsQ%40mail.gmail.com.


Chat Application in Django

2021-03-10 Thread vijay naudiyal
Hi All,

I am a rookie and Django and trying to make chat application.

I want users to be able to send messages to each other in real-time.

I also want to create the chat rooms and provide permissions to users.

What is the best way to do it ? I have gone through some packages and blogs
on this but still not sure what is the right way to do it.

Any help would be appreciated. Thanks in advance.

Have a nice day.

Regards
Vijay

-- 
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/CABm_SG2w-pR3f8SfxT-bjXmx54gc-%3DB%3DNLhe1FJWixmWjSEoEg%40mail.gmail.com.


Re: How to run django-helpdesk in visual studio code or ubuntu 20.04

2021-03-10 Thread Kasper Laudrup

On 10/03/2021 12.28, Azharul Islam Somon wrote:


I clone the the https://github.com/django-helpdesk/django-helpdesk and 
install all the requirement, but i am not understanding the way to run 
in my local environment. I am getting this type of output, how to run?




Have you considered trying to follow the instructions on the frontpage 
of the repository you have cloned?


It is very clearly written in the README.

Kind regards,

Kasper Laudrup

--
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/8e084664-bc5d-6088-cbed-c944f943295a%40stacktrace.dk.


Re: can I use django authentication in already created mysql database with user data?

2021-03-10 Thread Kasper Laudrup

On 10/03/2021 07.54, Kevin Thomas wrote:
I am creating a web app and I need to authenticate the login. The 
username and password is already stored in mysql database. Can I use 
django for authentication of existing data? It will be great help if 
anyone knows the answer.




You can:

https://docs.djangoproject.com/en/3.1/topics/auth/customizing/

The tricky part will most likely the password handling. Hopefully the 
passwords are not stored in clear text in the database in which case you 
need to figured out how they are hashed and salted.


If the passwords are in clear text, you should export the user database, 
reimport them in using standard Django auth and inform all users that 
their accounts are potentially compromised and they should change their 
password ASAP.


The last part is not only the right thing to do, but to the best of my 
knowledge also a legal requirement, at least within the EU (GDPR).


Kind regards,

Kasper Laudrup

--
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/15ef1bcf-e6e0-6014-917b-de2688bbb2d7%40stacktrace.dk.


Power BI Dashboard Embed Code Using Django.

2021-03-10 Thread GEETHANJALI S P
Hi,

How to embed Report/dashboard in Power BI to a Web portal using Django?

Thanks,
Geethanjali.

-- 
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/74c60720-9a25-49f8-ae42-9829d1ba3a50n%40googlegroups.com.


How to run django-helpdesk in visual studio code or ubuntu 20.04

2021-03-10 Thread Azharul Islam Somon

I clone the the https://github.com/django-helpdesk/django-helpdesk and 
install all the requirement, but i am not understanding the way to run in 
my local environment. I am getting this type of output, how to run? 

Thanks in advance.

-- 
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/23295ec3-3fa7-4e59-b7f7-7df7ecbc533cn%40googlegroups.com.


can I use django authentication in already created mysql database with user data?

2021-03-10 Thread Kevin Thomas
I am creating a web app and I need to authenticate the login. The username 
and password is already stored in mysql database. Can I use django for 
authentication of existing data? It will be great help if anyone knows the 
answer.

-- 
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/50dd8d8b-da70-462f-abe2-fe446f826693n%40googlegroups.com.