No, I didn't create the image. I'm guessing you chose the "Interlaced"
option, or that "Adobe Photoshop PNG" is an interlaced PNG format. I'm not
that familiar with Photoshop.
On Sun, Mar 22, 2009 at 4:22 PM, DLitgo wrote:
>
> Nate,
>
> I had a similar problem to this,
On Sun, 2009-03-22 at 22:17 -0700, Super McFly wrote:
[...]
> Of course I was just doing something silly. I was using
> 'myproject.media.models.Image' when I only needed 'media.Image'. It's
> still not clear to me why this format is used but it works.
That's what this bit of the documentation
> The solutions isn't too hard, though. Use the "string format" for
> referencing from, say, Image -> Container.
> Seehttp://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkeyfor
> documentation about this.
Thank you for replying. I tried that method before but I received an
error
On Sun, Mar 22, 2009 at 10:01 PM, Robert wrote:
>
> Looks great!
> Stupid question... it's been a while since i've worked in django.
> Where's a good place to physically store that document on the server?
> sorry!
>
> On Mar 22, 8:16 pm, Alex Gaynor
Looks great!
Stupid question... it's been a while since i've worked in django.
Where's a good place to physically store that document on the server?
sorry!
On Mar 22, 8:16 pm, Alex Gaynor wrote:
> On Sun, Mar 22, 2009 at 8:15 PM, Robert wrote:
>
> >
On Sun, Mar 22, 2009 at 8:15 PM, Robert wrote:
>
> Hey,
> I'm trying to make a template that only reveals the first four items
> of a list, and then handles the rest of the list in a different
> respect, ie:
>
> for item in list
> if forloop.counter < 3 {
> do something
> }
On Mon, 2009-03-23 at 00:59 +0100, Marek Wawrzyczek wrote:
> Hi
>
> Is there any possibility, to create an bound instance of a form (even if
> it contains fields with incorrect data) and then resend the form to the
> page without validating ?
>
Almost certainly yes, since there's nothing to
Hey,
I'm trying to make a template that only reveals the first four items
of a list, and then handles the rest of the list in a different
respect, ie:
for item in list
if forloop.counter < 3 {
do something
} else {
do something else
}
but I can't come up with an eloquent way to do this in the
Hi
Is there any possibility, to create an bound instance of a form (even if
it contains fields with incorrect data) and then resend the form to the
page without validating ?
Regards,
Marek
--~--~-~--~~~---~--~~
You received this message because you are
On Sun, 2009-03-22 at 21:38 +, John Handelaar wrote:
> Hello
>
> So if my translation string in a template currently looks like this:
>
> A book called "Gulliver's Travels"
>
> ...how do I convert that into something starting with "{% trans" ?
You would mark the whole string for
On Sun, 2009-03-22 at 14:37 -0700, Super McFly wrote:
> This is a bit of a tricky one but I need help solving the following
> error:
>
> ImportError: cannot import name Container
>
> I'm sure it has something to do with the unusual relationships I have
> between two models. I'll put a
On Sun, 2009-03-22 at 05:39 -0700, nivhab wrote:
> Hi,
>
> I have the following model:
>
>class product(models.Model):
> productId = models.AutoField(primary_key=True)
> name= models.CharField(max_length=200, unique=True)
> description =
On Sunday 22 March 2009 03:59:10 pm Joshua Partogi wrote:
> On Mar 23, 6:56 am, Mike Ramirez wrote:
> > I think what you want to do with this style is:
> >
> > obj.user = User.objects.get(username=request.user.username)
> >
> > > or maybe just
> > >
> > > obj.user =
Nate,
I had a similar problem to this, I'm not sure if its the exact same
issue, but by any chance did you use Photoshop to create/save the
image as png? I noticed that by default Photoshop saves the image as
an "Adobe Photoshop PNG File" as opposed to "Portable Networks Graphic
Image" file.
On Sunday 22 March 2009 03:33:41 pm Brian Neal wrote:
> On Mar 22, 2:56 pm, Mike Ramirez wrote:
> > On Sunday 22 March 2009 09:25:42 am Brian Neal wrote:
> > > But from what you posted, I'm guessing that line needs to read:
> > >
> > > obj.user =
On Mar 23, 6:56 am, Mike Ramirez wrote:
> I think what you want to do with this style is:
>
> obj.user = User.objects.get(username=request.user.username)
>
> > or maybe just
>
> > obj.user = request.user
Hi Mike. Thank you very much.
This syntax works with
On Mar 22, 2:56 pm, Mike Ramirez wrote:
> On Sunday 22 March 2009 09:25:42 am Brian Neal wrote:
>
>
> > But from what you posted, I'm guessing that line needs to read:
>
> > obj.user = User.objects.get(username=request.user)
>
> I think what you want to do with this style is:
Thanks for the reply, Karen.
Yeah, I posted this before seeing that the feature list for 1.1
included read-only fields. It was my mistake to only search through
the newsgroup and neglect searching the wiki before posting this (you
can never be too thorough, I guess). It's just that so much of
This is a bit of a tricky one but I need help solving the following
error:
ImportError: cannot import name Container
I'm sure it has something to do with the unusual relationships I have
between two models. I'll put a simplified version below.
It started when I added the 'image' field to the
Hello
So if my translation string in a template currently looks like this:
A book called "Gulliver's Travels"
...how do I convert that into something starting with "{% trans" ?
jh
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Sorry, i am a bit of a beginner at Django and Python.
I am following the contact form tutorial from chapter 7 of the new
book and instead of emailing the form contents i want to save it to a
database.
I referenced the model part from the main Django tutorial on the
website.
Ill have a look
On Sun, Mar 22, 2009 at 2:53 PM, dbbarua wrote:
>
> Hi Karen,
> I am sorry if my messages seem confusing to you , it is
> to me too...
> I changes Django to 1.0 and i get the following errors related to core
> like you said should not happen
>
>
On Sun, Mar 22, 2009 at 3:57 PM, grimmus wrote:
>
> I am creating an instance of the model in a view like so:
>
> form = ContactForm(request.POST)
>if form.is_valid():
>cd = form.cleaned_data
>
>c =
I am creating an instance of the model in a view like so:
form = ContactForm(request.POST)
if form.is_valid():
cd = form.cleaned_data
c = ContactEnquiry(cd['name'],cd['subject'],cd['email'],cd
['message'],datetime.datetime.now())
c.save()
On Sunday 22 March 2009 09:25:42 am Brian Neal wrote:
> On Mar 22, 8:15 am, Joshua Partogi wrote:
> > Dear all,
> >
> > I just encounter this error using pyscopg2 as my db adapter
> > Exception Type: ProgrammingError
> > Exception Value: can't adapt
> >
On Sun, Mar 22, 2009 at 3:00 PM, grimmus wrote:
>
> Hi,
>
> I have a class like so
>
> class ContactEnquiry(models.Model):
>name = models.CharField(max_length=100)
>subject = models.CharField(max_length=100)
>email = models.EmailField()
>message =
Hi,
I have a class like so
class ContactEnquiry(models.Model):
name = models.CharField(max_length=100)
subject = models.CharField(max_length=100)
email = models.EmailField()
message = models.CharField(max_length=100)
enquiry_date = models.DateTimeField('enquiry date')
Hi Karen,
I am sorry if my messages seem confusing to you , it is
to me too...
I changes Django to 1.0 and i get the following errors related to core
like you said should not happen
r...@portable:/usr/local/rapidsmsdev/rapidsms/rapidsms# python
manage.py runserver 127.0.0.1:8000
On Mar 22, 4:15 pm, Roy wrote:
> That would require the extra files be hosted on my media url though. I
> want to be able to link js externally so I can use stuff like YUI,
> etc. without having to host it.
Not at all - if you pass in an absolute path, it is left alone. See:
On Sun, Mar 22, 2009 at 1:37 PM, nwalt...@sprynet.com
wrote:
>
> Can you point me to an example of how to write my own template
> filter?
> Where would I find the code for the existing urlize filter? I'm new
> to Django - and don't know all the class structures yet.
>
> In
Using GoogleAppEngine:
I have a field defined in my model:
facilityAddress = db.PostalAddressProperty(required=True)
How should this be treated on a Django form? It currently seems to
behave just like any other db.StringProperty. I can enter "abc" for
the value, click the save button, and no
Can you point me to an example of how to write my own template
filter?
Where would I find the code for the existing urlize filter? I'm new
to Django - and don't know all the class structures yet.
In my case, I want to add the phrase "target='_blank'" to the
urlizetrunc filter.
This isn't
2009/3/22 dbbarua
>
> Hi Karen,
> I am using the svn code for rapidsms and i have tried the
> official recommended version Django 1.0 and rapidsms from svn...
>
If you were using the svn code for rapidsms then I do not understand how you
hit the previous error you
Hi Karen,
I am using the svn code for rapidsms and i have tried the
official recommended version Django 1.0 and rapidsms from svn...
Yes i downgraded to 0.96.3 from 1.0 ...now it compiles fine but when
i try to access the server gives me this output..
Switch to copy-and-paste
On Sun, Mar 22, 2009 at 5:33 AM, dbbarua wrote:
>
> Hi Everybody,
>I have a problem viewing my rapidsms django
> application
>
> when i use my locally installed django app by typing in the browser
>
> http://127.0.0.1:8000
>
> I get this error
>
>
On Sun, Mar 22, 2009 at 5:09 AM, Yaniv Haber wrote:
>
> Thanks. It works that way although the examples in the documentation
> also show iterating through form.visible_fields which result in
> nothing. This is where I came from. Any idea why that happens?
>
What version
On Mar 22, 11:15 am, Roy wrote:
> That would require the extra files be hosted on my media url though. I
> want to be able to link js externally so I can use stuff like YUI,
> etc. without having to host it.
No, not if you use a fully qualified string like
On Mar 22, 8:15 am, Joshua Partogi wrote:
> Dear all,
>
> I just encounter this error using pyscopg2 as my db adapter
> Exception Type: ProgrammingError
> Exception Value: can't adapt
> Exception Location:
>
That would require the extra files be hosted on my media url though. I
want to be able to link js externally so I can use stuff like YUI,
etc. without having to host it.
Also, is it possible to do it without registering a new Admin class?
I'm not sure if it's possible to just override a template
On Sun, Mar 22, 2009 at 3:16 AM, legutierr wrote:
> [snip long list of why read only fields in the admin could be useful]
I ask that other Django users or potential users that have good
> reasons for needing a read-only option in the admin post their reasons
> here, so
On Mar 22, 3:04 pm, Roy wrote:
> Hi,
>
> Is there a way to include additional JavaScript in the admin page for
> a particular model? I don't want to touch the model code though.
>
> The particular scenario is I want to change the flatpage edit screen
> in the admin to use a
Hi,
Is there a way to include additional JavaScript in the admin page for
a particular model? I don't want to touch the model code though.
The particular scenario is I want to change the flatpage edit screen
in the admin to use a rich-text editor (NicEdit) instead of the plain
memo box.
Hi Folks,
the problem was
def __unicode__(self):
return self.b
in model-definition
Sorry for annoyance
Timothy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Hi Folks,
create a model
a = models.DecimalField(max_digits=7, decimal_places=2, null=True)
Try do insert values in admin-form.
Get error message shown in Subject.
What happens here? And how to avoid/solve this problem?
DecimalField is premise for that field.
Thx for any help
Timothy
Dear all,
I just encounter this error using pyscopg2 as my db adapter
Exception Type: ProgrammingError
Exception Value:can't adapt
Exception Location:
/usr/lib/python2.5/site-packages/django/db/backends/util.py in
execute, line 19
The query that I'm trying to run from
Hi,
I have the following model:
class product(models.Model):
productId = models.AutoField(primary_key=True)
name = models.CharField(max_length=200, unique=True)
description = models.CharField(max_length=200, blank=True)
class Wishlist(models.Model):
Malcolm Tredinnick wrote:
> That same section of the documentation describes how to create new
> language files (scroll down a bit to where it talks about running
> django-admin.py makemessages) and has a link to the contributing
> documentation.
>
> Regards,
> Malcolm
oh.. sorry i read it less
Hi,
First of all thanks for the replies. I won't be able to try anything
until tomorrow, however it has given some food for thought.
Malcom, the three admin entries is what I'm looking for. Essentially,
I'm aiming to have the admin home page display the pages block as so:
Pages (admin group)
Hi Everybody,
I have a problem viewing my rapidsms django
application
when i use my locally installed django app by typing in the browser
http://127.0.0.1:8000
I get this error
ViewDoesNotExist at /
Could not import rapidsms.balert.views. Error was: cannot import name
Thanks. It works that way although the examples in the documentation
also show iterating through form.visible_fields which result in
nothing. This is where I came from. Any idea why that happens?
On Mar 22, 10:44 am, Daniel Roseman
wrote:
> On Mar 22, 8:20 am,
Is it normal behavior?
In example below, I try to call myapp2.view.cat2_view through "/a/"
url-path. It's calling, however another views myapp1.view.cat1_viewis
also calling with it at same time.
F:\igor\apps\devel\django\temp>django-admin.py startproject myproj
On Mar 22, 8:20 am, nivhab wrote:
> Hi,
>
> I have this problem which is probably right in front of my eyes but I
> just cannot get it. Maybe someone can point me in the right direction:
>
> I am trying to iterate through form.fields in a template.
> The form is rather
Hi,
I have this problem which is probably right in front of my eyes but I
just cannot get it. Maybe someone can point me in the right direction:
I am trying to iterate through form.fields in a template.
The form is rather simple:
class ProductForm(forms.Form):
name =
On Sun, 2009-03-22 at 14:42 +0700, Akhmat Safrudin wrote:
> Malcolm Tredinnick wrote:
> > No. This is documented here:
> > http://docs.djangoproject.com/en/dev/topics/i18n/#id1
> >
> > Regards,
> > Malcolm
>
> oh... it's well documented, sorry i missed it.
> so, how to contribute translating
Malcolm Tredinnick wrote:
> No. This is documented here:
> http://docs.djangoproject.com/en/dev/topics/i18n/#id1
>
> Regards,
> Malcolm
oh... it's well documented, sorry i missed it.
so, how to contribute translating django to other language?
thank's
On Sun, 2009-03-22 at 00:17 -0700, rihad wrote:
> From Django Book http://www.djangobook.com/en/2.0/chapter15/ :
>
> > CACHE_BACKEND = "locmem:///?timeout=30_entries=400"
>
> but, a bit later:
>
> > Then, add the following required settings to your Django settings file:
> >*
Hi James,Alex
Thank you for your help , I downgraded Django to
0.93 and it works fine.
Regards
Deepak
On Mar 22, 12:13 am, Alex Gaynor wrote:
> On Sat, Mar 21, 2009 at 3:07 PM, dbbarua wrote:
>
> > Hi ,
> > I am trying to use
I am posting this in hopes of highlighting the need within the
community for a read-only permissions option in the admin. Before
anyone accuses me of not reading prior articles or simply being a
troll, let me at least state the following:
- I am aware of the philosophy that says that my
>From Django Book http://www.djangobook.com/en/2.0/chapter15/ :
> CACHE_BACKEND = "locmem:///?timeout=30_entries=400"
but, a bit later:
> Then, add the following required settings to your Django settings file:
>* CACHE_MIDDLEWARE_SECONDS — The number of seconds each page should be
>
Hi James,Alex
Thank you for your help , I downgraded Django to
0.93 and it works fine.
Regards
Deepak
On Mar 22, 12:13 am, Alex Gaynor wrote:
> On Sat, Mar 21, 2009 at 3:07 PM, dbbarua wrote:
>
> > Hi ,
> > I am trying to use
Hi
After having done some research on my own without result, I would be
glad if someone could point me into the right direction for the
following:
How do I save and retrieve an object which is visible in all request/
response cycles
for all clients using the application, for as long as the
On Sun, 2009-03-22 at 12:13 +0700, Akhmat Safrudin wrote:
> Helo,
> is it available internationalize django app with the language not listed
> under : django/conf/global_settings.py ?
> and just add the app/myapp/locale/mylang/LC_MESSAGES/django.po ?
No. This is documented here:
62 matches
Mail list logo