Re: Response wit File Name

2008-07-09 Thread jurian

So the the filename is then determined by the browser, of course! That
makes sense. Thanks.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Response wit File Name

2008-07-09 Thread jurian

Is there any way to specify the filename that a HTTPResponse will be
saved as on the browser side?

(without using the 'Content-Disposition' header, I see many responses
with filenames that don't use this header)
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Unable to upload PNG's

2008-06-27 Thread jurian

Seems like PIL doesn't like interlaced PNG's.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Unable to upload PNG's

2008-06-24 Thread jurian

Thanks for that! I think there might be a link missing in your
message.

I did that search and it didn't bring up anything really useful.

I tried linking to the 'zlib' headers in the 'setup.py' manually as
one post suggested, but it had no effect after a rebuild and install.
The installation message still says that PNG are supported, but they
don't want to be accepted.

Has any one been able to resolve this issue?
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Unable to upload PNG's

2008-06-23 Thread jurian

I am currently getting an error when I attempt to upload a PNG image
from the admin side.

Error: Upload a valid image. The file you uploaded was either not an
image or a corrupted image.

There is nothing wrong with the image, and I've made sure that my PIL
is setup correctly.


PIL 1.1.6 BUILD SUMMARY

version   1.1.6
platform  linux2 2.5.2 (r252:60911, Mar 27 2008, 15:17:32)
  [GCC 4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2)]

*** TKINTER support not available
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok


Any clues will be appreciated, thanks.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: createsuperuser error

2008-06-19 Thread jurian

I see now that this error doen not occur on an older version of the
'newforms-admin' branch, so I assume that something was broken with a
recent update.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



createsuperuser error

2008-06-19 Thread jurian

I'm getting the following error message when I try to run syncdb:

Error: Unknown command: 'createsuperuser'

All the tables are created, but as soon as it enter 'yes' to create
the super user the error appears.

I've got no clue as to what might be causing the problem.

I'm using the latest 'newforms-admin' from SVN.

Thanks
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Changing admin index

2008-06-17 Thread jurian

I think there should be a better way to do this.

I believe that there should be a way to override the admin index for
each application separately. It would also have to be a way to specify
the way these templates are displayed.

I'm currently trying to override the admin index of one application,
but I would still like the other applications to behave normally.

Should this discussion be moved to the developers group?

Tx
Jurie-Jan
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Application Concepts

2008-04-10 Thread jurian

Does anyone else think I should add a ticket request for this as a
future feature?


On Apr 9, 7:32 pm, Waldemar Kornewald <[EMAIL PROTECTED]> wrote:
>
> Most of this can be automated (scanning installed apps for media
> folders, generating urlpatterns, etc.) and IMHO Django should provide
> a standard mechanism to do this.
>
> Bye,
> Waldemar Kornewald
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Selecting Python version for mod_python

2008-04-09 Thread jurian

How can I go about selecting the python version for mod_python to use?

Using PythonPath doesn't seem to be the way to do this, as stated in
the mod_python documentation, this strign is evaluated. This means
that a python version has to be selected before the PythonPath
directive is processed.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Application Concepts

2008-04-08 Thread jurian

I like that concept.

How does one go about including media files required for an
application to function then?
(I don't really know how to do this in the project/app configuration
either)

James Bennett wrote:
> On Tue, Apr 8, 2008 at 1:38 AM, jurian <[EMAIL PROTECTED]> wrote:
> >  Are django applications meant to be implemented in such a manner as to
> >  allow the entire application directory to be copied into another
> >  project and used without having to alter any of the code?
>
> Though I often get flamed for saying this:
>
> Django applications should be implemented as Python modules that live
> standalone directly on the import path. If you have an application
> directly inside a project folder and it's not the poll app from the
> tutorial, something is wrong.
>
>
> --
> "Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Application Concepts

2008-04-07 Thread jurian

Are django applications meant to be implemented in such a manner as to
allow the entire application directory to be copied into another
project and used without having to alter any of the code?
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Model Absolute URL

2008-03-31 Thread jurian

I'm using this URL as a value in a select box. The select box lists
all related models which can be added to the current object.

I want to be able to get the absolute 'add' page URL for each model.


On Mar 31, 10:17 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-03-31 at 01:01 -0700, jurian wrote:
> > Is there any way apart from the following to get the absolute URL of
> > an object?
>
> There is no canonical "absolute URL" for an object. It's one of the
> things you define (in the get_absolute_url() method of the model). So
> the absolute URL can be anything you want.
>
> It looks, from below, however, as if you're actually wanting a URL for
> creating a new model type (which is an object that doesn't exist yet).
>
>
>
> > opts = model._meta
> > url = "../../../%s/%s/add/" % (opts.app_label.lower(),
> > opts.object_name.lower())
>
> You seem to be trying to access the "add" page in the admin interface
> for a model of that type. Is that correct? In any case, what you've
> written there is a relative URL, so it isn't useful in all situations
> (what is it relative to?).
>
> Perhaps you should explain what problem you are trying to solve and we
> might be able to help. What are you wanting to with this particular
> string you are constructing?
>
> Regards,
> Malcolm
>
> --
> If you think nobody cares, try missing a couple of 
> payments.http://www.pointy-stick.com/blog/
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Model Absolute URL

2008-03-31 Thread jurian

Is there any way apart from the following to get the absolute URL of
an object?

opts = model._meta
url = "../../../%s/%s/add/" % (opts.app_label.lower(),
opts.object_name.lower())
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Model Inheritance

2008-03-30 Thread jurian

It's working on the latest development release. Does that mean I
should move this discussion to the developers group?


On Mar 31, 5:01 am, David Marquis <[EMAIL PROTECTED]> wrote:
> I think that Django does not support model inheritance (yet).
> The dev team seems to have thought about it 
> :http://code.djangoproject.com/wiki/ModelInheritance
>
> You might want to ask Google for "django model inheritance" for all
> the information you need.
>
> --
> David
>
> On 30-Mar-08, at 4:27 PM, jurian wrote:
>
>
>
> > How would I go about implementing a model that only exists to be
> > inherited from and not used on it's own?
>
> > Example:
>
> > class Animal(models.Model):
> > name = models.CharField()
>
> > class Dog(Animal):
> > x = models.CharField()
>
> > class Cat(Animal):
> > y = models.CharField()
>
> > In the example I want to create and manipulate dog and cat objects,
> > but I will never need to use animal objects, so the animal table
> > doesn't need to be created at all.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Model Inheritance

2008-03-30 Thread jurian

How would I go about implementing a model that only exists to be
inherited from and not used on it's own?

Example:

class Animal(models.Model):
 name = models.CharField()

class Dog(Animal):
 x = models.CharField()

class Cat(Animal):
 y = models.CharField()


In the example I want to create and manipulate dog and cat objects,
but I will never need to use animal objects, so the animal table
doesn't need to be created at all.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---