Re: How can I show a list of values in a text input field?

2011-02-07 Thread Nate Reed
il.com> wrote: > On Sun, Feb 6, 2011 at 4:25 PM, Nate Reed <natereed@gmail.com> wrote: >> I posted this question on StackOverflow, too.  I have defined a Model >> with a ManyToManyField, and I want the field to show the values joined >> by spaces, for example: >> &

How can I show a list of values in a text input field?

2011-02-06 Thread Nate Reed
I posted this question on StackOverflow, too. I have defined a Model with a ManyToManyField, and I want the field to show the values joined by spaces, for example: I have defined the form to use CharField to represent the multiple values: class MyForm(ModelForm): foo =

Re: problem loading custom template tag

2010-12-19 Thread Nate Reed
My mistake. There was a small typo. It was called __init.py__, not __init__.py. I fixed it and it works now. Thanks, Nate On Sun, Dec 19, 2010 at 9:20 PM, Nate Reed <natereed@gmail.com> wrote: > Karen, thanks for your reply.   The module myapp/templatetags does > have an __in

Re: problem loading custom template tag

2010-12-19 Thread Nate Reed
com> wrote: > On Sun, Dec 19, 2010 at 8:40 PM, Nate Reed <natereed@gmail.com> wrote: >> >> When I try to import my module in the shell I also am unable to import it: >> >> >>> from django.templatetags import mytags >> Traceback (most rece

problem loading custom template tag

2010-12-19 Thread Nate Reed
Hi, I'm using Django 1.2.1 and I'm having problems trying to load my template tags: {% load mytags %} TemplateSyntaxError at /myapp/ 'mytags' is not a valid tag library: Template library mytags not found, tried django.templatetags.mytags It's defined in myproject/myapp/templatetags/mytags.py.

django-admin.py complains about missing DJANGO_SETTINGS_MODULE

2009-07-14 Thread Nate Reed
The admin tool is complaining about this environment variable, but I've never had this problem before on this box. I'm not sure what's changed since the last time I used it. I tried specifying the path: $ django-admin.py syncdb --settings=mysite.settings Error: Could not import settings

Re: problem with sorl-thumbnail invalid image

2009-03-22 Thread Nate Reed
orks Graphic > Image" file. There's apparently some difference between the two. > Anyways making sure my image wasn't an *Adobe PNG fixed the problem > with me. > > On Mar 21, 11:18 pm, Nate Reed <natereed@gmail.com> wrote: > > As a workaround I used Gimp to con

Re: problem with sorl-thumbnail invalid image

2009-03-21 Thread Nate Reed
com> wrote: > > On Sat, 2009-03-21 at 17:33 -0700, Nate Reed wrote: > [...] > > Is there some way I can work with interlaced PNG's in PIL? > > Typing "PIL interlaced PNG" into Google suggests not. That's one of > those problems that will be fixed by somebo

Re: problem with sorl-thumbnail invalid image

2009-03-21 Thread Nate Reed
terlaced PNG files Is there some way I can work with interlaced PNG's in PIL? On Sat, Mar 21, 2009 at 5:29 PM, Nate Reed <natereed@gmail.com> wrote: > I have a model that uses sorl-thumbnail.ImageWithThumbnailsField: > > class Vendor(models.Model): > url = models.

problem with sorl-thumbnail invalid image

2009-03-21 Thread Nate Reed
I have a model that uses sorl-thumbnail.ImageWithThumbnailsField: class Vendor(models.Model): url = models.URLField() logo = ImageWithThumbnailsField( blank = True, null = True, upload_to = 'logos', thumbnail={'size': (80, 80)} ) When I try to create a

Re: customizing admin interface: showing descriptive names for objects

2009-03-19 Thread Nate Reed
On Thu, Mar 19, 2009 at 4:29 PM, Alex Gaynor <alex.gay...@gmail.com> wrote: > > > On Thu, Mar 19, 2009 at 7:21 PM, Nate Reed <natereed@gmail.com> wrote: > >> I'm working on an admin interface for my app, and wondering how to >> customize what gets d

customizing admin interface: showing descriptive names for objects

2009-03-19 Thread Nate Reed
I'm working on an admin interface for my app, and wondering how to customize what gets displayed. Under Home->MyModels->MyModels, MyModel instances are listed as "MyModel object." When editing another model, the foreign key reference to MyModel gets displayed as a list of: MyModel object