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

2011-02-07 Thread Nate Reed
te: > On Sun, Feb 6, 2011 at 4:25 PM, Nate Reed 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: >> >> >> >> I have defi

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 = CharField(label='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 wrote: > Karen, thanks for your reply.   The module myapp/templatetags does > have an __init__.py file.  There is no __

Re: problem loading custom template tag

2010-12-19 Thread Nate Reed
Sun, Dec 19, 2010 at 8:40 PM, Nate Reed 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 recent call last): >>  File "", line 1,

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 'mysite.

Re: problem with sorl-thumbnail invalid image

2009-03-22 Thread Nate Reed
> 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 wrote: > > As a workaround I used Gimp to convert this image to a compatible fo

Re: problem with sorl-thumbnail invalid image

2009-03-21 Thread Nate Reed
nty-stick.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

Re: problem with sorl-thumbnail invalid image

2009-03-21 Thread Nate Reed
cannot read interlaced 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 wrote: > I have a model that uses sorl-thumbnail.ImageWithThumbnailsField: > > class Vendor(models.Model): > url = models.URLField()

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 wrote: > > > On Thu, Mar 19, 2009 at 7:21 PM, Nate Reed wrote: > >> I'm working on an admin interface for my app, and wondering how to >> customize what gets displayed. >> >> Under Home->MyModels->MyM

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 MyModel