“Scrapy and Scrapyrt: how to create your own API from (almost) any website” published by Jérôme Mottet - We can Integrate in our own project

2019-04-14 Thread Balaji Shetty
Hi Can we use this one. Anybody has ever tried. We have other option like Rest Framework or Angular JS in front End. Please Discuss -- Forwarded message - From: Medium Daily Digest Date: Sun, Apr 14, 2019 at 8:50 AM Subject: “Scrapy and Scrapyrt: how to create your own API from

Re: How this Line of code works

2019-04-14 Thread Jani Tiainen
Hi. get_object_or_404 works so that first argument is the model class you want to query. Rest of the parameters are filters that mus return a single object. You can find this information from the Django docs as well. ma 15. huhtik. 2019 klo 7.23 Mayur Bagul kirjoitti: > how passing Question a

Re: How this Line of code works

2019-04-14 Thread Mayur Bagul
how passing Question and pk=question_id gonna help? On Sunday, April 14, 2019 at 5:41:06 PM UTC+5:30, gulam rabbani wrote: > > It will give you to fetch the id ! Until end of the id > > On Sun, 14 Apr, 2019 at 1:47 PM, Mayur Bagul > wrote: > >> In below code i didnt understand how colored line o

Re: How this Line of code works

2019-04-14 Thread Mayur Bagul
Hello vineeth, thanks for information. u missed to mention about why we passing Question class and primary key in get_object_or_404() ? How passing such arguments gonna work? On Sunday, April 14, 2019 at 1:25:13 PM UTC+5:30, vineeth sagar wrote: > > Hi Mayur, > > get_object_or_404, returns an

Color Editor Django WebApp, see how you can Color an Image using a Webapp designed in Django.

2019-04-14 Thread Samuel Muiruri
Here's a video on how it works https://www.youtube.com/watch?v=GsYL0ELYSTI And the Site itself http://pixelart.thecoderr.com/color-editor And finally the source code (It's OpenSourced) https://github.com/six-wars/pixelart -- Checkout My Site: The Coder . I design websit

Django Upload multiple files without using Django forms or models

2019-04-14 Thread Sam W
I want to upload multiple files to the system (Local folder) without using Django forms or models. For a single file, everything works just fine and the file get saved to a local media folder under the project. But when I changed the function from {request.FILES['images'] } To {request.FILES.ge

Re: Multiple Django projects using the same database

2019-04-14 Thread sanjeev bhagat
Apr 12 Hi, i am working on the same... Sanju -- 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,

The 'image' attribute has no file associated with it.

2019-04-14 Thread joaocarlodosssantos
def upload_location(instance, filename): return "%s/%s" % (instance.id, filename) class Post(models.Model): user = models.ForeignKey(User, blank=True, null=True, on_delete=models.CASCADE, default=1) title = models.CharField('Título', max_length=120) slug = models.SlugField(uni

Re: How this Line of code works

2019-04-14 Thread gulam rabbani
It will give you to fetch the id ! Until end of the id On Sun, 14 Apr, 2019 at 1:47 PM, Mayur Bagul wrote: > In below code i didnt understand how colored line of code is working with > template code ? > > why we are passing Question and primary key? instead of dictionary to > context variable. >

Re: How this Line of code works

2019-04-14 Thread vineeth sagar
Hi Mayur, get_object_or_404, returns an object if it exists in the database or it will raise a 404 exception. So if the object is in the DB, django render template is done, in your case detail.html is rendered with the context dictionary.If there's no row peertaining to the query, then Http404 is

How this Line of code works

2019-04-14 Thread Mayur Bagul
In below code i didnt understand how colored line of code is working with template code ? why we are passing Question and primary key? instead of dictionary to context variable. plz help me to get out of this confusion. thanking you. *view.py* from django.shortcuts import get_object_or_40

Re: Failed to understand syntax

2019-04-14 Thread Mayur Bagul
Thank a lot for your valuable information on asked topic. My double is clear now. Thanks to you and community. -- 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 d