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':

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

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

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

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

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

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

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

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

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

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

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

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-

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,

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

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) >

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

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

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

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

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/)

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

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

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

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

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?

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

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':

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

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.