Re:

2020-08-14 Thread Vladimir Zak
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.

How to set up a Flash-based file upload form?

2011-11-10 Thread zak
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

Re: How can I serve static files while requiring Django-based access permissions?

2011-11-09 Thread zak
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

Re: How can I serve static files while requiring Django-based access permissions?

2011-11-08 Thread zak
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: >

order by field1/field2

2008-04-07 Thread zak
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

filter issue

2008-04-07 Thread zak
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

paginator

2008-04-07 Thread zak
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

Surprising filter results with ForeignKey('self')

2007-04-12 Thread Zak Johnson
"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"

Re: Help using rowcolor with cycle command

2007-02-01 Thread Zak Johnson
{% 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

Re: View didn't return an HttpResponse

2007-01-25 Thread Zak Johnson
.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"

Re: For Loops

2007-01-16 Thread Zak Johnson
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 --~--~-~--~~~---~-

Re: For Loops

2007-01-16 Thread Zak Johnson
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

Re: Retreiveing a QSet from a Parent Table

2006-11-10 Thread Zak Johnson
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 --~--~-~--~

Re: QuerySet help

2006-10-24 Thread Zak Johnson
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

Re: Template tags

2006-10-19 Thread Zak Johnson
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,

Re: database querying

2006-10-19 Thread Zak Johnson
[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

Re: Signal Code Failing - Can anybody see where I've gone wrong.

2006-10-19 Thread Zak Johnson
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 --~--~-~--~~~--