Re: Japanese (unofficial) Django Users is launched

2006-03-25 Thread lawgon
> >> w00t - but why unofficial? > > Because it's just not official! > > I added Japanese i18n file December 2005. > Then I talked about Django at Python Japanese Users Group's Workshop in > January 2006. > And I'm going to having a panel discussion about > Python Framework(Django, TurboGears,

Re: FileField permissions

2006-03-25 Thread Ivan Sagalaev
sam wrote: >I want to use FileField to upload files but I don't want the file URIs >directly visible to the user. > Simple way is just to no tell them the URL (i.e. not using {{ object.get_field_url }} in templates). Another way is to copy files to the directory inaccessible from web upon

Re: Grabbing values from project settings

2006-03-25 Thread Ivan Sagalaev
mateja wrote: >As you can see, I load the mediaurl filter, and then inject the >media_url value. My question is, is this the right way to do this? > One of the ways, at least. I'm doing it another way using context processor to populate template's context with selected values from settings

Re: Japanese (unofficial) Django Users is launched

2006-03-25 Thread everes
> w00t - but why unofficial? Because it's just not official! I added Japanese i18n file December 2005. Then I talked about Django at Python Japanese Users Group's Workshop in January 2006. And I'm going to having a panel discussion about Python Framework(Django, TurboGears, web.py) at Ptyhon

Re: FileField permissions

2006-03-25 Thread ye
I would like to know how exactly this can be done within Django framework :-) --~--~-~--~~~---~--~~ 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

Re: Model inheritance

2006-03-25 Thread James Bennett
On 3/25/06, Andy Dustman <[EMAIL PROTECTED]> wrote: > Surprisingly (a bit, at least), I created an app with the example model: ..snip... > Which is not what you'd expect based on that page, so presumably the > changes haven't been implemented yet. Or is the page obsolete? I'd > assume not since

Re: FileField permissions

2006-03-25 Thread Julio Nobrega
What kind of file? What I do (in PHP, but the principle is the same) is to pass the filename linked to a page: download.php?filename=something.ext And on download.php I get the file ID based on its name, check if the user has permissions to access it, and then send some headers to serve it

Model inheritance

2006-03-25 Thread Andy Dustman
(Maybe this should go to django-developers, but I'm still a relative noob on Django.) I've been reading (and making some notes on) this page: http://code.djangoproject.com/wiki/ModelInheritance Surprisingly (a bit, at least), I created an app with the example model: {{{ class

Grabbing values from project settings

2006-03-25 Thread mateja
Hey all, I've configured django with Apache and mod_python, and I have Apache serving static media. If all media is to have a MEDIA_URL prefix, how do I grab this value out of the project settings? Currently, my solution is to write a filter, like so: in

FileField permissions

2006-03-25 Thread sam
I want to use FileField to upload files but I don't want the file URIs directly visible to the user. Rather, I want to service the access to the uploaded files via "views", so that I can exercise file access permission (I implemented access permission myself, without using django admin's). I

Re: Japanese (unofficial) Django Users is launched

2006-03-25 Thread Eugene Lazutkin
My congratulations! Back in November 2005 I looked at Django internalization system, when it had 11 locales. The Japanese locale was not among them. Now Django has Japanese support and even getting Japanese Django Users Group! Wow! You went a long way! Thanks, Eugene everes wrote: > Dear

Re: Form field

2006-03-25 Thread limodou
On 3/25/06, PythonistL <[EMAIL PROTECTED]> wrote: > > Limodou, > Thank you for your reply. > But how can I extend the code, or how to change manipulators? > Thanks for reply > L. > If you want to extend the django code, you could derive form FormField or its subclass, and override the render

Re: Form field

2006-03-25 Thread Julio Nobrega
Some uses of disabled inputs are good. For example one with a default value and a checkbox next to it that when clicked allows you to edit the input content. Or a game where you must complete some task before a certain time-limit is reached and the input becomes uneditable. Or a html

Re: ImageField nightmares

2006-03-25 Thread Wilson Miner
I've had similar problems with using an image field as the core field in an edit_inline relationship. When an object with an edit_inline relationship is saved, the admin checks if the core fields on any of th erelated objects are blank, and if so, it deletes that related object. aWhat happens

Re: ImageField nightmares

2006-03-25 Thread nate-django
On Sat, Mar 25, 2006 at 07:35:46AM -0800, sparkydeville wrote: > To clarify the use-case, consider an article like an image gallery, > wherein one article can have more than one image associated with it. > Further it would be helpful if the Article add/edit form could allow > users to add images

Re: Form field

2006-03-25 Thread Glenn Tenney
On Sat, Mar 25, 2006 at 11:15:17PM +0800, limodou wrote: > On 3/25/06, PythonistL <[EMAIL PROTECTED]> wrote: > > Is it possible to have a field in a form that a user can not edit? > > I think django doesn't support these input attribute, so you should > extend the code or write the html code

Re: Advice on developing with django for a team of 10+

2006-03-25 Thread tonemcd
Ah, that explains things, thanks for that Fredrik. I guess I'm showing my Zope roots - not too much is done on the command line with Zope ;) Cheers, Tone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Japanese (unofficial) Django Users is launched

2006-03-25 Thread lawgon
> > Dear django-users, > > We are pleased to announce the launch of Japanese (unofficial) Django > Users' w00t - but why unofficial? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Form field

2006-03-25 Thread Don Arbow
The purpose of an input field is to accept input, if you want to display uneditable text, you can just display it without using an input field. To get any more advanced, you might be able to do something with Javascript or CSS, but I would think that would be confusing to a user who sees

Re: ManyToManyField corrupts headers

2006-03-25 Thread lawgon
> Anyway take a look at http://firstvds.ru/. They give you a "virtual > dedicated server" which is basically a hosting where you can install > system software for yourself (like mod_python). I'm not in any way > connected to them in anyway, just heard about it. i agree - as far a django is

Re: Form field

2006-03-25 Thread lawgon
> > Is it possible to have a field in a form that a user can not edit? anything is possible if you do it manually - maybe after MR you would be able to do some overide thingie to do it automatically --~--~-~--~~~---~--~~ You received this message because you

Re: ManyToManyField corrupts headers

2006-03-25 Thread burivuh
> Anyway take a look at http://firstvds.ru/. They give you a "virtual > dedicated server" which is basically a hosting where you can install > system software for yourself (like mod_python). I'm not in any way > connected to them in anyway, just heard about it. Sometimes client already has

Re: Need help for query, how could i do this with django ? or a raw SQL.

2006-03-25 Thread Andy Dustman
On 3/25/06, coulix <[EMAIL PROTECTED]> wrote: > > i got it working : > > def _module_get_top_users(limit): > cursor = db.cursor() > cursor.execute(""" > SELECT auth_users.username, COUNT(*) AS count > FROM auth_users,

Re: ImageField nightmares

2006-03-25 Thread sparkydeville
Thank you Ivan, Law and Malcolm for the fast, and helpful replies... problems persist. I fixed the syntax error in the __repr__ of the Article class, and while I'm no longer getting "Django blowup errors", there are other bugs to contend with. Also, the full path to the upload directory *works*

Re: Form field

2006-03-25 Thread PythonistL
Limodou, Thank you for your reply. But how can I extend the code, or how to change manipulators? Thanks for reply L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Form field

2006-03-25 Thread limodou
On 3/25/06, PythonistL <[EMAIL PROTECTED]> wrote: > > Is it possible to have a field in a form that a user can not edit? > I think django doesn't support these input attribute, so you should extend the code or write the html code manually, just like: or maybe django can support these

Form field

2006-03-25 Thread PythonistL
Is it possible to have a field in a form that a user can not edit? Thank you for reply Regards, L --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: ImageField nightmares

2006-03-25 Thread Malcolm Tredinnick
On Sat, 2006-03-25 at 01:30 -0800, sparkydeville wrote: > Hi all > > I'm new to Django, and I'm seeing various complaints about the > ImageField, specifically it's basic inability to work as advertised. I > think I've tried every permutation of trying to make it accomplish the > simple task of

Get current user ID in _pre_save() function

2006-03-25 Thread Gacha
I created a simple model "articles" and I added field: author = meta.ForeignKey(User,editable=False) When I add new artcicle I want to assign to this field the current user ID, but so far no luck :( I tryed: def _pre_save(self): from django.models.auth.users import User self.author =

Japanese (unofficial) Django Users is launched

2006-03-25 Thread everes
Dear django-users, We are pleased to announce the launch of Japanese (unofficial) Django Users' Group: django-ja and its website, http://www.djangoproject.jp/. As the first Japanese community dedicated to Django, we will make every effort to illustrate Django for all Japanese web perfectionists

Re: ImageField nightmares

2006-03-25 Thread lawgon
> image_caption = meta.CharField(maxlength=256, blank=True) > the_image = > meta.ImageField(upload_to='/home/sparky/django_instances/gbtt/media/editorial_u\ > ploads/', core=True) give a relative path for upload_to - what is the error message?

Re: ManyToManyField corrupts headers

2006-03-25 Thread Ivan Sagalaev
burivuh wrote: >We're planning to use Django on all web projects - large and small, so >sometimes the only platform for the small site is shared-hosting >without mod_python or python2.4 at all. Python in Russia is not a >widespread language. > > Looking at how many russian names are in this

Re: ImageField nightmares

2006-03-25 Thread Ivan Sagalaev
sparkydeville wrote: >I'm new to Django, and I'm seeing various complaints about the >ImageField, specifically it's basic inability to work as advertised. > Could you, please, clarify what exactly doesn't work in regard to image fields? My experience is that they are succesfully storing and

Re: syntax error with tutorial1 in "python manage.py sql polls" step

2006-03-25 Thread bruno modulix
maphew a écrit : > Hi, at the ''python manage.py sql polls'' step of the > [http://www.djangoproject.com/documentation/tutorial1/ poll tutorial] I > get a syntax error: (snip) > mod = __import__('django.models.%s' % submodule, '', '', ['']) > File

Re: Assigning default value for field in admin

2006-03-25 Thread Daniel Bimschas
Hmm, really seems to be a problem. Does anybody know if the _post_save()-method is called BEFORE or AFTER the data is written to the django_admin_log-table? You could solve this issue by querying the django_admin_log-table and receiving the newest entry for the newly created or updated

Re: ManyToManyField corrupts headers

2006-03-25 Thread burivuh
Hi to All! Thanks for solving this problem, Adrian. We're planning to use Django on all web projects - large and small, so sometimes the only platform for the small site is shared-hosting without mod_python or python2.4 at all. Python in Russia is not a widespread language. That's why in some

ImageField nightmares

2006-03-25 Thread sparkydeville
Hi all I'm new to Django, and I'm seeing various complaints about the ImageField, specifically it's basic inability to work as advertised. I think I've tried every permutation of trying to make it accomplish the simple task of working as part of an "image gallery" and "image" model, although in