Re: How to connect mysql with django

2018-11-11 Thread Jeff Williams
Did you download the .whl file first? On Sun, Nov 11, 2018 at 11:57 AM Ansh Srivastava < ansh.srivastav...@gmail.com> wrote: > Thank you @pujiarahman. I have tried out the above command but it > didn't work!It says::C:\Users\ansh\Desktop\Dje\p1\marvellous> pip install > mysqlclient-1.3.13-cp37-cp

Re: How to connect mysql with django

2018-11-11 Thread Jeff Williams
give it the full path to the file. I had the same issue yesterday and this fixed it for me. On Sun, Nov 11, 2018 at 2:27 PM Ansh Srivastava wrote: > Yes @,Jeff Williams , I did but it still prompts the same: > > C:\Users\ansh>pip install mysqlclient-1.3.13-cp37-cp37m-w

Re: How to connect mysql with django

2018-11-11 Thread Jeff Williams
sorry. I meant the full path to the file.like below if you downloaded it into C:\downloads. pip install c:\downloads\mysqlclient-1.3.13-cp37-cp3 On Sun, Nov 11, 2018 at 2:58 PM Ansh Srivastava wrote: > Full path means? If you can send the screenshot or command instead @Jeff > Wi

Re: How to connect mysql with django

2018-11-11 Thread Jeff Williams
> Sender > notified by > Mailtrack > <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&;> > 11/12/18, > 2:57:02 AM > > On Mon, Nov 12, 2018 at 2:11 AM Jeff Williams > wrote: > >> sorry. I meant the full

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://12

Re: file URL missing project name

2018-11-18 Thread Jeff Williams
': 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 %} {

Re: file URL missing project name

2018-11-18 Thread Jeff Williams
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. >

Re: file URL missing project name

2018-11-18 Thread Jeff Williams
e='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 Willi

Re: file URL missing project name

2018-11-18 Thread Jeff Williams
ash 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://

Re: file URL missing project name

2018-11-18 Thread Jeff Williams
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

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 f

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 J

Re: file URL missing project name

2018-11-19 Thread Jeff Williams
. Jeff On Mon, Nov 19, 2018 at 8:16 PM Akash Purandare wrote: > Hey Jeff > > Can you send me the URL of the file and the Location of the uploaded media > file? > > Regards > Akash Purandare > > On Sunday, November 18, 2018 at 8:48:04 PM UTC+5:30, Jeff Williams wrote: >

Re: file URL missing project name

2018-11-20 Thread Jeff Williams
particular requirements are fulfilled? > > Also, I would like to ask you to try to upload a file from the Django > admin panel and tell me if it is working. If not, can you send me the URL > and the uploaded path of the Admin panel uploaded file? > > Regards > Akash Purandare &

Re: file URL missing project name

2018-11-21 Thread Jeff Williams
if the request method was POST and the that >>> posted the request has the attribute enctype="multipart/form-data". >>> Otherwise, request.FILES will be empty. >>> >>> Can you ensure that the particular requirements are fulfilled? >>> >>&