>
>> 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,
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
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
> 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
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
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
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
(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
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
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
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
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
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
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
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
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
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
>
> 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
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
> 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
>
> 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
> 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
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,
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*
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
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
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
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
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 =
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
> 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?
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
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
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
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
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
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
37 matches
Mail list logo