Hey everyone,
I've got an interesting problem concerning file uploads.
I'm building an online auction and my `Lot` links to a thin
`LotImage` so that I can store multiple images of the lots:
class Lot(models.Model):
...
lot_number = models.PositiveIntegerField("Lot number")
Cla
x27;t touch it. It all seems to
work though.
Thanks again,
RM
On Feb 8, 12:57 am, Karen Tracey wrote:
> On Sat, Feb 7, 2009 at 7:27 PM, redmonkey
> wrote:
>
>
>
>
>
> > Sure, here's a bit more info.
>
> > The external data is generated by a script and it
e = lambda s: force_unicode(s,
strings_only=True)
File "/Library/Python/2.5/site-packages/django/utils/encoding.py" in
force_unicode
70. raise DjangoUnicodeDecodeError(s, *e.args)
Exception Type: DjangoUnicodeDecodeError at /admin/catalogue/catalogue/
add/
Exception Value:
an't really get my head around unicode, ascii and UTF-8 stuff.
Thanks,
RedMonkey
--~--~-~--~~~---~--~~
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@g
If you just want images of data, Google charts might be useful:
http://code.google.com/apis/chart/
I imagine you could get Google to generate a .jpg for you and put the
in a .pdf if you need to print it.
Furthermore, if it is fancy grphs you want, Google Visualisations
could work even better:
Hey Bojan
There is a few ways you could do this (certainly more that what I'm
about to tell you). It depends on the effect you want to create.
Perhaps the simplest way is to inherit from the existing class. But
inheriting classes should only strictly be used as an `is a`
relationship. So perhaps
Hey Bojan
There is a few ways you could do this (certainly more that what I'm
about to tell you). It depends on the effect you want to create.
Perhaps the simplest way is to inherit from the existing class. But
inheriting classes should only strictly be used as an `is a`
relationship. So perhaps
params)
else:
if "description" in params:
return HttpResponseRedirect(
reverse('catalogue_search_desc', kwargs=params))
else:
return HttpResponseRedirect(
reverse('catalogue_search_no_filters', kwargs=params))
I admit
n Nov 4, 5:33 pm, Brian Neal <[EMAIL PROTECTED]> wrote:
> On Nov 4, 10:50 am, redmonkey <[EMAIL PROTECTED]> wrote:
>
>
>
> > My problem is with the URL writing. I first wrote some unit tests to
> > find the regular expressions that worked but Django doesn
an Jobs site is a nice example of the effect I want to
create as you add filtering paramters on the left, although I'm using
a form to collect user input as opposed to giving them a list of
ranges which is more difficult.
I hope that clears a few things up.
On Nov 4, 5:23 pm, Steve Holden <[
Hi,
I have a small form on a page that is mostly optional fields with the
exception of some drop down boxes. I want to take the data submitted
through this form and use them to form a URL.
My problem is with the URL writing. I first wrote some unit tests to
find the regular expressions that work
You need to set a 'Content-Disposition' header.
http://docs.djangoproject.com/en/dev/howto/outputting-pdf/?from=olddocs#complex-pdfs
Look within the 'some_view' definition. You need to generate a
HttpResponse object, set the response mimetype to the correct type of
file you're serving, and then
sableCatalogue'
view.
If anyone can spot anything glaringly obvious, or has any question,
please get back to me.
Red Monkey
On Oct 28, 12:55 am, "Matías Costa" <[EMAIL PROTECTED]> wrote:
> On Mon, Oct 27, 2008 at 5:52 PM, redmonkey <[EMAIL PROTECTED]>wrote:
>
>
h. Yeah, That's pretty simple.
I could even get a reference to the Job number using -v with at,
storing that in the DB and then removing and recreating another at-job
if the user changes the time.
Brilliant, thank you.
On Oct 27, 4:05 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
; > The perfect should be finding the next success to happen (easy) and program
> > django-cron or anything else to run at that time (I don't know how)
>
> > I am very interested in the solutions people have found for this
>
> > On Mon, Oct 27, 2008 at 12:45 PM, redmo
Hi,
I'm working on a simple auctioneer's website. My Catalogue app
consists of a list of Lots arranged into Catalogues. Each catalogue
has an auction_data field which stores a status and a date and time of
the sale:
class Catalogue(models.Model):
DRAFT_STATUS = 1
LIVE_STATUS = 2
CATA
I have two fields in a model, a name (CharField) and a description
(TextField). I'm trying to set the default description to be something
simple like:
default="hello, I'm the description of the %s" % name
(To my surprise) this validates, but the description includes a
reference to the name field
17 matches
Mail list logo