Re: IntComma without RequestContext

2015-10-27 Thread Siim Märtmaa
Your language string is backwards: >>> activate("en-us") >>> intcomma(1000) '1,000' >>> activate("en") >>> intcomma(1000) '1,000' use_l10n=False in a template is: {% load l10n %} {% localize off %} {{ value }} {% endlocalize %}

Re: Standalone Project using django ORM

2015-10-27 Thread ADEWALE ADISA
The screen shot is attached. There is no error message but the trace. But the program seem stop at django.setup(). Though it ran smoothly in django 1.50 On Oct 28, 2015 12:27 AM, "Dheerendra Rathor" wrote: > Is this the full stacktrace? Looks like error message is

IntComma without RequestContext

2015-10-27 Thread Michael Newman
I am feeling a little lost, a project that I have used intcomma in reliably on an update suddenly stopped getting the commas inserted. This is for an out of request cycle email. Attempting activate the language doesn't seem to change anything. Am I missing something simple here? >>> from

Re: Standalone Project using django ORM

2015-10-27 Thread Dheerendra Rathor
Is this the full stacktrace? Looks like error message is missing in stacktrace. On Wed, 28 Oct 2015 at 04:05 ADEWALE ADISA wrote: > Hello; > I have being having issues trying to use django orm in my application. > This issues occur when using django 1.85. The application

Re: Amazon.com API

2015-10-27 Thread Ovnicraft
On Mon, Oct 26, 2015 at 4:31 PM, wrote: > First, I want to know if its possible to search for a product on > Amazon.com and before returning the product cost, do a calculation and then > spit out the result on my website. Can anyone explain in detail for an > absolute

Re: Amazon.com API

2015-10-27 Thread Luis Zárate
This is not a Django question, so I suggest you to search on web and take a look amazon API in Amazon developer's site. El lunes, 26 de octubre de 2015, escribió: > First, I want to know if its possible to search for a product on Amazon.com and before returning the

Standalone Project using django ORM

2015-10-27 Thread ADEWALE ADISA
Hello; I have being having issues trying to use django orm in my application. This issues occur when using django 1.85. The application run perfectly well on django 1.50. Bellow are the snippet : Model.py: from django.db import models class Person(models.Model): name =

Re: How to create a global management command?

2015-10-27 Thread Carl Meyer
Hi, On 10/27/2015 03:40 PM, bwv549 wrote: > I have some commands I'd like to include in the manage command (i.e., > like 'coverage'). How to make a global command? (I've written many > commands for apps, but wonder how to make one that isn't tied to any app). You can't. Management commands are

How to create a global management command?

2015-10-27 Thread bwv549
I have some commands I'd like to include in the manage command (i.e., like 'coverage'). How to make a global command? (I've written many commands for apps, but wonder how to make one that isn't tied to any app). -- You received this message because you are subscribed to the Google Groups

Safe tag is working differently for different view.

2015-10-27 Thread sonu kumar
I am having two views both are extending from same base.html and both of them have loaded same template tags, but one is escaping string using safe and other is not what could be Code view 1 {% extends 'base.html' %} {% load inplace_edit mezzanine_tags rating_tags keyword_tags comment_tags

Re: Adding gif file to existing project

2015-10-27 Thread Collin Anderson
Hi Gary, This sounds like an issue with Ninja-IDE. You could try asking on their mailing list: http://groups.google.com/group/ninja-ide/topics Thanks, Collin On Sunday, October 25, 2015 at 10:51:13 PM UTC-4, Gary Roach wrote: > > Django 1.8 > Python 3.4 > Debian 8 (jessie) with kde desktop

Re: Locking / serializing access to one element in database

2015-10-27 Thread Collin Anderson
Yes, an exception will be raised. As an example, Django uses force_insert when creating sessions: https://github.com/django/django/blob/32ef48aa562e6aaee9983f5d0f1c60f02fd555fb/django/contrib/sessions/backends/db.py#L86 On Saturday, October 24, 2015 at 2:36:15 PM UTC-4, Joakim Hove wrote: > >

Re: makemigrations and language_code

2015-10-27 Thread Collin Anderson
Hi, is libapp using ugettext_lazy? That's what the admin app is using. Collin On Thursday, October 22, 2015 at 2:53:53 AM UTC-4, Hugo Osvaldo Barrera wrote: > > > On Tue, Oct 20, 2015, at 10:39, Aron Podrigal wrote: > > Simply run > > ./manage.py makemigrations myapp > > > That will

Re: Reverse relation lookups with multidb

2015-10-27 Thread probleem support
Thanks a lot tim, this has resolved the issue. Lesson learned to jump from 1.6 to 1.8 go release by release. then i would probably seen it. Appreciated ur help do! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Reverse relation lookups with multidb

2015-10-27 Thread Tim Graham
In order to use models and their relations you have to include them in INSTALLED_APPS regardless of which database they are stored in. This is noted in the 1.7 release notes: https://docs.djangoproject.com/en/1.8/releases/1.7/#app-registry-consistency Maybe you don't want your local project to

Re: Reverse relation lookups with multidb

2015-10-27 Thread probleem support
Tim in my real project that database is a remote database, that shouldn't be in installed apps shouldn't it. but to prove my point it did it with 2 local databases in the test project. in my real project i can't do reverse lookups on the remote database models. -- You received this message

Re: Django admin add related object doesn't open popup window?

2015-10-27 Thread Tim Graham
Please check the JavaScript console in your browser to see if there are any errors. On Tuesday, October 27, 2015 at 11:18:18 AM UTC-4, j.coss...@gmail.com wrote: > > Thanks, I succesfully disabled the add related button, as a temporary > patch. > > Any ideas of why the pop-up isn't working? >

Re: how to use proper subcommands in Django 1.8?

2015-10-27 Thread bwv549
I can get basic functionality through specifying the parser_class kwarg in my add_subparsers. I've tried this both with ArgumentParser and with my own custom subclass of CommandParser that takes either CommandParser initialize methods or ArgumentParser style initialize methods. However, I

Re: Flakey tests and django.db.utils.InterfaceError: connection already closed

2015-10-27 Thread Tim Graham
A test project that reproduces the problem would be helpful. On Tuesday, October 27, 2015 at 9:14:13 AM UTC-4, Christopher R. wrote: > > Have you been able to fix the problem? I am encountering the same issue on > both Django 1.8.4 and 1.8.5. > > Any help would be appreciated. > > On Thursday,

Re: Relation fields do not support nested lookups

2015-10-27 Thread Tim Graham
As noted on the ticket, it looks like you're missing an app in INSTALLED_APPS. On Tuesday, October 27, 2015 at 10:55:21 AM UTC-4, probleem support wrote: > > test project proving my point > https://github.com/gerdkoetje/dualdbtest > -- You received this message because you are subscribed to

Re: Reverse relation lookups with multidb

2015-10-27 Thread Tim Graham
As noted on the ticket, it looks like you're missing an app in INSTALLED_APPS. On Tuesday, October 27, 2015 at 10:55:51 AM UTC-4, probleem support wrote: > > test project proving my point > https://github.com/gerdkoetje/dualdbtest > -- You received this message because you are subscribed to

how to use proper subcommands in Django 1.8?

2015-10-27 Thread bwv549
I realize that there is a LabelCommand, and that works for some things, but I would like full subcommand capabilities (in this case because I would like to have specific options for specific subcommands). I can invoke add_subparsers inside of add_arguments, but when it gets to where you take

Re: Django admin add related object doesn't open popup window?

2015-10-27 Thread j . cossio . diaz
Thanks, I succesfully disabled the add related button, as a temporary patch. Any ideas of why the pop-up isn't working? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Django admin add related object doesn't open popup window?

2015-10-27 Thread j . cossio . diaz
Thanks, I succesfully disabled the add button, as a temporary patch. Any ideas of why the popup isn't working? On Saturday, October 24, 2015 at 2:57:23 AM UTC-4, Derek wrote: > > Disable the popup ... a suggestion was made in > https://code.djangoproject.com/ticket/9071 which is: > > class

Re: Relation fields do not support nested lookups

2015-10-27 Thread probleem support
test project proving my point https://github.com/gerdkoetje/dualdbtest -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Reverse relation lookups with multidb

2015-10-27 Thread probleem support
test project proving my point https://github.com/gerdkoetje/dualdbtest -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Relation fields do not support nested lookups

2015-10-27 Thread probleem support
sorry for that, ill spend some time on creating a test project with 2 databases on sqlite But still if anyone is using multidb please confirm to me that this does work in your projects. Any hints will be appreciated -- You received this message because you are subscribed to the Google Groups

Re: Relation fields do not support nested lookups

2015-10-27 Thread Tim Graham
A minimal project that reproduces the error would be helpful. Please avoid duplicating your post on django-users and in Trac (until it's a confirmed bug in Django). Thanks! On Tuesday, October 27, 2015 at 8:53:20 AM UTC-4, probleem support wrote: > > He all, > > Does anyone know why i can't do

Re: Flakey tests and django.db.utils.InterfaceError: connection already closed

2015-10-27 Thread Christopher R.
Have you been able to fix the problem? I am encountering the same issue on both Django 1.8.4 and 1.8.5. Any help would be appreciated. On Thursday, October 8, 2015 at 3:38:16 PM UTC+1, thinkwell wrote: > > I could use some assistance in troubleshooting a psycopg2.InterfaceError > problem that

Relation fields do not support nested lookups

2015-10-27 Thread probleem support
He all, Does anyone know why i can't do any relation lookups on any database other then the default database in 1.8.5 this worked fine in 1.6.1 it keeps trowing me: Relation fields do not support nested lookups for example on adds =

Re: bug: mymodel.objects.first().get('id',None) AttributeError: 'NoneType' object has no attribute 'get'

2015-10-27 Thread Erik Cederstrand
> Den 27. okt. 2015 kl. 04.01 skrev gugeshi...@gmail.com: > > hi ,how are you > > i run > > myid=mymodel.objects.first().get('id',None) > > If there is a record, it's ok > > If there is no record, error info: > > AttributeError: 'NoneType' object has no attribute 'get' > > > If there

bug: mymodel.objects.first().get('id',None) AttributeError: 'NoneType' object has no attribute 'get'

2015-10-27 Thread gugeshi250
hi ,how are you i run *myid=mymodel.objects.first().get('id',None) * If there is a record, it's ok If there is no record, error info: *AttributeError: 'NoneType' object has no attribute 'get'* If there is a record,Can you let it return an empty dictionary, thank you -- You received