Django token base authentication using python

2018-11-18 Thread Akash utreja
Hi I am trying to build an authentication system. I have added following in 
my setting.py file
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
),
'DEFAULT_PAGINATION_CLASS': 
'rest_framework.pagination.LimitOffsetPagination'
}
And I also added decorators in my each api functional views as following
@permission_classes((IsAuthenticated,))
Now I am making request to api using token so some them are accessible but 
some get unauthorized.And these api which get unathorized are random mean 
not a particular api get unauthorized. 
Am I missing something?Please help me out here!
Thanks
Akash

-- 
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/e8fd147e-6090-4805-9369-127dc3329485%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for a Django Co-Founder.

2018-11-18 Thread Harish Soni
Sure why not let's setup. I will be available at your time.

Regards
Harish Soni

On Mon, Nov 19, 2018, 12:32 AM Erol DEMİRHAN  Hi Zack,
>
> I'm interested in setting up a video conference whenever you and other
> people are available. We'd better set an hour for the meeting.
> By the way can we use Slack app for the communication? If everybody okay
> with that?
>
> Sincerely
>
> Erol DEMİRHAN
>
> On Sun, 18 Nov 2018 at 06:17, Zack Amaral  wrote:
>
>> Let me know if you guys are interested in setting up a video conference.
>> I'd love to tell you more about it. I can show you the UI/UX I've been
>> working on.
>>
>> Thank you for your consideration,
>>
>> Zack Amaral
>>
>> On Sat, Nov 17, 2018 at 8:10 PM Zack Amaral 
>> wrote:
>>
>>> Erol,
>>>
>>> Here's a link to the plan:
>>> https://app.liveplan.com/accept-invitation?ic=107ef0ab-8bc5-4b9d-aeea-bf72324a0261
>>>
>>> Cheers,
>>>
>>> Zack Amaral
>>>
>>> On Sat, Nov 17, 2018 at 8:04 PM Erol DEMİRHAN 
>>> wrote:
>>>
 Hi Zack,

 My name is Erol DEMIRHAN,

 I received your email. It sounds interesting. I'm waiting for
 your reply about the details of the project.

 Sincerely

 On Sun, 18 Nov 2018 at 05:32, Lucas G. Navarro 
 wrote:

> Hi! How are you? Can you tell us more about this?
>
> Regards!
>
> El sáb., 17 nov. 2018 7:29 PM, Zack Amaral 
> escribió:
>
>> Hi,
>>
>> I have an idea for a next generation PaaS. I was wondering if there
>> are any Django developers that would be interested in being a co-founder
>> with my company. I'm an AWS Architect but sadly a really bad developer. 
>> If
>> there's anybody on this forum that would be interested please let me know
>> and we can setup a time to talk about the details of the project.
>>
>> Thanks,
>>
>> Zack
>>
>> --
>> 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/987d359b-263b-4ecf-957c-f2537f2d4ad1%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/CABomRVVygn%3DNqk1b%2BLkvA5Ktn7PmGYz3W226QQucwWhfx0OwEQ%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/CAJBVZ3xqfv_3sgkg8foJb-g5kbpmrTZXJ6hqNHVbbAvYZLJrvA%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/CANG%3DrD%3Deq8m3%2BeJOcwB%3Du%3D407FesMo9rfCTofpPgUjszExwcTg%40mail.gmail.com
>> 
>> .
>> For more 

Re: file URL missing project name

2018-11-18 Thread Jeff Williams
That part is added by urlpatterns += static(settings.MEDIA_URL,
document_root=settings.MEDIA_ROOT)so I doubt that is the issue.

This is going to sound odd.but I've had some files display and then
stop working when I don't think I changed anything.  very odd.


On Sun, Nov 18, 2018 at 6:46 PM Jason  wrote:

> (?P.*)
>
> in your url is probably the reason why.  remove that bit
>
> --
> 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/92369a7c-6d1b-4b6a-a38d-38151bb10772%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/CAMgbqCcPgGc3SPLOMmhJXfFZiJ-N%3DVzBrfZV463r2Ljtu2TvNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: file URL missing project name

2018-11-18 Thread Jason
(?P.*)

in your url is probably the reason why.  remove that bit

-- 
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/92369a7c-6d1b-4b6a-a38d-38151bb10772%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: file URL missing project name

2018-11-18 Thread Jeff Williams
MEDIA_ROOT and MEDIA_URL both seem fine.and the URL I'm getting in the
template looks fine...but URLS.PY is kicking it out.
I changed the security on the directory to full access to everyone.  Any
ideas on how to debug this?  I can't see why the path isn't matching the
pattern.


Page not found (404)
Request Method: GET
Request URL:
http://127.0.0.1:8000/oldgrub/media/56288593216__746F513A-D6F6-446D-949F-D0C09E7C4419_sU3W0z5.JPG

Using the URLconf defined in familyrecipies.urls, Django tried these URL
patterns, in this order:

   1. admin/
   2. oldgrub/ [name='index']
   3. oldgrub/ cookbooks/ [name='cookbooks']
   4. oldgrub/ cookbook/ [name='cookbook']
   5. oldgrub/ recipe/ [name='recipes']
   6. oldgrub/ recipe/ [name='recipe']
   7. oldgrub/ family/ [name='family']
   8. oldgrub/ recipe/add/ [name='addrecipe']
   9. oldgrub/ ^static/(?P.*)$
   10. oldgrub/ ^oldgrub/media/(?P.*)$
   11.
   12. accounts/

The current path,
oldgrub/media/56288593216__746F513A-D6F6-446D-949F-D0C09E7C4419_sU3W0z5.JPG,
didn't match any of these.


On Sun, Nov 18, 2018 at 5:24 PM Jason  wrote:

> Seems like there might be some confusion on what exactly `MEDIA_ROOT`
> means.
>
> you can do
>
> import logging
> logger = logging.getLogger(__name__)
> logger.info(MEDIA_ROOT)
>
> in settings after declaring MEDIA_ROOT
>
> if that path lines up with what you have in the server, then I suspect
> permission issue might be at play as well.
>
> --
> 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/070f631f-d327-47c7-b283-b3bec62b44a6%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/CAMgbqCfyA7A8rZL4Phs20X6MFumRBP7XmgaaEF3_heCj%2B4wb_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: file URL missing project name

2018-11-18 Thread Jason
Seems like there might be some confusion on what exactly `MEDIA_ROOT` means.

you can do 

import logging
logger = logging.getLogger(__name__)
logger.info(MEDIA_ROOT)

in settings after declaring MEDIA_ROOT

if that path lines up with what you have in the server, then I suspect 
permission issue might be at play as well.

-- 
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/070f631f-d327-47c7-b283-b3bec62b44a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for a Django Co-Founder.

2018-11-18 Thread Alison Mukoma
Hi,

I am a python dev and use django a lot,
I would like to be part of this.

Alison Mukoma

On Sun, Nov 18, 2018 at 9:13 PM ALLAN NJOROGE 
wrote:

> Hey Zack,
>
> I am available, my question is are you looking for just django developers
> or any one who has the same motivation to see something through despite the
> means? I’m a crapy developer but i get things done.
>
> On Sun, Nov 18, 2018 at 12:04 PM Zack Amaral 
> wrote:
>
>> What time are you available today?
>>
>> On Sun, Nov 18, 2018 at 12:03 PM Erol DEMİRHAN 
>> wrote:
>>
>>> Hi Zack,
>>>
>>> I'm interested in setting up a video conference whenever you and other
>>> people are available. We'd better set an hour for the meeting.
>>> By the way can we use Slack app for the communication? If everybody okay
>>> with that?
>>>
>>> Sincerely
>>>
>>> Erol DEMİRHAN
>>>
>>> On Sun, 18 Nov 2018 at 06:17, Zack Amaral 
>>> wrote:
>>>
 Let me know if you guys are interested in setting up a video
 conference. I'd love to tell you more about it. I can show you the UI/UX
 I've been working on.

 Thank you for your consideration,

 Zack Amaral

 On Sat, Nov 17, 2018 at 8:10 PM Zack Amaral 
 wrote:

> Erol,
>
> Here's a link to the plan:
> https://app.liveplan.com/accept-invitation?ic=107ef0ab-8bc5-4b9d-aeea-bf72324a0261
>
> Cheers,
>
> Zack Amaral
>
> On Sat, Nov 17, 2018 at 8:04 PM Erol DEMİRHAN 
> wrote:
>
>> Hi Zack,
>>
>> My name is Erol DEMIRHAN,
>>
>> I received your email. It sounds interesting. I'm waiting for
>> your reply about the details of the project.
>>
>> Sincerely
>>
>> On Sun, 18 Nov 2018 at 05:32, Lucas G. Navarro <
>> lucasgnava...@gmail.com> wrote:
>>
>>> Hi! How are you? Can you tell us more about this?
>>>
>>> Regards!
>>>
>>> El sáb., 17 nov. 2018 7:29 PM, Zack Amaral 
>>> escribió:
>>>
 Hi,

 I have an idea for a next generation PaaS. I was wondering if there
 are any Django developers that would be interested in being a 
 co-founder
 with my company. I'm an AWS Architect but sadly a really bad 
 developer. If
 there's anybody on this forum that would be interested please let me 
 know
 and we can setup a time to talk about the details of the project.

 Thanks,

 Zack

 --
 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/987d359b-263b-4ecf-957c-f2537f2d4ad1%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/CABomRVVygn%3DNqk1b%2BLkvA5Ktn7PmGYz3W226QQucwWhfx0OwEQ%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/CAJBVZ3xqfv_3sgkg8foJb-g5kbpmrTZXJ6hqNHVbbAvYZLJrvA%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
 You received this message because you are 

Re: Looking for a Django Co-Founder.

2018-11-18 Thread ALLAN NJOROGE
Hey Zack,

I am available, my question is are you looking for just django developers
or any one who has the same motivation to see something through despite the
means? I’m a crapy developer but i get things done.

On Sun, Nov 18, 2018 at 12:04 PM Zack Amaral 
wrote:

> What time are you available today?
>
> On Sun, Nov 18, 2018 at 12:03 PM Erol DEMİRHAN 
> wrote:
>
>> Hi Zack,
>>
>> I'm interested in setting up a video conference whenever you and other
>> people are available. We'd better set an hour for the meeting.
>> By the way can we use Slack app for the communication? If everybody okay
>> with that?
>>
>> Sincerely
>>
>> Erol DEMİRHAN
>>
>> On Sun, 18 Nov 2018 at 06:17, Zack Amaral 
>> wrote:
>>
>>> Let me know if you guys are interested in setting up a video conference.
>>> I'd love to tell you more about it. I can show you the UI/UX I've been
>>> working on.
>>>
>>> Thank you for your consideration,
>>>
>>> Zack Amaral
>>>
>>> On Sat, Nov 17, 2018 at 8:10 PM Zack Amaral 
>>> wrote:
>>>
 Erol,

 Here's a link to the plan:
 https://app.liveplan.com/accept-invitation?ic=107ef0ab-8bc5-4b9d-aeea-bf72324a0261

 Cheers,

 Zack Amaral

 On Sat, Nov 17, 2018 at 8:04 PM Erol DEMİRHAN 
 wrote:

> Hi Zack,
>
> My name is Erol DEMIRHAN,
>
> I received your email. It sounds interesting. I'm waiting for
> your reply about the details of the project.
>
> Sincerely
>
> On Sun, 18 Nov 2018 at 05:32, Lucas G. Navarro <
> lucasgnava...@gmail.com> wrote:
>
>> Hi! How are you? Can you tell us more about this?
>>
>> Regards!
>>
>> El sáb., 17 nov. 2018 7:29 PM, Zack Amaral 
>> escribió:
>>
>>> Hi,
>>>
>>> I have an idea for a next generation PaaS. I was wondering if there
>>> are any Django developers that would be interested in being a co-founder
>>> with my company. I'm an AWS Architect but sadly a really bad developer. 
>>> If
>>> there's anybody on this forum that would be interested please let me 
>>> know
>>> and we can setup a time to talk about the details of the project.
>>>
>>> Thanks,
>>>
>>> Zack
>>>
>>> --
>>> 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/987d359b-263b-4ecf-957c-f2537f2d4ad1%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/CABomRVVygn%3DNqk1b%2BLkvA5Ktn7PmGYz3W226QQucwWhfx0OwEQ%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/CAJBVZ3xqfv_3sgkg8foJb-g5kbpmrTZXJ6hqNHVbbAvYZLJrvA%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 

Re: Looking for a Django Co-Founder.

2018-11-18 Thread Erol DEMİRHAN
Hi Zack,

I'm available for the next 10 hours right now.

Sincerely

On Sun, 18 Nov 2018 at 22:05, Zack Amaral  wrote:

> What time are you available today?
>
> On Sun, Nov 18, 2018 at 12:03 PM Erol DEMİRHAN 
> wrote:
>
>> Hi Zack,
>>
>> I'm interested in setting up a video conference whenever you and other
>> people are available. We'd better set an hour for the meeting.
>> By the way can we use Slack app for the communication? If everybody okay
>> with that?
>>
>> Sincerely
>>
>> Erol DEMİRHAN
>>
>> On Sun, 18 Nov 2018 at 06:17, Zack Amaral 
>> wrote:
>>
>>> Let me know if you guys are interested in setting up a video conference.
>>> I'd love to tell you more about it. I can show you the UI/UX I've been
>>> working on.
>>>
>>> Thank you for your consideration,
>>>
>>> Zack Amaral
>>>
>>> On Sat, Nov 17, 2018 at 8:10 PM Zack Amaral 
>>> wrote:
>>>
 Erol,

 Here's a link to the plan:
 https://app.liveplan.com/accept-invitation?ic=107ef0ab-8bc5-4b9d-aeea-bf72324a0261

 Cheers,

 Zack Amaral

 On Sat, Nov 17, 2018 at 8:04 PM Erol DEMİRHAN 
 wrote:

> Hi Zack,
>
> My name is Erol DEMIRHAN,
>
> I received your email. It sounds interesting. I'm waiting for
> your reply about the details of the project.
>
> Sincerely
>
> On Sun, 18 Nov 2018 at 05:32, Lucas G. Navarro <
> lucasgnava...@gmail.com> wrote:
>
>> Hi! How are you? Can you tell us more about this?
>>
>> Regards!
>>
>> El sáb., 17 nov. 2018 7:29 PM, Zack Amaral 
>> escribió:
>>
>>> Hi,
>>>
>>> I have an idea for a next generation PaaS. I was wondering if there
>>> are any Django developers that would be interested in being a co-founder
>>> with my company. I'm an AWS Architect but sadly a really bad developer. 
>>> If
>>> there's anybody on this forum that would be interested please let me 
>>> know
>>> and we can setup a time to talk about the details of the project.
>>>
>>> Thanks,
>>>
>>> Zack
>>>
>>> --
>>> 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/987d359b-263b-4ecf-957c-f2537f2d4ad1%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/CABomRVVygn%3DNqk1b%2BLkvA5Ktn7PmGYz3W226QQucwWhfx0OwEQ%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/CAJBVZ3xqfv_3sgkg8foJb-g5kbpmrTZXJ6hqNHVbbAvYZLJrvA%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
>>> 

Re: Looking for a Django Co-Founder.

2018-11-18 Thread Zack Amaral
What time are you available today?

On Sun, Nov 18, 2018 at 12:03 PM Erol DEMİRHAN  wrote:

> Hi Zack,
>
> I'm interested in setting up a video conference whenever you and other
> people are available. We'd better set an hour for the meeting.
> By the way can we use Slack app for the communication? If everybody okay
> with that?
>
> Sincerely
>
> Erol DEMİRHAN
>
> On Sun, 18 Nov 2018 at 06:17, Zack Amaral  wrote:
>
>> Let me know if you guys are interested in setting up a video conference.
>> I'd love to tell you more about it. I can show you the UI/UX I've been
>> working on.
>>
>> Thank you for your consideration,
>>
>> Zack Amaral
>>
>> On Sat, Nov 17, 2018 at 8:10 PM Zack Amaral 
>> wrote:
>>
>>> Erol,
>>>
>>> Here's a link to the plan:
>>> https://app.liveplan.com/accept-invitation?ic=107ef0ab-8bc5-4b9d-aeea-bf72324a0261
>>>
>>> Cheers,
>>>
>>> Zack Amaral
>>>
>>> On Sat, Nov 17, 2018 at 8:04 PM Erol DEMİRHAN 
>>> wrote:
>>>
 Hi Zack,

 My name is Erol DEMIRHAN,

 I received your email. It sounds interesting. I'm waiting for
 your reply about the details of the project.

 Sincerely

 On Sun, 18 Nov 2018 at 05:32, Lucas G. Navarro 
 wrote:

> Hi! How are you? Can you tell us more about this?
>
> Regards!
>
> El sáb., 17 nov. 2018 7:29 PM, Zack Amaral 
> escribió:
>
>> Hi,
>>
>> I have an idea for a next generation PaaS. I was wondering if there
>> are any Django developers that would be interested in being a co-founder
>> with my company. I'm an AWS Architect but sadly a really bad developer. 
>> If
>> there's anybody on this forum that would be interested please let me know
>> and we can setup a time to talk about the details of the project.
>>
>> Thanks,
>>
>> Zack
>>
>> --
>> 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/987d359b-263b-4ecf-957c-f2537f2d4ad1%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/CABomRVVygn%3DNqk1b%2BLkvA5Ktn7PmGYz3W226QQucwWhfx0OwEQ%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/CAJBVZ3xqfv_3sgkg8foJb-g5kbpmrTZXJ6hqNHVbbAvYZLJrvA%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/CANG%3DrD%3Deq8m3%2BeJOcwB%3Du%3D407FesMo9rfCTofpPgUjszExwcTg%40mail.gmail.com
>> 
>> .
>> For more options, visit 

Re: Looking for a Django Co-Founder.

2018-11-18 Thread Erol DEMİRHAN
Hi Zack,

I'm interested in setting up a video conference whenever you and other
people are available. We'd better set an hour for the meeting.
By the way can we use Slack app for the communication? If everybody okay
with that?

Sincerely

Erol DEMİRHAN

On Sun, 18 Nov 2018 at 06:17, Zack Amaral  wrote:

> Let me know if you guys are interested in setting up a video conference.
> I'd love to tell you more about it. I can show you the UI/UX I've been
> working on.
>
> Thank you for your consideration,
>
> Zack Amaral
>
> On Sat, Nov 17, 2018 at 8:10 PM Zack Amaral 
> wrote:
>
>> Erol,
>>
>> Here's a link to the plan:
>> https://app.liveplan.com/accept-invitation?ic=107ef0ab-8bc5-4b9d-aeea-bf72324a0261
>>
>> Cheers,
>>
>> Zack Amaral
>>
>> On Sat, Nov 17, 2018 at 8:04 PM Erol DEMİRHAN 
>> wrote:
>>
>>> Hi Zack,
>>>
>>> My name is Erol DEMIRHAN,
>>>
>>> I received your email. It sounds interesting. I'm waiting for your reply
>>> about the details of the project.
>>>
>>> Sincerely
>>>
>>> On Sun, 18 Nov 2018 at 05:32, Lucas G. Navarro 
>>> wrote:
>>>
 Hi! How are you? Can you tell us more about this?

 Regards!

 El sáb., 17 nov. 2018 7:29 PM, Zack Amaral 
 escribió:

> Hi,
>
> I have an idea for a next generation PaaS. I was wondering if there
> are any Django developers that would be interested in being a co-founder
> with my company. I'm an AWS Architect but sadly a really bad developer. If
> there's anybody on this forum that would be interested please let me know
> and we can setup a time to talk about the details of the project.
>
> Thanks,
>
> Zack
>
> --
> 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/987d359b-263b-4ecf-957c-f2537f2d4ad1%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/CABomRVVygn%3DNqk1b%2BLkvA5Ktn7PmGYz3W226QQucwWhfx0OwEQ%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/CAJBVZ3xqfv_3sgkg8foJb-g5kbpmrTZXJ6hqNHVbbAvYZLJrvA%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/CANG%3DrD%3Deq8m3%2BeJOcwB%3Du%3D407FesMo9rfCTofpPgUjszExwcTg%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 

Re: file URL missing project name

2018-11-18 Thread Jeff Williams
Akash,
You are good.but I already changed that to get to the error I have
now.  Still not working :-(
The file is in the right place but the URL matching is messing up somehow.


On Sun, Nov 18, 2018 at 1:00 PM Akash Purandare 
wrote:

> Hey Jeff
>
> I tried the models that you were creating and I found out the error that
> you are having is with the Model. The upload_to of the pic variable is set
> to 'media/', which uploads the file to the url
> http://localhost:8000/oldgrub/media/media/56288852088__208FCEF9-5890-
> 4633-8BF6-C5C9A82D87EE.JPG. So if you change the upload_to to '', the URL
> will be http://localhost:8000/oldgrub/media/56288852088__208FCEF9-5890-
> 4633-8BF6-C5C9A82D87EE.JPG.
>
> Hope this fixes the issue that you are facing.
>
> Regards
> Akash Purandare
>
> On Sunday, November 18, 2018 at 10:57:31 PM UTC+5:30, Jeff Williams wrote:
>
>> Nope.  Same error.  I can see the file being loaded.  Doesn't like the
>> URL still.
>>
>> On Sun, Nov 18, 2018 at 11:30 AM Akash Purandare 
>> wrote:
>>
> Hey Jeff
>>>
>>> I think that you might need to upload the file again and try.
>>>
>>> Let me know if it works out.
>>>
>>> Regards
>>> Akash Purandare
>>>
>>>
>>> On Sunday, November 18, 2018 at 9:56:13 PM UTC+5:30, Jeff Williams wrote:
>>>
 OK this is almost fixed:

 Why isn't this path matching?

 Page not found (404)
 Request Method: GET
 Request URL:
 http://127.0.0.1:8000/oldgrub/media/56288852088__208FCEF9-5890-4633-8BF6-C5C9A82D87EE.JPG

 Using the URLconf defined in familyrecipies.urls, Django tried these
 URL patterns, in this order:

1. admin/
2. oldgrub/ [name='index']
3. oldgrub/ cookbooks/ [name='cookbooks']
4. oldgrub/ cookbook/ [name='cookbook']
5. oldgrub/ recipe/ [name='recipes']
6. oldgrub/ recipe/ [name='recipe']
7. oldgrub/ family/ [name='family']
8. oldgrub/ recipe/add/ [name='addrecipe']
9. oldgrub/ ^oldgrub/media/(?P.*)$
10.
11. accounts/

 The current path,
 oldgrub/media/56288852088__208FCEF9-5890-4633-8BF6-C5C9A82D87EE.JPG,
 didn't match any of these.

 On Sun, Nov 18, 2018 at 11:08 AM Jeff Williams 
 wrote:

>>> Thanks Akash.
> Haven't quite fixed it yet but this is definitely the right area.
> Jeff
>
> On Sun, Nov 18, 2018 at 10:52 AM Akash Purandare 
> wrote:
>
 Hi Jeff
>>
>> I believe that the URL that you want to show is completely irrelevant
>> as the Django's FileField does that for you. However, in case you really
>> want your project name to be included in your URL, you can change the
>> MEDIA_URL in your settings.py to '/oldgrub/media' to reflect the 
>> necessary
>> changes for you.
>>
>> Also, I believe that the problem you are facing is because you want
>> to serve your files online by using the MEDIA_URL and MEDIA_ROOT. Hence,
>> you must add this URL pattern at the end of your urls.py file of your 
>> main
>> project folder.
>>
>> from django.conf import settings
>> from django.conf.urls.static import static
>> urlpatterns = [
>> ...(Your Urls)
>> ]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
>>
>> Regards
>> Akash Purandare
>>
>>
>> On Sunday, November 18, 2018 at 8:48:04 PM UTC+5:30, Jeff Williams
>> wrote:
>>>
>>> Hi All,
>>> I'm new to django, so sorry if this is a newbie issue.
>>>
>>> I've managed to upload an ImageFieldbut when I try to display it
>>> in my template using object.pic.url...the URL I'm getting back is 
>>> missing
>>> my project name from the URL and the pic is not loading.
>>>
>>> Specifically I'm getting
>>> http://127.0.0.1:8000/media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>>>  back.and
>>> I need
>>>
>>> http://127.0.0.1:8000/*oldgrub*
>>> /media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>>>
>>> back to have it work.
>>>
>>> What am I missing?  I've poured over my configs.
>>> Jeff
>>>
>> --
>> 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 post to this group, send email to django...@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/ca83632a-89d5-4186-873e-8ef6bf552cc5%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
>>> You 

Re: file URL missing project name

2018-11-18 Thread Akash Purandare
Hey Jeff

I tried the models that you were creating and I found out the error that 
you are having is with the Model. The upload_to of the pic variable is set 
to 'media/', which uploads the file to the url 
http://localhost:8000/oldgrub/media/media/56288852088__208FCEF9-5890-
4633-8BF6-C5C9A82D87EE.JPG. So if you change the upload_to to '', the URL 
will be http://localhost:8000/oldgrub/media/56288852088__208FCEF9-5890-
4633-8BF6-C5C9A82D87EE.JPG.

Hope this fixes the issue that you are facing.

Regards
Akash Purandare

On Sunday, November 18, 2018 at 10:57:31 PM UTC+5:30, Jeff Williams wrote:
>
> Nope.  Same error.  I can see the file being loaded.  Doesn't like the URL 
> still. 
>
> On Sun, Nov 18, 2018 at 11:30 AM Akash Purandare  > wrote:
>
>> Hey Jeff
>>
>> I think that you might need to upload the file again and try.
>>
>> Let me know if it works out.
>>
>> Regards
>> Akash Purandare
>>
>>
>> On Sunday, November 18, 2018 at 9:56:13 PM UTC+5:30, Jeff Williams wrote:
>>
>>> OK this is almost fixed:
>>>
>>> Why isn't this path matching?
>>>
>>> Page not found (404)
>>> Request Method: GET
>>> Request URL: 
>>> http://127.0.0.1:8000/oldgrub/media/56288852088__208FCEF9-5890-4633-8BF6-C5C9A82D87EE.JPG
>>>
>>> Using the URLconf defined in familyrecipies.urls, Django tried these 
>>> URL patterns, in this order:
>>>
>>>1. admin/
>>>2. oldgrub/ [name='index']
>>>3. oldgrub/ cookbooks/ [name='cookbooks']
>>>4. oldgrub/ cookbook/ [name='cookbook']
>>>5. oldgrub/ recipe/ [name='recipes']
>>>6. oldgrub/ recipe/ [name='recipe']
>>>7. oldgrub/ family/ [name='family']
>>>8. oldgrub/ recipe/add/ [name='addrecipe']
>>>9. oldgrub/ ^oldgrub/media/(?P.*)$
>>>10. 
>>>11. accounts/
>>>
>>> The current path, 
>>> oldgrub/media/56288852088__208FCEF9-5890-4633-8BF6-C5C9A82D87EE.JPG, 
>>> didn't match any of these.
>>>
>>> On Sun, Nov 18, 2018 at 11:08 AM Jeff Williams  
>>> wrote:
>>>
>> Thanks Akash.
 Haven't quite fixed it yet but this is definitely the right area.  
 Jeff 

 On Sun, Nov 18, 2018 at 10:52 AM Akash Purandare  
 wrote:

>>> Hi Jeff
>
> I believe that the URL that you want to show is completely irrelevant 
> as the Django's FileField does that for you. However, in case you really 
> want your project name to be included in your URL, you can change the 
> MEDIA_URL in your settings.py to '/oldgrub/media' to reflect the 
> necessary 
> changes for you.
>
> Also, I believe that the problem you are facing is because you want to 
> serve your files online by using the MEDIA_URL and MEDIA_ROOT. Hence, you 
> must add this URL pattern at the end of your urls.py file of your main 
> project folder.
>
> from django.conf import settings
> from django.conf.urls.static import static
> urlpatterns = [
> ...(Your Urls)
> ]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
>
> Regards
> Akash Purandare
>
>
> On Sunday, November 18, 2018 at 8:48:04 PM UTC+5:30, Jeff Williams 
> wrote:
>>
>> Hi All,
>> I'm new to django, so sorry if this is a newbie issue.
>>
>> I've managed to upload an ImageFieldbut when I try to display it 
>> in my template using object.pic.url...the URL I'm getting back is 
>> missing 
>> my project name from the URL and the pic is not loading.
>>
>> Specifically I'm getting 
>> http://127.0.0.1:8000/media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>>  back.and 
>> I need 
>>
>> http://127.0.0.1:8000/*oldgrub*
>> /media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>>
>> back to have it work.  
>>
>> What am I missing?  I've poured over my configs.
>> Jeff 
>>
> -- 
> 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 post to this group, send email to django...@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/ca83632a-89d5-4186-873e-8ef6bf552cc5%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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at 

Re: file URL missing project name

2018-11-18 Thread Jeff Williams
Nope.  Same error.  I can see the file being loaded.  Doesn't like the URL
still.

On Sun, Nov 18, 2018 at 11:30 AM Akash Purandare 
wrote:

> Hey Jeff
>
> I think that you might need to upload the file again and try.
>
> Let me know if it works out.
>
> Regards
> Akash Purandare
>
>
> On Sunday, November 18, 2018 at 9:56:13 PM UTC+5:30, Jeff Williams wrote:
>
>> OK this is almost fixed:
>>
>> Why isn't this path matching?
>>
>> Page not found (404)
>> Request Method: GET
>> Request URL:
>> http://127.0.0.1:8000/oldgrub/media/56288852088__208FCEF9-5890-4633-8BF6-C5C9A82D87EE.JPG
>>
>> Using the URLconf defined in familyrecipies.urls, Django tried these URL
>> patterns, in this order:
>>
>>1. admin/
>>2. oldgrub/ [name='index']
>>3. oldgrub/ cookbooks/ [name='cookbooks']
>>4. oldgrub/ cookbook/ [name='cookbook']
>>5. oldgrub/ recipe/ [name='recipes']
>>6. oldgrub/ recipe/ [name='recipe']
>>7. oldgrub/ family/ [name='family']
>>8. oldgrub/ recipe/add/ [name='addrecipe']
>>9. oldgrub/ ^oldgrub/media/(?P.*)$
>>10.
>>11. accounts/
>>
>> The current path,
>> oldgrub/media/56288852088__208FCEF9-5890-4633-8BF6-C5C9A82D87EE.JPG,
>> didn't match any of these.
>>
>> On Sun, Nov 18, 2018 at 11:08 AM Jeff Williams 
>> wrote:
>>
> Thanks Akash.
>>> Haven't quite fixed it yet but this is definitely the right area.
>>> Jeff
>>>
>>> On Sun, Nov 18, 2018 at 10:52 AM Akash Purandare 
>>> wrote:
>>>
>> Hi Jeff

 I believe that the URL that you want to show is completely irrelevant
 as the Django's FileField does that for you. However, in case you really
 want your project name to be included in your URL, you can change the
 MEDIA_URL in your settings.py to '/oldgrub/media' to reflect the necessary
 changes for you.

 Also, I believe that the problem you are facing is because you want to
 serve your files online by using the MEDIA_URL and MEDIA_ROOT. Hence, you
 must add this URL pattern at the end of your urls.py file of your main
 project folder.

 from django.conf import settings
 from django.conf.urls.static import static
 urlpatterns = [
 ...(Your Urls)
 ]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

 Regards
 Akash Purandare


 On Sunday, November 18, 2018 at 8:48:04 PM UTC+5:30, Jeff Williams
 wrote:
>
> Hi All,
> I'm new to django, so sorry if this is a newbie issue.
>
> I've managed to upload an ImageFieldbut when I try to display it
> in my template using object.pic.url...the URL I'm getting back is missing
> my project name from the URL and the pic is not loading.
>
> Specifically I'm getting
> http://127.0.0.1:8000/media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>  back.and
> I need
>
> http://127.0.0.1:8000/*oldgrub*
> /media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>
> back to have it work.
>
> What am I missing?  I've poured over my configs.
> Jeff
>
 --
 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 post to this group, send email to django...@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/ca83632a-89d5-4186-873e-8ef6bf552cc5%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/d4970488-eae4-4298-96ad-617fac29ae08%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 

Re: iss api

2018-11-18 Thread Joel
Isn't this reverse geocoding? I think it's already an example in the
official tutorial.

On Sun, 18 Nov, 2018, 7:45 PM gokul s  hi i want create model that get the longitude and lattitude for
> International Space Station and plot the longitude and lattitude on map so
> that we can track the live location on map.i  have wrote function to
> receive lattitude and longitude but i dont know how to plot it with map.
>
> --
> 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/6fd2de51-bcca-4778-8d5a-0d22329132cc%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/CAA%3Diw_-Cfcs_8BhOXGsKDKreQM5otdQa-h5gC8X7cYhzOtD%3D%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: file URL missing project name

2018-11-18 Thread Akash Purandare
Hey Jeff

I think that you might need to upload the file again and try.

Let me know if it works out.

Regards
Akash Purandare

On Sunday, November 18, 2018 at 9:56:13 PM UTC+5:30, Jeff Williams wrote:
>
> OK this is almost fixed:
>
> Why isn't this path matching?
>
> Page not found (404)
> Request Method: GET
> Request URL: 
> http://127.0.0.1:8000/oldgrub/media/56288852088__208FCEF9-5890-4633-8BF6-C5C9A82D87EE.JPG
>
> Using the URLconf defined in familyrecipies.urls, Django tried these URL 
> patterns, in this order:
>
>1. admin/
>2. oldgrub/ [name='index']
>3. oldgrub/ cookbooks/ [name='cookbooks']
>4. oldgrub/ cookbook/ [name='cookbook']
>5. oldgrub/ recipe/ [name='recipes']
>6. oldgrub/ recipe/ [name='recipe']
>7. oldgrub/ family/ [name='family']
>8. oldgrub/ recipe/add/ [name='addrecipe']
>9. oldgrub/ ^oldgrub/media/(?P.*)$
>10. 
>11. accounts/
>
> The current path, 
> oldgrub/media/56288852088__208FCEF9-5890-4633-8BF6-C5C9A82D87EE.JPG, 
> didn't match any of these.
>
> On Sun, Nov 18, 2018 at 11:08 AM Jeff Williams  > wrote:
>
>> Thanks Akash.
>> Haven't quite fixed it yet but this is definitely the right area.  
>> Jeff 
>>
>> On Sun, Nov 18, 2018 at 10:52 AM Akash Purandare > > wrote:
>>
>>> Hi Jeff
>>>
>>> I believe that the URL that you want to show is completely irrelevant as 
>>> the Django's FileField does that for you. However, in case you really want 
>>> your project name to be included in your URL, you can change the MEDIA_URL 
>>> in your settings.py to '/oldgrub/media' to reflect the necessary changes 
>>> for you.
>>>
>>> Also, I believe that the problem you are facing is because you want to 
>>> serve your files online by using the MEDIA_URL and MEDIA_ROOT. Hence, you 
>>> must add this URL pattern at the end of your urls.py file of your main 
>>> project folder.
>>>
>>> from django.conf import settings
>>> from django.conf.urls.static import static
>>> urlpatterns = [
>>> ...(Your Urls)
>>> ]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
>>>
>>> Regards
>>> Akash Purandare
>>>
>>>
>>> On Sunday, November 18, 2018 at 8:48:04 PM UTC+5:30, Jeff Williams wrote:

 Hi All,
 I'm new to django, so sorry if this is a newbie issue.

 I've managed to upload an ImageFieldbut when I try to display it in 
 my template using object.pic.url...the URL I'm getting back is missing my 
 project name from the URL and the pic is not loading.

 Specifically I'm getting 
 http://127.0.0.1:8000/media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
  back.and 
 I need 

 http://127.0.0.1:8000/*oldgrub*
 /media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG

 back to have it work.  

 What am I missing?  I've poured over my configs.
 Jeff 

>>> -- 
>>> 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 post to this group, send email to django...@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/ca83632a-89d5-4186-873e-8ef6bf552cc5%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/d4970488-eae4-4298-96ad-617fac29ae08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: file URL missing project name

2018-11-18 Thread Jeff Williams
OK this is almost fixed:

Why isn't this path matching?

Page not found (404)
Request Method: GET
Request URL:
http://127.0.0.1:8000/oldgrub/media/56288852088__208FCEF9-5890-4633-8BF6-C5C9A82D87EE.JPG

Using the URLconf defined in familyrecipies.urls, Django tried these URL
patterns, in this order:

   1. admin/
   2. oldgrub/ [name='index']
   3. oldgrub/ cookbooks/ [name='cookbooks']
   4. oldgrub/ cookbook/ [name='cookbook']
   5. oldgrub/ recipe/ [name='recipes']
   6. oldgrub/ recipe/ [name='recipe']
   7. oldgrub/ family/ [name='family']
   8. oldgrub/ recipe/add/ [name='addrecipe']
   9. oldgrub/ ^oldgrub/media/(?P.*)$
   10.
   11. accounts/

The current path,
oldgrub/media/56288852088__208FCEF9-5890-4633-8BF6-C5C9A82D87EE.JPG, didn't
match any of these.

On Sun, Nov 18, 2018 at 11:08 AM Jeff Williams 
wrote:

> Thanks Akash.
> Haven't quite fixed it yet but this is definitely the right area.
> Jeff
>
> On Sun, Nov 18, 2018 at 10:52 AM Akash Purandare 
> wrote:
>
>> Hi Jeff
>>
>> I believe that the URL that you want to show is completely irrelevant as
>> the Django's FileField does that for you. However, in case you really want
>> your project name to be included in your URL, you can change the MEDIA_URL
>> in your settings.py to '/oldgrub/media' to reflect the necessary changes
>> for you.
>>
>> Also, I believe that the problem you are facing is because you want to
>> serve your files online by using the MEDIA_URL and MEDIA_ROOT. Hence, you
>> must add this URL pattern at the end of your urls.py file of your main
>> project folder.
>>
>> from django.conf import settings
>> from django.conf.urls.static import static
>> urlpatterns = [
>> ...(Your Urls)
>> ]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
>>
>> Regards
>> Akash Purandare
>>
>>
>> On Sunday, November 18, 2018 at 8:48:04 PM UTC+5:30, Jeff Williams wrote:
>>>
>>> Hi All,
>>> I'm new to django, so sorry if this is a newbie issue.
>>>
>>> I've managed to upload an ImageFieldbut when I try to display it in
>>> my template using object.pic.url...the URL I'm getting back is missing my
>>> project name from the URL and the pic is not loading.
>>>
>>> Specifically I'm getting
>>> http://127.0.0.1:8000/media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>>>  back.and
>>> I need
>>>
>>> http://127.0.0.1:8000/*oldgrub*
>>> /media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>>>
>>> back to have it work.
>>>
>>> What am I missing?  I've poured over my configs.
>>> Jeff
>>>
>> --
>> 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/ca83632a-89d5-4186-873e-8ef6bf552cc5%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/CAMgbqCe6Bf-3pVgWWw%3D0P11cYq8dbZXhLDuH4UM6PG6AqWYqTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: file URL missing project name

2018-11-18 Thread Jeff Williams
Thanks Akash.
Haven't quite fixed it yet but this is definitely the right area.
Jeff

On Sun, Nov 18, 2018 at 10:52 AM Akash Purandare 
wrote:

> Hi Jeff
>
> I believe that the URL that you want to show is completely irrelevant as
> the Django's FileField does that for you. However, in case you really want
> your project name to be included in your URL, you can change the MEDIA_URL
> in your settings.py to '/oldgrub/media' to reflect the necessary changes
> for you.
>
> Also, I believe that the problem you are facing is because you want to
> serve your files online by using the MEDIA_URL and MEDIA_ROOT. Hence, you
> must add this URL pattern at the end of your urls.py file of your main
> project folder.
>
> from django.conf import settings
> from django.conf.urls.static import static
> urlpatterns = [
> ...(Your Urls)
> ]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
>
> Regards
> Akash Purandare
>
>
> On Sunday, November 18, 2018 at 8:48:04 PM UTC+5:30, Jeff Williams wrote:
>>
>> Hi All,
>> I'm new to django, so sorry if this is a newbie issue.
>>
>> I've managed to upload an ImageFieldbut when I try to display it in
>> my template using object.pic.url...the URL I'm getting back is missing my
>> project name from the URL and the pic is not loading.
>>
>> Specifically I'm getting
>> http://127.0.0.1:8000/media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>>  back.and
>> I need
>>
>> http://127.0.0.1:8000/*oldgrub*
>> /media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>>
>> back to have it work.
>>
>> What am I missing?  I've poured over my configs.
>> Jeff
>>
> --
> 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/ca83632a-89d5-4186-873e-8ef6bf552cc5%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/CAMgbqCeRNy2_KxuEnjGMv%3DK0h1kqR1%3DVP35YF7bH%2BPkvH3%3D2Cw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Exception Value: fe_sendauth: no password supplied

2018-11-18 Thread Akash Purandare
Hi Akash

Can you specify as to what error you are facing? Also, I believe that the 
ENGINE that you are using must be 'django.db.backends.postgresql' as given 
in the official docs of 
Django: 
https://docs.djangoproject.com/en/2.1/ref/settings/#std:setting-DATABASE-ENGINE

Regards
Akash Purandare

On Sunday, November 18, 2018 at 7:45:38 PM UTC+5:30, akash wrote:
>
> hi all i am trying to connect to postgres db and display records on 
> webpage i have set up dyango project but not sure why i am getting this 
> error.
>
> settings.py
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.postgresql_psycopg2',
> 'NAME': 'test',
> 'USER': 'abtech',
> 'PASSWORD': 'abtech',
> 'HOST': 'localhost',
> 'PORT': '5432',
> }
> }
>
>
>
>

-- 
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/a6a47561-8970-422d-8265-e9534171828a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: file URL missing project name

2018-11-18 Thread Akash Purandare
Hi Jeff

I believe that the URL that you want to show is completely irrelevant as 
the Django's FileField does that for you. However, in case you really want 
your project name to be included in your URL, you can change the MEDIA_URL 
in your settings.py to '/oldgrub/media' to reflect the necessary changes 
for you.

Also, I believe that the problem you are facing is because you want to 
serve your files online by using the MEDIA_URL and MEDIA_ROOT. Hence, you 
must add this URL pattern at the end of your urls.py file of your main 
project folder.

from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
...(Your Urls)
]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Regards
Akash Purandare

On Sunday, November 18, 2018 at 8:48:04 PM UTC+5:30, Jeff Williams wrote:
>
> Hi All,
> I'm new to django, so sorry if this is a newbie issue.
>
> I've managed to upload an ImageFieldbut when I try to display it in my 
> template using object.pic.url...the URL I'm getting back is missing my 
> project name from the URL and the pic is not loading.
>
> Specifically I'm getting 
> http://127.0.0.1:8000/media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>  back.and 
> I need 
>
> http://127.0.0.1:8000/*oldgrub*
> /media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>
> back to have it work.  
>
> What am I missing?  I've poured over my configs.
> Jeff 
>

-- 
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/ca83632a-89d5-4186-873e-8ef6bf552cc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: file URL missing project name

2018-11-18 Thread Jeff Williams
OK here are what I think are the relevant parts:

settings.py

STATIC_URL = '/static/'
STATICFILES_DIRS = (
os.path.join(BASE_DIR,'static'), # if your static files
folder is named "staticfiles"
)

# Redirect to home URL after login (Default redirects to /accounts/profile/)
LOGIN_REDIRECT_URL = '/'

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')


urls.py


urlpatterns = [
path('', views.index, name='index'),
path('cookbooks/', views.CookBookListView.as_view(), name='cookbooks'),
path('cookbook/', views.CookBookDetailView.as_view(),
name='cookbook'),
path('recipe/', views.RecipeListView.as_view(), name='recipes'),
path('recipe/', views.RecipeDetailView.as_view(), name='recipe'),
path('family/', views.FamilyDetailView.as_view(), name='family'),
path('recipe/add/', views.RecipeAdd, name='addrecipe'),
#Add Django site authentication urls (for login, logout, password
management)
]

if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

models.py

class Recipe(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4,
help_text='Unique ID for this particular recipe across whole library')
cookbook = models.ForeignKey(CookBook,on_delete=models.SET_NULL,
null=True, related_name='recipies')
title = models.TextField(max_length=1000, help_text='Enter a brief
description of the Recipe')
author = models.TextField(max_length=1000, help_text='Enter the
creator of the Recipie', blank=True)
text = models.TextField(max_length=1, help_text='Enter the recipe')
notes = models.TextField(max_length=1, help_text='Enter notes
on the recipe',blank=True)
pic = models.ImageField(upload_to='media/',blank=True, null=True)


views.py

def RecipeAdd(request):
template_name = 'recipe_add.html'

r = Recipe(cookbook=Family.objects.get(members=request.user).FamilyCookbook)
# If this is a POST request then process the Form data
if request.method == 'POST':

# Create a form instance and populate it with data from the
request (binding):
add_recipe_form = AddRecipeForm(request.POST, request.FILES)

# Check if the form is valid:
if add_recipe_form.is_valid():
# process the data in form.cleaned_data as required (here
we just write it to the model due_back field)
# book_instance.due_back =
book_renewal_form.cleaned_data['renewal_date']
r.author = add_recipe_form.cleaned_data['author']
r.notes = add_recipe_form.cleaned_data['notes']
r.text = add_recipe_form.cleaned_data['text']
r.title = add_recipe_form.cleaned_data['title']
# r.pic=add_recipe_form.cleaned_data['pic'] # file not
being returned here
# r.pic = add_recipe_form.data['pic']  # file not being
returned here
r.pic = request.FILES['pic']  #file not here

add_recipe_form.save()  # save the recipe

# redirect to a new URL:
return HttpResponseRedirect(reverse('recipes'))

# If this is a GET (or any other method) create the default form.
else:
# proposed_renewal_date = datetime.date.today() +
datetime.timedelta(weeks=3)
add_recipe_form = AddRecipeForm()

context = {
'form': add_recipe_form,
}

return render(request, 'recipe_add.html', context)


forms.py

class AddRecipeForm( ModelForm ):
pic = ImageField(widget= FileInput)  # was widget=PictureWidget

class Meta:
model = Recipe
fields = ('title', 'author', 'text', 'notes', 'pic')
widgets = {
'title': Textarea( attrs={'cols': 40, 'rows': 1} ),
'author': Textarea( attrs={'cols': 40, 'rows': 1} ),
'text': Textarea( attrs={'cols': 40, 'rows': 1} ),
'notes': Textarea( attrs={'cols': 40, 'rows': 1} ),
# 'pic': Textarea(attrs={'cols': 40, 'rows': 1}),

recipe_list.html

Recipe List
 {% if recipe_list %}
 
   {% for recipe in recipe_list %}
 
  
  {{ recipe.title }} {{recipe.author}}

{{recipe.text}} 
 {{ recipe.notes }}
 {% load static %}
 
   {% if recipe.pic %}
   {{ recipe.title }}
   

   {% endif %}
 
  {{ recipe.pic }}
 
   {% endfor %}


On Sun, Nov 18, 2018 at 10:23 AM Joel Mathew  wrote:

> It's anybody's guess unless you post your code.
> Sincerely yours,
>
>  Joel G Mathew
>
>
>
> On Sun, 18 Nov 2018 at 20:47, Jeff Williams 
> wrote:
>
>> Hi All,
>> I'm new to django, so sorry if this is a newbie issue.
>>
>> I've managed to upload an ImageFieldbut when I try to display it in
>> my template using object.pic.url...the URL I'm getting back is missing my
>> project name from the URL and the pic is not loading.
>>
>> Specifically I'm getting
>> http://127.0.0.1:8000/media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>>  back.and
>> I need
>>
>> 

Re: iss api

2018-11-18 Thread Ryan Nowakowski
The easiest thing is probably to:
1. Render the latitude and longitude in a template as JavaScript variables in a 
script tag.
2. Use Google maps to show those coordinates via JavaScript.

On November 18, 2018 5:38:48 AM CST, gokul s  wrote:
>hi i want create model that get the longitude and lattitude for 
>International Space Station and plot the longitude and lattitude on map
>so 
>that we can track the live location on map.i  have wrote function to 
>receive lattitude and longitude but i dont know how to plot it with
>map.
>
>-- 
>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/6fd2de51-bcca-4778-8d5a-0d22329132cc%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/FD4E69DD-FDD2-4016-9C8F-2AF863F350EF%40fattuba.com.
For more options, visit https://groups.google.com/d/optout.


Re: file URL missing project name

2018-11-18 Thread Joel Mathew
It's anybody's guess unless you post your code.
Sincerely yours,

 Joel G Mathew



On Sun, 18 Nov 2018 at 20:47, Jeff Williams 
wrote:

> Hi All,
> I'm new to django, so sorry if this is a newbie issue.
>
> I've managed to upload an ImageFieldbut when I try to display it in my
> template using object.pic.url...the URL I'm getting back is missing my
> project name from the URL and the pic is not loading.
>
> Specifically I'm getting
> http://127.0.0.1:8000/media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>  back.and
> I need
>
> http://127.0.0.1:8000/*oldgrub*
> /media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
>
> back to have it work.
>
> What am I missing?  I've poured over my configs.
> Jeff
>
> --
> 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/CAMgbqCe3UzvrWFg4fiRSPXp6HtLJoPJmGs8oPSZjAd%3Dxx4ygNQ%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/CAA%3Diw_-Siy3yQgn8O9Kj0NC6URxwhebR%3DqO7BvUwzyL9mi9NdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fascinating Problem

2018-11-18 Thread Ryan Nowakowski
Posting the view code might be helpful for folks to help you debug.

On November 16, 2018 2:52:12 PM CST, Matthew Pava  wrote:
>I have come across an interesting issue with my error handling. 
>Whenever I go to a URL that throws an exception (I have one for
>testing) as one of the ADMINS when DEBUG is False, I get the 500 error,
>and the email from the server indicating it.  When a different user
>navigates to the URL, the development server returns a 200, but it
>renders the 500 error message page, and I get no email message.  I have
>tried restoring all email and logging settings to their Django
>defaults, but I continue to get this issue.  If you have any ideas, I'm
>quite interested.
>
>-- 
>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/2ac5947cc43a45c3a6b71bf773fa640f%40iss2.ISS.LOCAL.
>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/44E3122D-F6A8-466F-AF50-D1386191747A%40fattuba.com.
For more options, visit https://groups.google.com/d/optout.


file URL missing project name

2018-11-18 Thread Jeff Williams
Hi All,
I'm new to django, so sorry if this is a newbie issue.

I've managed to upload an ImageFieldbut when I try to display it in my
template using object.pic.url...the URL I'm getting back is missing my
project name from the URL and the pic is not loading.

Specifically I'm getting
http://127.0.0.1:8000/media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG
back.and
I need

http://127.0.0.1:8000/*oldgrub*
/media/media/56288852934__75FACD12-1711-4655-96D5-716198FE10B7.JPG

back to have it work.

What am I missing?  I've poured over my configs.
Jeff

-- 
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/CAMgbqCe3UzvrWFg4fiRSPXp6HtLJoPJmGs8oPSZjAd%3Dxx4ygNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Boolean Field should have allow_false (default=True) attribute

2018-11-18 Thread Jason
If I understand you right, you want to have multiple emails for a user, but 
only one set to primary, but are running into validation errors if a user 
has more than one email that is non-primary?

you can set a boolean field to false in default, but I can't see why this 
is django's fault?  sounds like you're working with a set of requirements 
somewhat unique to your project and need custom validation to make sure its 
working.  

according to the docs on BooleanField, 
https://docs.djangoproject.com/en/2.1/ref/models/fields/#booleanfield, if 
you don't set a default, it is None by default.  That's fairly clear there 
and makes sense by following the principle of least surprise 
https://en.wikipedia.org/wiki/Principle_of_least_astonishment

-- 
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/9dd60b24-c5db-4d54-bdeb-352c48638df5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


iss api

2018-11-18 Thread gokul s
hi i want create model that get the longitude and lattitude for 
International Space Station and plot the longitude and lattitude on map so 
that we can track the live location on map.i  have wrote function to 
receive lattitude and longitude but i dont know how to plot it with map.

-- 
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/6fd2de51-bcca-4778-8d5a-0d22329132cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Exception Value: fe_sendauth: no password supplied

2018-11-18 Thread akash
hi all i am trying to connect to postgres db and display records on webpage 
i have set up dyango project but not sure why i am getting this error.

settings.py

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'test',
'USER': 'abtech',
'PASSWORD': 'abtech',
'HOST': 'localhost',
'PORT': '5432',
}
}



-- 
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/fdba2734-889d-4187-89c7-c9ea21e9ae9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Boolean Field should have allow_false (default=True) attribute

2018-11-18 Thread Tanjim Hossain
I was trying to create 'EmailAddress' model to store multiple emails for an 
'user'. The model has and 'is_primary' field with null=True and 
unique_together = ('user', 'is_primary')
So if EmailAddress Instance has is_primary set to false, only one primary 
email can be set for each user; And that's exactly I want.
but using validator with is_primary(BooleanField) is too much messy work to 
do, No!?
Django should come with something like 'allow_false' by default for only 
BooleanField

-- 
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/7cf93d1c-2115-4165-b412-367e8decd4c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upload Image Field? ASAP PLS

2018-11-18 Thread Yavin Aalto Arba
Assuming this is just a general question about the subject:

Django Models has an imagefield option:
https://docs.djangoproject.com/en/2.1/ref/models/fields/#django.db.models.ImageField

The image has a .url attribute which you can use for displaying (or you can
use the % static % method). cf. "For example, if your ImageField

is
called mug_shot, you can get the absolute path to your image in a template
with {{ object.mug_shot.url}}."

These attributes shouldn't change in the event that the server manipulates
the image.

the .name attribute will give you the full on-disk path, which you can use
for whichever manipulations you need.



On Sun, 18 Nov 2018 at 04:33, Shashank Singh 
wrote:

> Why not doing it? Where are you stuck?
>
> On Sun, 18 Nov, 2018, 8:02 AM Richard Vo 
>> Need to upload an image, manipulate the image through Python Pillow, then
>> display it.
>>
>> Whatever additional information I need to provide, please let me know.
>>
>> --
>> 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/42fd7a1a-df2f-4ded-807e-413587beaefc%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/CAD-d1sZiOfx-pKxvQO_CkmTT_PhsVH3EBuZ3usJL_j4K7S1Adw%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/CA%2B%2Be-ZXhsqPH9Umzk6CgLF4JD559-TkgFU5vnHN0Tc3PfRnmiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.