Another problem I am facing is it seems some pages are not being translated
until I hit certain page, after that everything is fine. I am not exactly
sure what the problem is but if you guys experience this problem, would
appreciate some insights.
-Aaron
On Wed, Jun 16, 2010 at 4:47 PM, Aaron
Thanks, the lazy translation solves the problem.
-Aaron
On Wed, Jun 16, 2010 at 2:59 PM, Antoni Aloy wrote:
> Try to use lazy translation.
>
> El 16/06/2010 23:09, "Aaron" escribió:
>
>
> Well what happened was I have a forms.py
>
> which has
>
>
Hi guys,
In http://www.djangobook.com/en/2.0/chapter19, there is a paragraph
Translation works on variables. Again, here’s an identical example:
def my_view(request):
sentence = 'Welcome to my site.'
output = _(sentence)
return HttpResponse(output)
(The caveat with using variables
Thanks, for some reason en_GB works (but not en-gb) and I don't see a en_GB
stub under django/conf/locale. So it seems it works in a mysterious way
-Aaron
On Thu, Apr 22, 2010 at 12:24 PM, Ramiro Morales <cra...@gmail.com> wrote:
> On Thu, Apr 22, 2010 at 3:48 PM, Aaron Lee <waifun.
Hi,
I am trying to create a UK version of my site and ran into some problems.
I am manually setting my LANGUAGE_CODE to 'en-gb' and use
django-admin.py makemessages -l en-gb and then run compilemessages
For some reason it's not picking up the localised string, I am pretty sure
my setup is
Lately I have been seeing the following errors from memcached
[fa...@1246486554.949771] mcm_get_line():1542: memcache(4) protocol error:
no \r before \n
[fa...@1246486554.949771] mcm_get_line():1542: memcache(4) protocol error:
no \r before \n
[fa...@1246486554.949771] mcm_fetch_cmd():1154:
Tracey <kmtra...@gmail.com> wrote:
> On Sat, Apr 25, 2009 at 5:07 AM, Aaron Lee <waifun...@gmail.com> wrote:
>
>> Today I just stumble upon a very strange bug and I am not sure if that's
>> Django bug or not.
>>
>> Here's the context:
>
Today I just stumble upon a very strange bug and I am not sure if that's
Django bug or not.
Here's the context:
I have a model Job which has a status field.
For debugging, I run python manage.py shell and do
jobs = Job.objects.filter(status__in=['A'])
*I am using MySQL 5.0 InnoDb*
Re-running
t 6:02 PM, Aaron Lee <waifun...@gmail.com> wrote:
>
>
> On Wed, Jan 28, 2009 at 4:44 PM, Malcolm Tredinnick <
> malc...@pointy-stick.com> wrote:
>
>>
>> On Wed, 2009-01-28 at 06:49 -0800, Aaron Lee wrote:
>> > I tried doing that but it didn't work, t
On Wed, Jan 28, 2009 at 4:44 PM, Malcolm Tredinnick <
malc...@pointy-stick.com> wrote:
>
> On Wed, 2009-01-28 at 06:49 -0800, Aaron Lee wrote:
> > I tried doing that but it didn't work, the order of names within the
> > PersonAdmin still shows the Name according to pk ord
ering = ['name']
>
> to you Name class.
> Regards, Alex A.
>
> On Dec 24 2008, 9:17 am, "Aaron Lee" <waifun...@gmail.com> wrote:
> > Hi I have a ManyToMany field names in my class and I would like to show
> the
> > names in sorted order (according t
I use a line
> like this in some of my code that uses S3Storage and it works.
>
> image_url = my_model_instance.image.url.replace ( ':80', '' )
>
> On Jan 19, 4:01 pm, "Aaron Lee" <waifun...@gmail.com> wrote:
> > Thanks for your tip, I believe your suggestion
Thanks David, but it seems awkward to call
avatar.image.storage.url(str(avatar.image))
to retrieve the URL for an ImageField.
Do you have a better way?
-Aaron
On Mon, Jan 19, 2009 at 4:02 PM, David Larlet <lar...@gmail.com> wrote:
>
>
> Le 19 janv. 09 à 22:53, Aa
"directory" in your S3 bucket?
> >
> > Have you added the following to your settings.py?
> >
> > DEFAULT_FILE_STORAGE = 'S3Storage.S3Storage'
> >
> > AWS_ACCESS_KEY_ID
> > AWS_SECRET_ACCESS_KEY
> > AWS_STORAGE_BUCKET_NAME
> > AWS_CALLING_
So I guess S3Storage doesn't work with ImageField? Can anyone confirm that?
-Aaron
On Thu, Jan 15, 2009 at 10:30 AM, Aaron <waifun...@gmail.com> wrote:
>
> ping?
>
> On Jan 12, 9:53 am, "Aaron Lee" <waifun...@gmail.com> wrote:
> > Hi all and David,
>
Hi all and David,
I followed the http://code.larlet.fr/doc/django-s3-storage.html
installation and created a simple model
class Avatar(models.Model):
"""
Avatar model
"""
image = models.ImageField(upload_to="userprofile")
user = models.ForeignKey(User)
By using the
I would like to populate a form field which uses a Select widget with
choices in views.py.
I understand I can pass the initial arg to the form but I couldn't find the
correct value to pass.
The choices is a list of tuple
CHOICES = ( ('P', 'Pending'), ('A', 'Active'), ('D', 'Done'))
Any hints?
Hi I have a ManyToMany field names in my class and I would like to show the
names in sorted order (according to 'name') in the admin interface when I
edit a Person. Right now it's showing by the pk order of Name. What's the
right way to override this order? Thanks
class Name(models.Model):
name
I found this wiki and seems pretty useful in general, is there any reason
why it's not included in Django by default?
http://code.djangoproject.com/wiki/BasicComparisonFilters
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
On Sat, Nov 29, 2008 at 12:24 PM, Justin Bronn <[EMAIL PROTECTED]> wrote:
>
> > I do have a few basic questions
> > - on slide 37, there's a Zipcode model, how does one populate this model?
> > Are we using fe_2007_us_zcta500.shp? If so, is there a program which
> > converts the zipcode shape
Hi all,
I am checking out GeoDjango and going through the installation and
presentation.
I esp. like this one which is very well done
http://geodjango.org/presentations/GeoDjango%20-%20A%20world-class%20Geographic%20Web%20Framework%20(DjangoCon%20-%20Sept.%206,%202008).pdf
I do have a few basic
Hi,
I am a bit confused about the best practices for using the django-tagging.
>From the docs/overview.txt. It seems you can either have the tags
stored inside a model OR you can have them stored on the tagging_tag
table.
E.g.
class Link(models.Model):
...
def add_tag(self,
22 matches
Mail list logo