Re: WSGIAUTHORIZATION

2020-12-11 Thread Nitin Kalmaste
What was the bug?

On Sat, 12 Dec 2020, 8:52 am narendra thapa, 
wrote:

> yeah i figured out the problem bro thank you very @Nitin Kalmaste much
> giving your previous time.
>
> On Sat, Dec 12, 2020 at 8:00 AM narendra thapa 
> wrote:
>
>> Nothing works for me tried everything, always throws a forbidden. Djoser
>> documentation says support upto Djnago-restframework V11 but i have got
>> V12. Is that a problem or what. I am not able to figure it out.
>>
>> On Fri, Dec 11, 2020 at 11:17 PM Nitin Kalmaste 
>> wrote:
>>
>>> There is space between jwt and token i.e. Authorization: jwt 
>>>
>>> On Fri, 11 Dec 2020, 9:03 pm narendra thapa, 
>>> wrote:
>>>
>>>> i have used postman also to check the endpoint but same problem. I
>>>> think problem is in django backend not in react.
>>>>
>>>> On Fri, Dec 11, 2020 at 9:14 PM narendra thapa <
>>>> narendrathapa...@gmail.com> wrote:
>>>>
>>>>> const config1 = {
>>>>> headers:{
>>>>> 'Content-Type':'application/json',
>>>>> 'Authorization':`JWT ${res.data?.access}`,
>>>>> 'Accept':'application/json'
>>>>> }
>>>>> }
>>>>> console.log('hello',config1)
>>>>> try{
>>>>> const res1 = axios.get(`http://localhost:8000/auth/users/me/`
>>>>> <http://localhost:8000/auth/users/me/>,config1).then(
>>>>> response => response
>>>>> )
>>>>> console.log(res1);
>>>>> }catch(err){
>>>>> console.log(err)
>>>>> }
>>>>>
>>>>> On Fri, Dec 11, 2020 at 8:47 PM Nitin Kalmaste 
>>>>> wrote:
>>>>>
>>>>>> Can You send me json request details, how you are sending data to
>>>>>> server
>>>>>> using react
>>>>>>
>>>>>> On Fri, Dec 11, 2020 at 8:21 PM narendra thapa <
>>>>>> narendrathapa...@gmail.com> wrote:
>>>>>>
>>>>>>> I have followed the documentation. and done all the thing that i
>>>>>>> could do. i am getting access token but not able to authorize
>>>>>>> here is my code in stackoverflow please check it once. I have
>>>>>>> followed a tutorial for the same in that he is able to access but i got
>>>>>>> stuck.
>>>>>>> for frontend i'm using the React js
>>>>>>>
>>>>>>>
>>>>>>> https://stackoverflow.com/questions/65253481/djoser-simplejwt-authorization-forbidden403-whie-sending-jwt-token-to-auth-u
>>>>>>>
>>>>>>> On Fri, Dec 11, 2020 at 8:26 PM Nitin Kalmaste <
>>>>>>> nknckalma...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Getting started — djoser 2.0.1 documentation
>>>>>>>> <https://djoser.readthedocs.io/en/latest/getting_started.html> --
>>>>>>>> Use this as a reference and start your project
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Dec 11, 2020 at 8:09 PM Nitin Kalmaste <
>>>>>>>> nknckalma...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Have you followed the official documentation? i dont't see that
>>>>>>>>> you have used any settings
>>>>>>>>>
>>>>>>>>> On Fri, Dec 11, 2020 at 7:10 PM narendra thapa <
>>>>>>>>> narendrathapa...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> here is the project
>>>>>>>>>>
>>>>>>>>>> On Fri, Dec 11, 2020 at 5:02 PM Nitin Kalmaste <
>>>>>>>>>> nknckalma...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Can you share some of your code so we can figure it out? As
>>>>>>>>>>> early as possible
>>>>>>>>>>>
>>>>>>>>>>> On Fri, 11 Dec 2020, 3:18 pm narendra thapa, <
>>>>>>>>>>> narendrathapa...@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I am using JWT . I can get the access and refresh token
>>>>>>>>>>>&

Re: WSGIAUTHORIZATION

2020-12-11 Thread Nitin Kalmaste
There is space between jwt and token i.e. Authorization: jwt 

On Fri, 11 Dec 2020, 9:03 pm narendra thapa, 
wrote:

> i have used postman also to check the endpoint but same problem. I think
> problem is in django backend not in react.
>
> On Fri, Dec 11, 2020 at 9:14 PM narendra thapa 
> wrote:
>
>> const config1 = {
>> headers:{
>> 'Content-Type':'application/json',
>> 'Authorization':`JWT ${res.data?.access}`,
>> 'Accept':'application/json'
>> }
>> }
>> console.log('hello',config1)
>> try{
>> const res1 = axios.get(`http://localhost:8000/auth/users/me/`
>> <http://localhost:8000/auth/users/me/>,config1).then(
>> response => response
>> )
>> console.log(res1);
>> }catch(err){
>> console.log(err)
>> }
>>
>> On Fri, Dec 11, 2020 at 8:47 PM Nitin Kalmaste 
>> wrote:
>>
>>> Can You send me json request details, how you are sending data to server
>>> using react
>>>
>>> On Fri, Dec 11, 2020 at 8:21 PM narendra thapa <
>>> narendrathapa...@gmail.com> wrote:
>>>
>>>> I have followed the documentation. and done all the thing that i could
>>>> do. i am getting access token but not able to authorize
>>>> here is my code in stackoverflow please check it once. I have followed
>>>> a tutorial for the same in that he is able to access but i got stuck.
>>>> for frontend i'm using the React js
>>>>
>>>>
>>>> https://stackoverflow.com/questions/65253481/djoser-simplejwt-authorization-forbidden403-whie-sending-jwt-token-to-auth-u
>>>>
>>>> On Fri, Dec 11, 2020 at 8:26 PM Nitin Kalmaste 
>>>> wrote:
>>>>
>>>>> Getting started — djoser 2.0.1 documentation
>>>>> <https://djoser.readthedocs.io/en/latest/getting_started.html> -- Use
>>>>> this as a reference and start your project
>>>>>
>>>>>
>>>>> On Fri, Dec 11, 2020 at 8:09 PM Nitin Kalmaste 
>>>>> wrote:
>>>>>
>>>>>> Have you followed the official documentation? i dont't see that you
>>>>>> have used any settings
>>>>>>
>>>>>> On Fri, Dec 11, 2020 at 7:10 PM narendra thapa <
>>>>>> narendrathapa...@gmail.com> wrote:
>>>>>>
>>>>>>> here is the project
>>>>>>>
>>>>>>> On Fri, Dec 11, 2020 at 5:02 PM Nitin Kalmaste <
>>>>>>> nknckalma...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Can you share some of your code so we can figure it out? As early
>>>>>>>> as possible
>>>>>>>>
>>>>>>>> On Fri, 11 Dec 2020, 3:18 pm narendra thapa, <
>>>>>>>> narendrathapa...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> I am using JWT . I can get the access and refresh token and
>>>>>>>>> while i resent the access token Authorization : JWT  it 
>>>>>>>>> send
>>>>>>>>> 403 forbidden. I am using DJOSER and simple JWT for authentication and
>>>>>>>>> authorization.
>>>>>>>>>
>>>>>>>>> On Fri, Dec 11, 2020 at 1:45 PM Nitin Kalmaste <
>>>>>>>>> nknckalma...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Check weather sending token in a proper way ither in terms of
>>>>>>>>>> authorization or as a bearer token.  It depends on what backend you 
>>>>>>>>>> are
>>>>>>>>>> using.
>>>>>>>>>>
>>>>>>>>>> On Fri, 11 Dec 2020, 12:19 pm narendra...@gmail.com, <
>>>>>>>>>> narendrathapa...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Do we need to do WSGIAUTHORIZATION ON in order to authorize a
>>>>>>>>>>> jwt token.
>>>>>>>>>>> I am getting "detail": "Authentication credentials were not
>>>>>>>>>>> provided." while sending a authorizationtoken and 403 forbidden. can
>>>>>>>>>>> somebodyhelp me out.
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>&

Re: WSGIAUTHORIZATION

2020-12-11 Thread Nitin Kalmaste
Can You send me json request details, how you are sending data to server
using react

On Fri, Dec 11, 2020 at 8:21 PM narendra thapa 
wrote:

> I have followed the documentation. and done all the thing that i could do.
> i am getting access token but not able to authorize
> here is my code in stackoverflow please check it once. I have followed a
> tutorial for the same in that he is able to access but i got stuck.
> for frontend i'm using the React js
>
>
> https://stackoverflow.com/questions/65253481/djoser-simplejwt-authorization-forbidden403-whie-sending-jwt-token-to-auth-u
>
> On Fri, Dec 11, 2020 at 8:26 PM Nitin Kalmaste 
> wrote:
>
>> Getting started — djoser 2.0.1 documentation
>> <https://djoser.readthedocs.io/en/latest/getting_started.html> -- Use
>> this as a reference and start your project
>>
>>
>> On Fri, Dec 11, 2020 at 8:09 PM Nitin Kalmaste 
>> wrote:
>>
>>> Have you followed the official documentation? i dont't see that you have
>>> used any settings
>>>
>>> On Fri, Dec 11, 2020 at 7:10 PM narendra thapa <
>>> narendrathapa...@gmail.com> wrote:
>>>
>>>> here is the project
>>>>
>>>> On Fri, Dec 11, 2020 at 5:02 PM Nitin Kalmaste 
>>>> wrote:
>>>>
>>>>> Can you share some of your code so we can figure it out? As early as
>>>>> possible
>>>>>
>>>>> On Fri, 11 Dec 2020, 3:18 pm narendra thapa, <
>>>>> narendrathapa...@gmail.com> wrote:
>>>>>
>>>>>> I am using JWT . I can get the access and refresh token and
>>>>>> while i resent the access token Authorization : JWT  it 
>>>>>> send
>>>>>> 403 forbidden. I am using DJOSER and simple JWT for authentication and
>>>>>> authorization.
>>>>>>
>>>>>> On Fri, Dec 11, 2020 at 1:45 PM Nitin Kalmaste <
>>>>>> nknckalma...@gmail.com> wrote:
>>>>>>
>>>>>>> Check weather sending token in a proper way ither in terms of
>>>>>>> authorization or as a bearer token.  It depends on what backend you are
>>>>>>> using.
>>>>>>>
>>>>>>> On Fri, 11 Dec 2020, 12:19 pm narendra...@gmail.com, <
>>>>>>> narendrathapa...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Do we need to do WSGIAUTHORIZATION ON in order to authorize a jwt
>>>>>>>> token.
>>>>>>>> I am getting "detail": "Authentication credentials were not
>>>>>>>> provided." while sending a authorizationtoken and 403 forbidden. can
>>>>>>>> somebodyhelp me out.
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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/fd2b35cd-2866-4f6b-a28a-46e25b0f19afn%40googlegroups.com
>>>>>>>> <https://groups.google.com/d/msgid/django-users/fd2b35cd-2866-4f6b-a28a-46e25b0f19afn%40googlegroups.com?utm_medium=email_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>> --
>>>>>>> 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/CAKroR%2B0%2BuHQbOEr7AsXuu5aNWTDL-shPSE8Cah0cfVVoGQ_eiA%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/CAKroR%2B0%2BuHQbOEr7AsXuu5aNWTDL-shPSE8Cah0cfVVoGQ_eiA%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Django users" group.
>>>>>&

Re: WSGIAUTHORIZATION

2020-12-11 Thread Nitin Kalmaste
Getting started — djoser 2.0.1 documentation
<https://djoser.readthedocs.io/en/latest/getting_started.html> -- Use this
as a reference and start your project


On Fri, Dec 11, 2020 at 8:09 PM Nitin Kalmaste 
wrote:

> Have you followed the official documentation? i dont't see that you have
> used any settings
>
> On Fri, Dec 11, 2020 at 7:10 PM narendra thapa 
> wrote:
>
>> here is the project
>>
>> On Fri, Dec 11, 2020 at 5:02 PM Nitin Kalmaste 
>> wrote:
>>
>>> Can you share some of your code so we can figure it out? As early as
>>> possible
>>>
>>> On Fri, 11 Dec 2020, 3:18 pm narendra thapa, 
>>> wrote:
>>>
>>>> I am using JWT . I can get the access and refresh token and
>>>> while i resent the access token Authorization : JWT  it send
>>>> 403 forbidden. I am using DJOSER and simple JWT for authentication and
>>>> authorization.
>>>>
>>>> On Fri, Dec 11, 2020 at 1:45 PM Nitin Kalmaste 
>>>> wrote:
>>>>
>>>>> Check weather sending token in a proper way ither in terms of
>>>>> authorization or as a bearer token.  It depends on what backend you are
>>>>> using.
>>>>>
>>>>> On Fri, 11 Dec 2020, 12:19 pm narendra...@gmail.com, <
>>>>> narendrathapa...@gmail.com> wrote:
>>>>>
>>>>>> Do we need to do WSGIAUTHORIZATION ON in order to authorize a jwt
>>>>>> token.
>>>>>> I am getting "detail": "Authentication credentials were not
>>>>>> provided." while sending a authorizationtoken and 403 forbidden. can
>>>>>> somebodyhelp me out.
>>>>>>
>>>>>> --
>>>>>> 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/fd2b35cd-2866-4f6b-a28a-46e25b0f19afn%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/django-users/fd2b35cd-2866-4f6b-a28a-46e25b0f19afn%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>>> 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/CAKroR%2B0%2BuHQbOEr7AsXuu5aNWTDL-shPSE8Cah0cfVVoGQ_eiA%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAKroR%2B0%2BuHQbOEr7AsXuu5aNWTDL-shPSE8Cah0cfVVoGQ_eiA%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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/CAEtntjXu3viY3sRDuFO__fGXdo8rt0D7YyY0VPVF03mcOYMnPA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAEtntjXu3viY3sRDuFO__fGXdo8rt0D7YyY0VPVF03mcOYMnPA%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAKroR%2B2B8MDxg9yJYb2AV_TZ34cgGYcd2rRYd_E1cs9sH7Vw2g%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAKroR%2B2B8MDxg9yJYb2AV_TZ34cgGYcd2rRYd_E1cs9sH7Vw2g%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAEtntjUPLWkqoEb06DOii0xzufFdVJg%2BJ_MiYZZQqtmoz%3DcsOA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAEtntjUPLWkqoEb06DOii0xzufFdVJg%2BJ_MiYZZQqtmoz%3DcsOA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/CAKroR%2B3PZtnAGq%3DfRiHXmYQ6FHoGFcXuJfCsyhHtPyUE%2BtcGxQ%40mail.gmail.com.


Re: WSGIAUTHORIZATION

2020-12-11 Thread Nitin Kalmaste
Have you followed the official documentation? i dont't see that you have
used any settings

On Fri, Dec 11, 2020 at 7:10 PM narendra thapa 
wrote:

> here is the project
>
> On Fri, Dec 11, 2020 at 5:02 PM Nitin Kalmaste 
> wrote:
>
>> Can you share some of your code so we can figure it out? As early as
>> possible
>>
>> On Fri, 11 Dec 2020, 3:18 pm narendra thapa, 
>> wrote:
>>
>>> I am using JWT . I can get the access and refresh token and while
>>> i resent the access token Authorization : JWT  it send 403
>>> forbidden. I am using DJOSER and simple JWT for authentication and
>>> authorization.
>>>
>>> On Fri, Dec 11, 2020 at 1:45 PM Nitin Kalmaste 
>>> wrote:
>>>
>>>> Check weather sending token in a proper way ither in terms of
>>>> authorization or as a bearer token.  It depends on what backend you are
>>>> using.
>>>>
>>>> On Fri, 11 Dec 2020, 12:19 pm narendra...@gmail.com, <
>>>> narendrathapa...@gmail.com> wrote:
>>>>
>>>>> Do we need to do WSGIAUTHORIZATION ON in order to authorize a jwt
>>>>> token.
>>>>> I am getting "detail": "Authentication credentials were not provided."
>>>>> while sending a authorizationtoken and 403 forbidden. can somebodyhelp me
>>>>> out.
>>>>>
>>>>> --
>>>>> 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/fd2b35cd-2866-4f6b-a28a-46e25b0f19afn%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/fd2b35cd-2866-4f6b-a28a-46e25b0f19afn%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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/CAKroR%2B0%2BuHQbOEr7AsXuu5aNWTDL-shPSE8Cah0cfVVoGQ_eiA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAKroR%2B0%2BuHQbOEr7AsXuu5aNWTDL-shPSE8Cah0cfVVoGQ_eiA%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAEtntjXu3viY3sRDuFO__fGXdo8rt0D7YyY0VPVF03mcOYMnPA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAEtntjXu3viY3sRDuFO__fGXdo8rt0D7YyY0VPVF03mcOYMnPA%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAKroR%2B2B8MDxg9yJYb2AV_TZ34cgGYcd2rRYd_E1cs9sH7Vw2g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKroR%2B2B8MDxg9yJYb2AV_TZ34cgGYcd2rRYd_E1cs9sH7Vw2g%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAEtntjUPLWkqoEb06DOii0xzufFdVJg%2BJ_MiYZZQqtmoz%3DcsOA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAEtntjUPLWkqoEb06DOii0xzufFdVJg%2BJ_MiYZZQqtmoz%3DcsOA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAKroR%2B3S9UY%2BOT5JFA%3DF0y4iq4csTCOu-rEh%3DoJCQHEqhXmmsw%40mail.gmail.com.


Re: WSGIAUTHORIZATION

2020-12-11 Thread Nitin Kalmaste
Can you share some of your code so we can figure it out? As early as
possible

On Fri, 11 Dec 2020, 3:18 pm narendra thapa, 
wrote:

> I am using JWT . I can get the access and refresh token and while i
> resent the access token Authorization : JWT  it send 403
> forbidden. I am using DJOSER and simple JWT for authentication and
> authorization.
>
> On Fri, Dec 11, 2020 at 1:45 PM Nitin Kalmaste 
> wrote:
>
>> Check weather sending token in a proper way ither in terms of
>> authorization or as a bearer token.  It depends on what backend you are
>> using.
>>
>> On Fri, 11 Dec 2020, 12:19 pm narendra...@gmail.com, <
>> narendrathapa...@gmail.com> wrote:
>>
>>> Do we need to do WSGIAUTHORIZATION ON in order to authorize a jwt token.
>>> I am getting "detail": "Authentication credentials were not provided."
>>> while sending a authorizationtoken and 403 forbidden. can somebodyhelp me
>>> out.
>>>
>>> --
>>> 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/fd2b35cd-2866-4f6b-a28a-46e25b0f19afn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/fd2b35cd-2866-4f6b-a28a-46e25b0f19afn%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAKroR%2B0%2BuHQbOEr7AsXuu5aNWTDL-shPSE8Cah0cfVVoGQ_eiA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKroR%2B0%2BuHQbOEr7AsXuu5aNWTDL-shPSE8Cah0cfVVoGQ_eiA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAEtntjXu3viY3sRDuFO__fGXdo8rt0D7YyY0VPVF03mcOYMnPA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAEtntjXu3viY3sRDuFO__fGXdo8rt0D7YyY0VPVF03mcOYMnPA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

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


Re: WSGIAUTHORIZATION

2020-12-10 Thread Nitin Kalmaste
Check weather sending token in a proper way ither in terms of authorization
or as a bearer token.  It depends on what backend you are using.

On Fri, 11 Dec 2020, 12:19 pm narendra...@gmail.com, <
narendrathapa...@gmail.com> wrote:

> Do we need to do WSGIAUTHORIZATION ON in order to authorize a jwt token.
> I am getting "detail": "Authentication credentials were not provided."
> while sending a authorizationtoken and 403 forbidden. can somebodyhelp me
> out.
>
> --
> 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/fd2b35cd-2866-4f6b-a28a-46e25b0f19afn%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/CAKroR%2B0%2BuHQbOEr7AsXuu5aNWTDL-shPSE8Cah0cfVVoGQ_eiA%40mail.gmail.com.


Re: collaborate to do a project for beginners

2020-08-12 Thread Nitin Kalmaste
Everyone just get connected over here :
https://join.slack.com/t/django-champs/shared_invite/zt-gjq7rsr6-grW5J55_Cw~r7mgFF6XiMQ
This will be easy for us to work with.




On Wed, Aug 12, 2020 at 8:50 PM nyo...@gmail.com  wrote:

>
> https://join.slack.com/t/django-champs/shared_invite/zt-gjq7rsr6-grW5J55_Cw~r7mgFF6XiMQ
> follow that link to join the slack workspace to get started.
>
> On Wednesday, August 12, 2020 at 6:17:45 PM UTC+3 nyo...@gmail.com wrote:
>
>> Send in your emails instead to be added to a slack workspace.
>> Which is better for collaborations.
>> On Wednesday, August 12, 2020 at 4:35:18 PM UTC+3 m0dknight wrote:
>>
>>> Hi All,
>>>
>>> I’m interested too.
>>>
>>>
>>> Regards
>>> Sunil H N
>>> sunil@gmail.com
>>> -sent from MacBook Air
>>> - +919632245997 <+91%2096322%2045997>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 12-Aug-2020, at 18:52, aksha...@gmail.com  wrote:
>>>
>>> Hello,
>>>
>>> I am interested. and have developed an initial version of Facebook using
>>> django
>>>
>>> Thanks
>>> Akshat
>>> 96190 73241
>>>
>>> On Monday, 10 August, 2020 at 5:12:33 pm UTC+5:30 narendra...@gmail.com
>>> wrote:
>>>
 hello everyone,I'm a beginner in django. I want to learn django by
 implementing . If their is someone who wants to collaborate to do a project
 and learn django please let me know.







 Regards,
 Narendra Thapa
 Cheers ;)

>>>
>>> --
>>> 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/7bbb4221-60a0-4eec-bb72-ce8806634160n%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/192a74c0-677d-4692-98d5-1e4f15157fe9n%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/CAKroR%2B01LWa_OR_kou2O7AO3e3R0Q7EQm5gOLA8d2TQxB86Vow%40mail.gmail.com.


Re: collaborate to do a project for beginners

2020-08-12 Thread Nitin Kalmaste
Let's start building something... Anyone having any project ideas???


On Wed, Aug 12, 2020 at 6:19 PM Ashutosh Mishra 
wrote:

> hlhie i am intrested in doing project
> add me
> Ashutosh
> 9717336958
>
> On Mon, 10 Aug, 2020, 5:12 PM narendra thapa, 
> wrote:
>
>> hello everyone,I'm a beginner in django. I want to learn django by
>> implementing . If their is someone who wants to collaborate to do a project
>> and learn django please let me know.
>>
>>
>>
>>
>>
>>
>>
>> Regards,
>> Narendra Thapa
>> Cheers ;)
>>
>> --
>> 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/CAEtntjVh%2B9MxWr-GzQ-wAm3O6vREeebMdcSc7skAGXWmRuz%3D_g%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/CAGDmY66WLrMEOVaQSdbX5yF%2Bxdg3vm9c9%2B-zEznCCDBQvZu96w%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/CAKroR%2B09yb%2B%2BtNL4yV92GrNFKVGCC0LeSWQ_7wyeggGPQCKm4Q%40mail.gmail.com.


Re: Django Group Project

2020-08-11 Thread Nitin Kalmaste
+918149186047

On Tue, Aug 11, 2020 at 5:37 PM Anu Pande  wrote:

> Hi Nitin,
>
> Please share your number, we'll add you to the group.
>
> On Tue, Aug 11, 2020 at 9:51 AM Nitin Kalmaste 
> wrote:
>
>> Hey Guys,
>> Just add me also, looking forward to working with you: My Email:
>> nknckalma...@gmail.com
>>
>>
>> On Mon, Aug 10, 2020 at 10:29 PM Anu Pande  wrote:
>>
>>> Hi Rahul,
>>>
>>> Yes, I am interested to start a social networking project from scratch.
>>> Let's connect & discuss.
>>>
>>> Thanks -
>>> Anu
>>>
>>> On Mon, Aug 10, 2020 at 6:21 PM D.rahulsiddharth <
>>> rahulsiddharthda...@gmail.com> wrote:
>>>
>>>> Hello !! my name is Rahul siddharth I am interested in doing projects .
>>>> specifically some social networking projects
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
>>>> Windows 10
>>>>
>>>>
>>>>
>>>> *From: *Anu Pande 
>>>> *Sent: *10 August 2020 16:50
>>>> *To: *Django users 
>>>> *Subject: *Django Group Project
>>>>
>>>>
>>>>
>>>> Hello Everyone !
>>>>
>>>>
>>>>
>>>> I am new to Django & looking forward to working in group with
>>>> like-minded people.
>>>>
>>>> So, if there is anyone willing to work together on Django projects, may
>>>> contact me through mail. Also, if there is anyone who mentors newbies, then
>>>> would really appreciate the help.
>>>>
>>>>
>>>>
>>>> Thanks -
>>>>
>>>> Anu Pande
>>>>
>>>> --
>>>> 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/2ec6336b-0548-4430-9ae0-3187f35177f0o%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/2ec6336b-0548-4430-9ae0-3187f35177f0o%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>>
>>>>
>>>> --
>>>> 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/5f313cf2.1c69fb81.9e0f0.38e1%40mx.google.com
>>>> <https://groups.google.com/d/msgid/django-users/5f313cf2.1c69fb81.9e0f0.38e1%40mx.google.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAFWCH_oCNozAEtU1GziSQyMEcuBrTWgTxRe6gSPdbwfEQtRdjA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAFWCH_oCNozAEtU1GziSQyMEcuBrTWgTxRe6gSPdbwfEQtRdjA%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAKroR%2B1ZjXJzOUdWkf6hUj7aopV3NP5uQNay0mE2bdUvsKoN4Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKroR%2B1ZjXJzOUdWkf6hUj7aopV3NP5uQNay0mE2bdUvsKoN4Q%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAFWCH_rkVqCAO-ntrV3VvMsBqUtChz0PUyi0E20XhXpJCbwoeQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFWCH_rkVqCAO-ntrV3VvMsBqUtChz0PUyi0E20XhXpJCbwoeQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAKroR%2B0-Mjj6L2U%3D3hnXKHym_86y%2BjvugexrauF5kw%2BEB3_t1g%40mail.gmail.com.


Re: Django Group Project

2020-08-10 Thread Nitin Kalmaste
Hey Guys,
Just add me also, looking forward to working with you: My Email:
nknckalma...@gmail.com


On Mon, Aug 10, 2020 at 10:29 PM Anu Pande  wrote:

> Hi Rahul,
>
> Yes, I am interested to start a social networking project from scratch.
> Let's connect & discuss.
>
> Thanks -
> Anu
>
> On Mon, Aug 10, 2020 at 6:21 PM D.rahulsiddharth <
> rahulsiddharthda...@gmail.com> wrote:
>
>> Hello !! my name is Rahul siddharth I am interested in doing projects .
>> specifically some social networking projects
>>
>>
>>
>>
>>
>> Sent from Mail  for
>> Windows 10
>>
>>
>>
>> *From: *Anu Pande 
>> *Sent: *10 August 2020 16:50
>> *To: *Django users 
>> *Subject: *Django Group Project
>>
>>
>>
>> Hello Everyone !
>>
>>
>>
>> I am new to Django & looking forward to working in group with like-minded
>> people.
>>
>> So, if there is anyone willing to work together on Django projects, may
>> contact me through mail. Also, if there is anyone who mentors newbies, then
>> would really appreciate the help.
>>
>>
>>
>> Thanks -
>>
>> Anu Pande
>>
>> --
>> 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/2ec6336b-0548-4430-9ae0-3187f35177f0o%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/5f313cf2.1c69fb81.9e0f0.38e1%40mx.google.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/CAFWCH_oCNozAEtU1GziSQyMEcuBrTWgTxRe6gSPdbwfEQtRdjA%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/CAKroR%2B1ZjXJzOUdWkf6hUj7aopV3NP5uQNay0mE2bdUvsKoN4Q%40mail.gmail.com.


Re: Role based access

2020-01-19 Thread Nitin Kalmaste
You can assign django groups from user model as department and give special
permission to that group

On Sun 19 Jan, 2020, 3:04 PM Doddahulugappa.B, 
wrote:

> Hi team,
>
> How to make role based access in django. For ex.
>
> If employee names and their department in one table.
>
>  And also we assign department to user. With manytomany field.. So how can
> i display only the records of employees and their department which is
> assigned to the user.
>
> Kindly help..
>
> --
> 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/CAKfjjGpT_xeQaRqySC4SX_v2-aVOb7u5%2B9qoPhByQ8Wq2DM4ow%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/CAKroR%2B2Fzzfm3ppRQTTvTw913%3DcAGLUcS%2BTyL_JXVXTz7gO_9w%40mail.gmail.com.


Re: Decisions on selcting ChoiceField

2019-12-24 Thread Nitin Kalmaste
You can do request.get[field name]
And make your conditions in views

On Tue 24 Dec, 2019, 6:50 PM shree hari,  wrote:

> # views.py
> def price_choices(request):
> if request.method == "GET":
> context = {}
> context['form'] = pricechoice()
> return render( request, "template_form.html", context)
>
> # forms.py
> price_CHOICES =(
> ("1", "25"),
> ("2", "50"),
> ("3", "100"),
> ("4", "200"),
> )
>
> class pricechoice(forms.Form):
> pricechoice = forms.ChoiceField(choices = price_CHOICES,
> widget=forms.RadioSelect())
>
> # template
> 
> {{ form }}
> 
>
>
> If choice 25 is selected, i want it make a calculation.
> How can i do 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/0bf89c8f-e6e9-4a45-a5fc-c8fcbbd3c125%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/CAKroR%2B1deSQEqS%2BQjZY5ykoK-cLnUd4s%3DY3SCeUyVBPSPTvZaw%40mail.gmail.com.


Need to Query complex django model

2019-12-10 Thread Nitin Kalmaste
Hello community,
I need to make django views for the models described below.
How do i create query to write in view

https://stackoverflow.com/questions/59280345/how-to-query-django-models-for-complex-models-like-this

Please Need Help seriously

-- 
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/CAKroR%2B04RMHrRnF%2Bo_Wwm1GXb2YA_p1iSfOY_zAVNC07MYwRbg%40mail.gmail.com.


Re: Internship

2019-11-23 Thread Nitin Kalmaste
Yes very well check on GitHub/kalmastenitin

On Sat 23 Nov, 2019, 2:10 PM John McClain,  wrote:

> do you know django
>
> On Fri, 22 Nov 2019 at 20:29, Elijah O. Raji  wrote:
>
>> Sir, I'm also interested in the internship as a backend developer.
>> I base in Nigeria.
>> I can work remotely.
>>
>> --
>> 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/12bc9d00-1bd6-4c8c-9e70-2f936e4fbf55%40googlegroups.com
>> .
>>
>
>
> --
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmcclain0...@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/CAN-hv_qt7w7VDcZUHA%3D0oj0BVkcvuJcmuLosPh%3DjwpyFoNaQpg%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/CAKroR%2B0Xs1ikfDi3N3DmvRk6JQtD_-hq04yi3JaztcnmE60Njw%40mail.gmail.com.


Re: Internship

2019-11-23 Thread Nitin Kalmaste
There are my recent 3 projects one is online. Gappagosthientertainment.com

On Sat 23 Nov, 2019, 2:10 PM John McClain,  wrote:

> do you know django
>
> On Fri, 22 Nov 2019 at 20:29, Elijah O. Raji  wrote:
>
>> Sir, I'm also interested in the internship as a backend developer.
>> I base in Nigeria.
>> I can work remotely.
>>
>> --
>> 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/12bc9d00-1bd6-4c8c-9e70-2f936e4fbf55%40googlegroups.com
>> .
>>
>
>
> --
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmcclain0...@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/CAN-hv_qt7w7VDcZUHA%3D0oj0BVkcvuJcmuLosPh%3DjwpyFoNaQpg%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/CAKroR%2B0DUVbknmZt1u_gZJTekDi5vh6WnpcVu3MFue8EjQZ5wA%40mail.gmail.com.


Re: Internship

2019-11-22 Thread Nitin Kalmaste
It looks like your server is unable to create file to inside your var/log/
folder.

What server are you using?
Is it apache?
Solution:
1. check that lockon_debug.log is file created in /var/log/ folder
2. If file exists then check for file permission.
3. Check permission for log folder if and change its permissions
Apache uses daemon as user.
sudo chown -R your_user:daemon /path/to/the/log/folder and sudo chmod -R
g+w /path/to/the/log/folder
I hope this helps.
And let me know that I got this internship or not.


On Sat 23 Nov, 2019, 3:51 AM Josiah Umezurike, <
pcintegral.pcintegr...@gmail.com> wrote:

>  File "/usr/lib64/python3.6/logging/config.py", line 565, in configure
> handler = self.configure_handler(handlers[name])
>   File "/usr/lib64/python3.6/logging/config.py", line 738, in
> configure_handler
> result = factory(**kwargs)
>   File "/usr/lib64/python3.6/logging/__init__.py", line 1032, in __init__
> StreamHandler.__init__(self, self._open())
>   File "/usr/lib64/python3.6/logging/__init__.py", line 1061, in _open
> return open(self.baseFilename, self.mode, encoding=self.encoding)
> PermissionError: [Errno 13] Permission denied: '/var/log/lokdon_debug.log'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "manage.py", line 22, in 
> execute_from_command_line(sys.argv)
>   File
> "/home/centos/APIS/apis_env/lib64/python3.6/site-packages/django/core/management/__init__.py",
> line 364, in execute_from_command_line
> utility.execute()
>   File
> "/home/centos/APIS/apis_env/lib64/python3.6/site-packages/django/core/management/__init__.py",
> line 338, in execute
> django.setup()
>   File
> "/home/centos/APIS/apis_env/lib64/python3.6/site-packages/django/__init__.py",
> line 22, in setup
> configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
>   File
> "/home/centos/APIS/apis_env/lib64/python3.6/site-packages/django/utils/log.py",
> line 75, in configure_logging
> logging_config_func(logging_settings)
>   File "/usr/lib64/python3.6/logging/config.py", line 802, in dictConfig
> dictConfigClass(config).configure()
>   File "/usr/lib64/python3.6/logging/config.py", line 573, in configure
> '%r: %s' % (name, e))
> ValueError: Unable to configure handler 'file': [Errno 13] Permission
> denied: '/var/log/lokdon_debug.log'
>
>
> 
>
> I  got the above when I ran my command:
>
> python manage.py check
>
> If you can solve this the internship is your.
>
> Initially and currently I have internal error on the web response to GET.
>
> See below in attachment.
>
> [image: image.png]
>
> On Fri, Nov 22, 2019 at 5:02 PM mohamed khaled <
> mohamed.khaled33...@gmail.com> wrote:
>
>> I also I would like for an internship any help guys or opensource
>> projects ?
>>
>> On Friday, 22 November 2019 13:33:26 UTC+2, Scyil sharma wrote:
>>>
>>> I am sahil sharma, a student of btech 3rd year and I'm seeking for an
>>> internship in Winter vacation. I would like to be work as a backend
>>> developer.
>>
>> --
>> 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/27da745d-16eb-4ffa-9bbe-7636ee0560b8%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%2BGDpiQiqqEP2a0%3DHRjzxxUU%3DbPOUMnGfHXA5RzU4sX2ASYKLQ%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/CAKroR%2B08h8LCueZF2ryrX6XX80-074aoy3h4THL4yCbHVTU5og%40mail.gmail.com.


Re:

2019-11-13 Thread Nitin Kalmaste
if your migrations are successful run queries through manage.py shell
There is existing User model inside django.contrb.auth.User

On Wed, Nov 13, 2019 at 3:49 PM Paras Jain  wrote:

> i have just created a model which will have login information in database
> but it is not showing its appearance i have also done migration
>
> models.py:
>
> from django.db import models
>
> # Create your models here.
> class User(models.Model):
> email = models.EmailField()
> password = models.CharField(max_length=50)
>
> def __str__(self):
> return '{}'.format(self.email)
>
> --
> 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/CAMtmBS_GUL4vj5QPRd%2BqFLDkbnjRr_m%3DRbbt4QgG3sW-QbDVyQ%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/CAKroR%2B139BnAHBORc33TCXDetsp5TvMgq6_Da4w7xCksZBmJRg%40mail.gmail.com.


Re: New project Django.....any one willing to assist in doing a project...

2019-07-10 Thread Nitin Kalmaste
Can you will teach me I am also starting django

On Wed 10 Jul, 2019, 4:56 PM Joel Rotich,  wrote:

> Share your emailNeed someone really quickI have some basics but I
> need to work with an expert to speed up. I will pay for Hrs used.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d0a6e833-0933-4014-bbfd-8651f593c513%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKroR%2B1o1bD5%2BsJbRUDfXsPpvdPEmLMSU2v9sQ%2BFySk6MM0ONA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: looking for team members as my technical Advisory

2019-02-22 Thread Nitin Kalmaste
It's interesting, I am ready

On Fri, Feb 22, 2019, 3:32 PM Nura Bash  wrote:

> Good day, all am Nura bashir CEO of Teamlead enterprise Nigeria, am
> looking for Technical advisory members for my project which am about to
> start here in West Africa, is a plot project from 10 selected schools to
> help train  kids django..
>
> If any one is interested I can be reach out via whatpp +23434832618 or my
> email nurabas...@gmail.com
> Thank you
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4298c126-9392-4691-a40b-51420ebbaea1%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKroR%2B0ogn2x37t0xBFVi07gukm47U65_UGRuW5OqhWKk3P-Aw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django template

2019-02-08 Thread Nitin Kalmaste
You are correct,
You are using HTML and JavaScript as template in django. You need to store
static files like css/images/JavaScript in static folder and configure
static folder in the settings file

On Sat, Feb 9, 2019, 1:00 AM Mikko Meronen  Hi,
>
> Have to say that Im still beginner in Django and coding, but I think you
> just create you html files to your templates folder, and in the end you are
> basically using just html. Django can just find your html file from
> templates folder.
>
> Im just learning javascript and I assume i can save my js-file to
> templates folder as well and connect it to my html.
>
> -Mikko
>
> pe 8.2.2019 klo 21.07 Tom Zhang  kirjoitti:
>
>> Hi, all,
>>
>> If I don't want to use Django template engine and I just want to use
>> regular html/javacript, how do I configure settings.py?
>> I am thinking about the portability issue. For example, if I want to move
>> away from django in the future, I hope my templates can still be used in
>> other frameworks, at least, with minimum changes.
>> My settings are:
>>
>> TEMPLATES = [
>> {
>> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
>> 'DIRS': [os.path.join(BASE_DIR, 'templates')],
>> 'APP_DIRS': True,
>> 'OPTIONS': {
>> 'context_processors': [
>> 'django.template.context_processors.debug',
>> 'django.template.context_processors.request',
>> 'django.contrib.auth.context_processors.auth',
>> 'django.contrib.messages.context_processors.messages',
>> ],
>> },
>> },
>> ]
>>
>> Thanks,
>>
>> Tom
>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/237d37a9-a913-430c-8861-eeedb8f6bece%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGD0jjJju_32dqxzuz56z1EUqPnGirQFMFgn0RPOP_qWEGznPA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKroR%2B3GKOr2zkC%2B6OUjLwcyDMaSr38px0x8nYUgZGh5wRuU_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: columns were not added/created to my database table (postgresql) after makemigrations/migrate

2019-02-05 Thread Nitin Kalmaste
You need to add python's magic method in order to return something from the
models you have created. Also you have to register your models to admin.py
file. You can refer Django documents for that.

On Wed, Feb 6, 2019, 8:03 AM Atsunori Kaneshige  Hi, Django masters!
>
> My app has simple models.py
> just two fields like below.
>
> #models.py
> class List(models.Model):
> item = models.CharField(max_length=200)
> completed = models.BooleanField(default=False)
>
> #migration 0001
> class Migration(migrations.Migration):
>
> initial = True
>
> dependencies = [
> ]
>
> operations = [
> migrations.CreateModel(
> name='List',
> fields=[
> ('id', models.AutoField(auto_created=True,
> primary_key=True, serialize=False, verbose_name='ID')),
> ('item', models.CharField(max_length=200)),
> ('completed', models.BooleanField(default=False)),
> ],
> ),
> ]
>
> and after makemigrations/migrate, the app was working no problem.
> *Then, I wanted to try adding two more fields.*
>
> #new models.py
> class List(models.Model):
> item = models.CharField(max_length=200)
> completed = models.BooleanField(default=False)
> *created_at = models.DateTimeField('date', auto_now_add=True, null =
> True)  *
> * updated_at = models.DateTimeField('update', auto_now=True, null =
> True)  *
>
> #migrations 0002
> class Migration(migrations.Migration):
>
> dependencies = [
> ('pages', '0001_initial'),
> ]
>
> operations = [
> migrations.AddField(
> model_name='list',
> name='created_at',
> field=models.DateTimeField(auto_now_add=True, null=True,
> verbose_name='date'),
> ),
> migrations.AddField(
> model_name='list',
> name='updated_at',
> field=models.DateTimeField(auto_now=True, null=True,
> verbose_name='update'),
> ),
> ]
>
>
> Django doc says that I need to add '*null = True*' because I am using
> postgresql as my database.
> Without '*null = True*', the program throws an error saying that column
> pages_list.created_at doesn't exist etc. when I try to see the web page.
> But, with '*null = True*', I successfully did makemigration and migrate,
> then web page showed up without any problem.
>
> *But, when I go to admin, I could not find any fields that I though I
> created.*
> I also looked at the table in my postgresql, but again, there are only
> original columns, but not other two columns.
>
> Do you know how to add new columns by changing models.py??
> What should I take care to successfully modify models and add new columns
> in my database table (postgresql in my case).
>
> I really appreciate your advice!
>
> Looking forward to hearing from you.
>
> Nori
>
>
>
>
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a1d71d4c-1500-4972-af57-dc23f5d1ff20%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

On Wed, Feb 6, 2019, 8:03 AM Atsunori Kaneshige  Hi, Django masters!
>
> My app has simple models.py
> just two fields like below.
>
> #models.py
> class List(models.Model):
> item = models.CharField(max_length=200)
> completed = models.BooleanField(default=False)
>
> #migration 0001
> class Migration(migrations.Migration):
>
> initial = True
>
> dependencies = [
> ]
>
> operations = [
> migrations.CreateModel(
> name='List',
> fields=[
> ('id', models.AutoField(auto_created=True,
> primary_key=True, serialize=False, verbose_name='ID')),
> ('item', models.CharField(max_length=200)),
> ('completed', models.BooleanField(default=False)),
> ],
> ),
> ]
>
> and after makemigrations/migrate, the app was working no problem.
> *Then, I wanted to try adding two more fields.*
>
> #new models.py
> class List(models.Model):
> item = models.CharField(max_length=200)
> completed = models.BooleanField(default=False)
> *created_at = models.DateTimeField('date', auto_now_add=True, null =
> True)  *
> * updated_at = models.DateTimeField('update', auto_now=True, null =
> True)  *
>
> #migrations 0002
> class Migration(migrations.Migration):
>
> dependencies = [
> ('pages', '0001_initial'),
> ]
>
> operations = [
> migrations.AddField(
> model_name='list',
> 

Re: How can download the offline version of Django Rest Framework

2019-02-05 Thread Nitin Kalmaste
You can install djangorestframework package using pip.
Just read the documents from djangorestframework.com

On Wed, Feb 6, 2019, 12:11 AM  I am not always online but I like to work with the Django Rest Framework.
> How  can I get it offline.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0add5172-0d3e-4f8d-b01a-67b03e17fdae%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKroR%2B0GQrr5unEi5Tm3h_VNVZ7XwdTY3U76kLp7nePSgXoc6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django opening balance calculation

2019-02-05 Thread Nitin Kalmaste
May I know whether you have started instance of the functions opening and
closing or not. You have to call these functions from somewhere to run the
loops

On Tue, Feb 5, 2019, 9:07 PM   Hi everyone.
>
> I have my models that looks like these:
>
> class Item(models.Model):
> name = models.CharField(max_length=30)
> buying_price = models.PositiveIntegerField()
> selling_price = models.PositiveIntegerField()
> quantity = models.PositiveIntegerField()
>
> def __str__(self):
> return self.name
>
> class SalesSheet(models.Model):
> txn_date = models.DateField()
> item = models.ForeignKey(Item, on_delete=models.CASCADE)
> purchases = models.PositiveIntegerField()
> sales = models.PositiveIntegerField()
>
>
>
>
>
>
> What I want after posting purchases and sales is an output like this
>
>
> id  dateitem  opening  purchases sales closing
>  1  1-1-19  abc   10   205 25
>  2  2-12-19 def   25   201035
>  3  3-1-19  abc   25   102510
>  4  4-1-19  def   35   103015
>  5  7-1-19  abc   10   0 0 10
>  6  9-1-19  def   15   0 5 10
>
>
>
> Note that opening and closing fields are not in the model. They need to be
> calculated on the fly or rather dynamically. Also Note that there will be
> back dated entries and the items are different(not just one item)
>
> My big problem is how to write a view function to calculate opening and
> closing balances.
> I tried putting these functions inside my models, but the loop is not
> working
>
> class SalesSheet(models.Model):
> txn_date = models.DateField()
> item = models.ForeignKey(Item, on_delete=models.CASCADE)
> purchases = models.PositiveIntegerField()
> sales = models.PositiveIntegerField()
>
> def opening_balance(self):
> quantity = self.item.quantity
> items = SalesSheet.objects.all()
> for item in items:
> opening = quantity
> closing = opening + self.purchases - self.sales
> quantity = closing
> return opening
>
> def closing_balance(self):
> quantity = self.item.quantity
> items = SalesSheet.objects.all()
> for item in items:
> opening = quantity
> closing = opening + self.purchases - self.sales
> quantity = closing
> return closing
>
>
> My idea here was to loop through the Transaction Model and update the
> opening balance as the loop continues, but unfortunately the loop isn't
> working.
>
> Please if anyone could help write a view function just to display and
> calculate the balances.
>
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/858bb8f6-6651-494f-9386-a25e79dad4b0%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKroR%2B1T5YRgoeWaX7hji93xNKDvOh9hPyMZ-%3DTrA%2BmeTEJHGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-03 Thread Nitin Kalmaste
You have to add Choices for each questions you have created in database
like the process is same as you used for the questions.
On Sun, Feb 3, 2019, 8:53 PM Atsunori Kaneshige  Hi Nitin,
>
> Thank you for your comment.
>
> I did
>
> jango-admin startproject mysite
>
> and cd mysite, then
>
> python manage.py runserver
>
> and server is working, so I did
>
> opython manage.py startapp polls
>
> polls app was successfully created, and stopped the server because I
> wanted to user postgresql instead of the default SQLite3(?).
> I did below
>
> pg_ctl -D /user/local/var/posgres start
>
> postgres successfully started running, then stopped
>
> *By the way, I registered polls app in settings.py (I just copied and
> pasted part of codes from the file below)*
> INSTALLED_APPS = [
> 'polls.apps.PollsConfig',
>
> *Also, I followed the way to add postgres as database, I looked as Django
> docs*
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.postgresql',
> 'NAME': 'Koitaro',
> 'USER': '',
> 'PASSWORD': '',
> 'HOST': '',
> 'PORT': '',
> }
> }
>
> *I did migration too, like migrate, makemigration etc, just copied and
> pasted from Django Docs*
> *This is my models.py*
>
> import datetime
> from django.db import models
> from django.utils import timezone
>
> # Create your models here.
>
>
> class Question(models.Model):
> question_text = models.CharField(max_length=200)
> pub_date = models.DateTimeField('date published')
>
> def __str__(self):
> return self.question_text
>
> def was_published_recently(self):
> return self.pub_date >= timezone.now() - datetime.timedelta(days=1)
>
>
> class Choice(models.Model):
> question = models.ForeignKey(Question, on_delete=models.CASCADE)
> choice_text = models.CharField(max_length=200)
> votes = models.IntegerField(default=0)
>
> def __str__(self):
> return self.choice_text
>
> *mygration was successfully generated*
> from django.db import migrations, models
> import django.db.models.deletion
>
>
> class Migration(migrations.Migration):
>
> initial = True
>
> dependencies = [
> ]
>
> operations = [
> migrations.CreateModel(
> name='Choice',
> fields=[
> ('id', models.AutoField(auto_created=True,
> primary_key=True, serialize=False, verbose_name='ID')),
> ('choice_text', models.CharField(max_length=200)),
> ('votes', models.IntegerField(default=0)),
> ],
> ),
> migrations.CreateModel(
> name='Question',
> fields=[
> ('id', models.AutoField(auto_created=True,
> primary_key=True, serialize=False, verbose_name='ID')),
> ('question_text', models.CharField(max_length=200)),
> ('pub_date', models.DateTimeField(verbose_name='date
> published')),
> ],
> ),
> migrations.AddField(
> model_name='choice',
> name='question',
>
> field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
> to='polls.Question'),
> ),
> ]
>
> *When I go to admin, I added 5 or 6 questions, and successfully added in
> database.*
> *the database name I made is 'Koitaro'.*
> *I registered in settings.py and I have this database named as Koitaro in
> my posgresql*
>
>
> question has data, but choice thing doesn't seem having any data...
>
> I really appreciate your thoughts.
>
> Nori
>
>
>
>
>
>
>
>
>
>
> On Sunday, February 3, 2019 at 1:56:18 AM UTC-5, Nitin Kalmaste wrote:
>>
>> Have you migrated database and added any question there?
>>
>> On Sun, Feb 3, 2019, 8:39 AM Atsunori Kaneshige >
>>> Oh, one note is that I am using postgresql.
>>> everything else except vote function in views.py seems working.
>>>
>>> Sorry, any help would be really appreciated!
>>>
>>> Nori
>>>
>>> On Saturday, February 2, 2019 at 10:02:14 PM UTC-5, Atsunori Kaneshige
>>> wrote:
>>>>
>>>> Hi Django users,
>>>>
>>>> I started using Django recently.
>>>> I am following the official Django tutorial.
>>>> I am just at Writing Your First Django App, Part4, and I have been just
>>>> copying and pasting all codes.
>>>>
>>>> But I have a problem in vote.
>>>> I inserted print(question) and this is pr

Re: PLEASE HELP! Django documentation, Writing Your First App, Part 4

2019-02-02 Thread Nitin Kalmaste
Have you migrated database and added any question there?

On Sun, Feb 3, 2019, 8:39 AM Atsunori Kaneshige  Oh, one note is that I am using postgresql.
> everything else except vote function in views.py seems working.
>
> Sorry, any help would be really appreciated!
>
> Nori
>
> On Saturday, February 2, 2019 at 10:02:14 PM UTC-5, Atsunori Kaneshige
> wrote:
>>
>> Hi Django users,
>>
>> I started using Django recently.
>> I am following the official Django tutorial.
>> I am just at Writing Your First Django App, Part4, and I have been just
>> copying and pasting all codes.
>>
>> But I have a problem in vote.
>> I inserted print(question) and this is printed in detail.html
>> also, question.id is also printed.
>>
>> BUT, choice part doesn't seem working.
>>
>> **
>> def vote(request, question_id):
>> question = get_object_or_404(Question, pk=question_id)
>> print(question)
>> try:
>> selected_choice =
>> question.choice_set.get(pk=request.POST['choice'])
>> except (KeyError, Choice.DoesNotExist) as e:
>> # Redisplay the question voting form.
>> print(e)
>> return render(request, 'polls/detail.html', {
>> 'question': question,
>> 'error_message': "You didn't select a choice.",
>> })
>> else:
>> selected_choice.votes += 1
>> selected_choice.save()
>> # Always return an HttpResponseRedirect after successfully dealing
>> # with POST data. This prevents data from being posted twice if a
>> # user hits the Back button.
>> return HttpResponseRedirect(reverse('polls:results', args=(
>> question.id,)))
>>
>> **
>> {{ question.question_text }}
>>
>> {% if error_message %}{{ error_message }}{% endif
>> %}
>>
>> 
>> {% csrf_token %}
>> {% for choice in question.choice_set.all %}
>> > value="{{ choice.id }}">
>> {{ choice.choice_text
>> }}
>> {% endfor %}
>> 
>> 
>>
>> 
>> {{ question }}
>> #printed
>>  
>> {{ question.id }}
>> #printed
>> 
>> *{{ question.choice_set.all }}*
>> *# #what is this? empty? why?*
>> 
>> {{ question.question_text }}
>> #printed
>> 
>> {{ question.question_text }}
>> #printed
>> 
>> *{% for choice in question.choice_set.all %}*
>> *{{ choice.choice_text }}*
>> *{% endfor %}*
>> *#nothing printed!*
>> 
>>
>> Also when I click button 'vote', I only get error.
>> *You didn't select a choice.*
>>
>> I am just copying and pasting so that I can understand Django, but I am
>> having hard time in this Part 4.
>>
>> I really appreciate advice from anybody!
>>
>> Nori
>>
>> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a581da0f-abd9-435e-8693-db9126b9bac1%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKroR%2B2iPLXaocX7_yFxLY_A2vokpRAvNc9PVOuLNbVVu3UsqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Job Request

2019-01-25 Thread Nitin Kalmaste
Yes you can start it on GitHub we will definitely contribute

On Fri, Jan 25, 2019, 11:50 PM Roshan Shah  I do have a project that I want to get built on. Can I get some help from
> people who are starting in Django to work on it?
>
> Roshan
> Founder Cogdina Inc
> http://www.cogdina.com
>
> On Fri, Jan 25, 2019 at 11:47 AM Okware Aldo 
> wrote:
>
>> I am looking for projects I can contribute on. so if you have a project I
>> can contribute on. I am happy to help 2 hours of code in a week for free.
>>
>> On Fri, Jan 25, 2019 at 3:51 PM Nitin Kalmaste 
>> wrote:
>>
>>> Where can I find Live Projects to work on So that I can Improve My
>>> python Skills
>>>
>>> On Thursday, January 24, 2019 at 9:05:39 PM UTC+5:30, Motaz Hejaze wrote:
>>>>
>>>> Hi all ,
>>>>
>>>> Is there any remote job regarding Django , i am a beginner to mid-level
>>>> in Django ..
>>>>
>>>> Thanks all ..
>>>>
>>> --
>>> 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/abc65682-9f58-4898-b555-88e8752c0957%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/abc65682-9f58-4898-b555-88e8752c0957%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMEZma9T34QG-q%2B5VGqgNW6kuQNaYK7sJRyjt7WEO86LfwCZgQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMEZma9T34QG-q%2B5VGqgNW6kuQNaYK7sJRyjt7WEO86LfwCZgQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> --
>
> Roshan Shah / Sr. IT Consultant
> techieros...@gmail.com / (519) 496-8860
>
> This e-mail message may contain confidential or legally privileged
> information and is intended only for the use of the intended recipient(s).
> Any unauthorized disclosure, dissemination, distribution, copying or the
> taking of any action in reliance on the information herein is prohibited.
> E-mails are not secure and cannot be guaranteed to be error free as they
> can be intercepted, amended, or contain viruses. Anyone who communicates
> with me by e-mail is deemed to have accepted these risks.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALX19NjanqdvHy1YXDta4PGXAJbwDNcrZaAtrLuMeuMXLqtJPg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALX19NjanqdvHy1YXDta4PGXAJbwDNcrZaAtrLuMeuMXLqtJPg%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKroR%2B1V7A%3Dc--ehycHya5xdLKg%3DTJD0SyjC7VdWdXAvpc20Ug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Job Request

2019-01-25 Thread Nitin Kalmaste
Where can I find Live Projects to work on So that I can Improve My python 
Skills

On Thursday, January 24, 2019 at 9:05:39 PM UTC+5:30, Motaz Hejaze wrote:
>
> Hi all ,
>
> Is there any remote job regarding Django , i am a beginner to mid-level in 
> Django ..
>
> Thanks all ..
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/abc65682-9f58-4898-b555-88e8752c0957%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.