Hello,
it could be missing your app name in the apps list or your template should
be on the place "templates//index.html".
Vladimir
pá 14. 8. 2020 v 16:01 odesílatel Suraj Kumar <
surajsrivastava021...@gmail.com> napsal:
> Hi guys,
>
> I am to new django.
>
> I am making blog website project.
aded files? Are
they in request.FILES? What are their "name" attributes, if so?
Thanks,
Zak
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe
e and undecided). I want it to work before I have fully
learned the ins and outs of each HTTP server on each OS, so I can use
django.views.static.serve for early testing and demos.
Zak
On Nov 9, 5:27 am, Tom Evans wrote:
>
> In that case, just use django.views.static.serve:
>
> from dj
the hard disk and put
it into an HttpResponse object? Is FileWrapper involved? How come I
can't find any documentation on 'FileWrapper' by searching
djangoproject.org?
Thanks again,
Zak
On Nov 8, 5:25 pm, Ian Clelland wrote:
> On Tue, Nov 8, 2011 at 2:11 PM, zak2011 wrote:
>
Hi,
how can i do:
objects.order_by(f1/f2)??
Thanks,
Zak
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubs
Hello,
So this works:
TableName.objects.filter(fieldname_gt, val)
But i want to be able to do the following:
TableName.objects.filter(fieldname + "__gt", val)
What am i missing??
Thanks,
Zak
--~--~-~--~~~---~--~~
You received this message becau
are requested?
Thanks,
Zak
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email
"test_bug" AS "test_bug__duplicates"
ON
"test_bug"."id" = "test_bug__duplicates"."duplicate_of_id"
WHERE
(("test_bug"."duplicate_of_id" IS NULL AND
"test_bug"
{% for item in other_result %}{{ item }}{% endfor %}
# [...]
But the former seems more likely.
-Zak
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
.save()
You're correctly returning an HttpResponse object when an exception is
raised; the problem is that you're not returning anything at the end of
your function, following the `song.save()`. You should append a line
like:
return HttpResponseRedirect(some_url)
"some_url"
Mark Jarecki wrote:
Replaced the dictionary in the views.py with a list and all was fine.
Whoops, sorry; I saw a variable called "Date_List" and didn't notice it
wasn't a list. Glad you were able to make things work.
-Zak
--~--~-~--~~~---~-
Mark Jarecki wrote:
I imagined replacing it with something like:
{% for date in Date_List %}
{{ Date_List.NotSureWhatToPutHere }}
{% endfor %}
Much like Python loop syntax:
{% for date in Date_List %}
{{ date }}
{% endfor %}
-Zak
I have.
>
> 1. qs=Child.objects.get(id= record_id)
> 2. brand = qs.parent.brand
> 3. related_brands = Parent.objects.filter(brand=brand)
If I'm understanding you correctly, replace step 3 with:
related = Parent.objects.filter(brand=brand).exclude(id=qs.parent.id)
-Zak
--~--~-~--~
a_set.all():
print '%s %s %s' % (data.price, data.company, data.url)
-Zak
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-user
cumentation/models/ordering/
-Zak
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group,
[EMAIL PROTECTED] wrote:
> Is there a way to combine objects.filter with objects.latest ?
objects.filter returns a QuerySet:
Info.objects.filter(lab_id=100).latest('dtm_insert')
-Zak
--~--~-~--~~~---~--~~
You received this message because you are
ilter(id=promotion_id,)
> p=p_qs[0]
> p.av_rating = average
> p.save()
to:
promotion_id.av_rating = average
promotion_id.save()
(Although you might consider renaming the "promotion_id" variable for
clarity.)
-Zak
--~--~-~--~~~--
17 matches
Mail list logo