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:
>>
&
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 =
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
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
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.
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
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
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
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.
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
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
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
12 matches
Mail list logo