Re: Chat application

2014-06-18 Thread carlos
Hi, maybe not all with django, maybe you need learn gevent
http://www.gevent.org/
socket.io
http://socket.io/
 and here is example for a chat with redis and django + gevent + socketio
etc.
https://github.com/rlr/django-gevent-socketio-redis-chat-example

Cheers


On Wed, Jun 18, 2014 at 4:46 PM, Pedro  wrote:

> Hello,
>
> i'm working in a mobile app that depends of a Django server (to manage
> user data and stuff).
> This mobile app is about a social network with users interacting. It
> should have a chat system, where two or more users can send and receive
> messages and photos.
>
> I'm thinking in the best way to implement the communication and the model
> on the server. My first idea is to use a simple model with rooms and
> messages (each message belong to a room). To send messages from a client to
> the server, i think i could use http requests, like GETs and POSTs, where i
> would implement syncronization methods and stuff.
>
> Is this the best approach to solve this problem on Django?
>
>
> --
> Pedro Alves
>
> *Mestrando em Ciência da Computação*
> *Universidade Estadual de Campinas*
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACW_pa0Dfom4Eydop5qedMMP5fbuBx-yZAUgDrhDApfewDFWbQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM-7rO0052uKjqh%3D5UEt-%2BGo1-muj3k-Yu7%2BFKjVFLCOTLi2AA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Stack Overflow Open Source Advertising, 2H 2014

2014-06-18 Thread Russell Keith-Magee
Hi Jorge,

On Wed, Jun 18, 2014 at 3:21 PM, Jorge Cardoso Leitão <
jorgecarlei...@gmail.com> wrote:

> Hi Russell,
>
> Thank you for raising these concerns here.
>
> It would be a pleasure to me to represent the Django project but I'm not
> sure that this is the case here, and surely was not my intention!
>
> That post was added as a SO member who is thrilled about a project and
> wanted to promote it to other SO members to contribute, not as the project
> representative.
>
> I see two questions here:
>
> 1. Does Django foundation has trademark concerns about it being publicised
> by SO members to promote contributing to Django in SO?
>
> Since you raised some concerns and I'm no legal expert, I retracted the
> post. Maybe this should be clarified at some point.
>

The legal standing of the Django trademark is well documented, and there's
a FAQ for how you can use it; see:

http://djangoproject.com/trademarks/

The intention of this license is *not* to prevent people from using the
Django trademark to represent the community. We *want* people to use the
Django trademark. However, we have to make sure the trademark isn't left
vulnerable to exploitation.


> 2. Does Django project wants to participate in this program? (in the
> representative sense)
>
> It interpret your reply as that at least you don't oppose, so I try to
> bring this to django-dev after 1.7 is out.
>

It certainly looks like an interesting opportunity. What we really need is
a volunteer to drive the effort. You look like you've volunteered for the
job :-)

I also wouldn't wait for 1.7 - it looks like this is a time sensitive, and
it's difficult to give a firm deadline for the release of 1.7 final.

My intention with my original mail wasn't to wave you off contributing; it
was to make sure that you are aware that if you're representing the
project, you need to use our trademarks correctly. If you don't, you weaken
our claim on the *actual* trademarks. I also wanted to make sure that the
final product meets the high graphical standards that the Django community
tries to maintain.

So - please - feel free to contribute an ad to this program; just keep in
mind the two points that I mentioned in my original email.

Yours,
Russ Magee %-)

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJxq84-KFbM%3D%2B_f6Om20SkwTNYGtoeropw%3DuY58Dd6X_rcv56A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Chat application

2014-06-18 Thread Pedro
Hello,

i'm working in a mobile app that depends of a Django server (to manage user
data and stuff).
This mobile app is about a social network with users interacting. It should
have a chat system, where two or more users can send and receive messages
and photos.

I'm thinking in the best way to implement the communication and the model
on the server. My first idea is to use a simple model with rooms and
messages (each message belong to a room). To send messages from a client to
the server, i think i could use http requests, like GETs and POSTs, where i
would implement syncronization methods and stuff.

Is this the best approach to solve this problem on Django?


--
Pedro Alves

*Mestrando em Ciência da Computação*
*Universidade Estadual de Campinas*

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACW_pa0Dfom4Eydop5qedMMP5fbuBx-yZAUgDrhDApfewDFWbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: All tests fail with TypeError: isinstance() arg 2 must be a type or tuple of types

2014-06-18 Thread Sceva
Deleted all the migration files, re-ran makemigrations and migrate, and 
errors disappeared.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b9e74e41-d9d4-4215-bc04-511a584278d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Language code issue - Django thinks default is en-us?

2014-06-18 Thread Stodge
By override I mean I add this at the start of my handle() function in my 
custom management command:

from django.utils import translation
translation.activate(settings.LANGUAGE_CODE)

Where settings.LANGUAGE_CODE = "en-gb".

Calling get_language in my custom management command still returns "en-us".

On Wednesday, 18 June 2014 13:58:05 UTC-4, James Bennett wrote:
>
> On Wed, Jun 18, 2014 at 10:21 AM, Stodge  
> wrote:
>
>> Even when I override the language code in my custom command 
>> get_language() still returns "en-us". Weird. Guess I'll have to use 
>> settings.LANGUAGE_CODE instead of get_language().
>>
>
> Define what you mean by "override the language code". Are you doing what 
> the documentation you linked to says to do in order to activate the locale 
> you want? 
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/277681e8-81c0-466f-814e-e55b8315019c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any position for Django/Python Developer?

2014-06-18 Thread carlos
Hi or maybe look for odesk.com and similar website for freelancer


On Wed, Jun 18, 2014 at 10:31 AM, Huy T  wrote:

> If you want to relocate why not select some target cities.
>
> Otherwise why not search dice.com (job board) and google perhaps.
>
> On Jun 18, 2014, at 11:08 AM, Kannan  wrote:
>
> Guys,
> I have not got a single reply.
> Please let me know where I can search for a remote job or part time job in
> Python/Django technologies.
>
>
> On Tue, Jun 17, 2014 at 5:48 PM, Kannan  wrote:
>
>>
>> Hi All,
>> I am looking for job for Django Developer. And I am ready to work on part
>> time role also.
>> I have 3 year of experience as a Software Developer, and if anyone
>> accepting my application, please send me an email. I will send you the
>> resume.
>>
>> Email: kanna...@gmail.com
>>
>> Note: I am living in India, and ready to relocate or ready to work remote.
>>
>> --
>> With regards,
>>
>> Kannan. R. P,
>> Blog @: http://kannan4k.wordpress.com/
>>
>
>
>
> --
> With regards,
>
> Kannan. R. P,
> Blog @: http://kannan4k.wordpress.com/
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL4xV_A85m1%3DSv92tiVwYD%2BPK7QkwpZ1YRC%3DC9X7p7RUz5JHuQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>  --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6618C9BC-4CF1-4B9D-8FD1-9C2587F4E69B%40gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM-7rO1i%2BEo2vuwLAuuhmnWrbCa2JRJih7rSGpvBsL33K%3D4_EA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Language code issue - Django thinks default is en-us?

2014-06-18 Thread James Bennett
On Wed, Jun 18, 2014 at 10:21 AM, Stodge  wrote:

> Even when I override the language code in my custom command get_language()
> still returns "en-us". Weird. Guess I'll have to use settings.LANGUAGE_CODE
> instead of get_language().
>

Define what you mean by "override the language code". Are you doing what
the documentation you linked to says to do in order to activate the locale
you want?

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL13Cg-mTRbRRmp8mFQeEASsQqJtDrDULSYYo0q0r7HaRofBxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: Language code issue - Django thinks default is en-us?

2014-06-18 Thread Ilya Kazakevich
Oh, sorry, I forgot it is about manage command.

Try to disable USE_I18N (USE_I18N = False) and check if it works.

See "django\utils\translation\__ini__.py" in your site-libs for details (class 
Trans, its getattr and  get_language() function)



Ilya Kazakevich,
JetBrains PyCharm (Best Python/Django IDE)
http://www.jetbrains.com/pycharm/
"Develop with pleasure!"


>-Original Message-
>From: django-users@googlegroups.com
>[mailto:django-users@googlegroups.com] On Behalf Of Stodge
>Sent: Wednesday, June 18, 2014 9:51 PM
>To: django-users@googlegroups.com
>Cc: ilya.kazakev...@jetbrains.com
>Subject: Re: Language code issue - Django thinks default is en-us?
>
>This has nothing to do with the browser - it's a post save signal that executes
>inside a custom management command.
>
>Thanks again
>
>On Wednesday, 18 June 2014 13:48:41 UTC-4, Ilya Kazakevich wrote:
>
>   LocaleMiddleware sets your language to one, provided by your webbrowser.
>   Tty to disable LocaleMiddleware or configure your browser to use 
> different
>language
>(http://stackoverflow.com/questions/7769061/how-to-add-custom-accept-langu
>ages-to-chrome-for-pseudolocalization-testing
>ages-to-chrome-for-pseudolocalization-testing> )
>
>
>   Ilya Kazakevich,
>   JetBrains PyCharm (Best Python/Django IDE)
>   http://www.jetbrains.com/pycharm/
>
>   "Develop with pleasure!"
>
>
>   >-Original Message-
>   >From: django...@googlegroups.com 
>   >[mailto:django...@googlegroups.com  ] On Behalf Of Stodge
>   >Sent: Wednesday, June 18, 2014 9:42 PM
>   >To: django...@googlegroups.com 
>   >Cc: ilya.ka...@jetbrains.com 
>   >Subject: Re: Language code issue - Django thinks default is en-us?
>   >
>   >Thanks. I am using LocaleMiddleware. I changed my languages to:
>   >
>   >LANGUAGE_CODE = 'en-gb'
>   >USE_I18N = True
>   >LANGUAGES = (
>   >
>   >('en-gb', ugettext('English')),
>   >('de', ugettext('German')),
>   >('fr', ugettext('French'))
>   >)
>   >
>   >But I'm still getting en-us.
>   >
>   >On Wednesday, 18 June 2014 13:29:45 UTC-4, Ilya Kazakevich wrote:
>   >
>   >1) Try to debug your code. Django is open source and sources 
> are
>available:)
>   >2) Do you have LocaleMiddleware installed?
>   >3) Do not use bare language, use language-region
>   >(http://www.i18nguy.com/unicode/language-identifiers.html
>
>   > > ) : en-gb, en-us,
>   >en-bb and so on
>   >4) It is generally bad idea to depend on LANGUAGE_CODE. You
>should use
>   >get_language() to support I18N
>   >
>   >Ilya Kazakevich,
>   >JetBrains PyCharm (Best Python/Django IDE)
>   >http://www.jetbrains.com/pycharm/
>
>   > >
>   >"Develop with pleasure!"
>   >
>   >
>   >>-Original Message-
>   >>From: django...@googlegroups.com 
>   >>[mailto:django...@googlegroups.com  ] On Behalf
>Of Stodge
>   >>Sent: Wednesday, June 18, 2014 9:21 PM
>   >>To: django...@googlegroups.com 
>   >>Subject: Re: Language code issue - Django thinks default is
>en-us?
>   >>
>   >>Even when I override the language code in my custom
>command
>   >get_language()
>   >>still returns "en-us". Weird. Guess I'll have to use
>   >settings.LANGUAGE_CODE
>   >>instead of get_language().
>   >>
>   >>On Wednesday, 18 June 2014 13:02:37 UTC-4, Stodge wrote:
>   >>
>   >>Oh.
>   >>
>   >>
>   >https://docs.djangoproject.com/en/dev/howto/custom-management-com
>
>   >m  >
>   >>mands/#management-commands-and-locales
>   >>gement-co
>
>   >mman
>   >mman
>>
>   >>
>   >>ds/#management-commands-and-locales>
>   >>
>   >>I forgot to mention that the signal is executed as a
>result of a
>   >loaddata
>   > 

RE: Language code issue - Django thinks default is en-us?

2014-06-18 Thread Ilya Kazakevich
LocaleMiddleware sets your language to one, provided by your webbrowser.
Tty to disable LocaleMiddleware or configure your browser to use different 
language 
(http://stackoverflow.com/questions/7769061/how-to-add-custom-accept-languages-to-chrome-for-pseudolocalization-testing)


Ilya Kazakevich,
JetBrains PyCharm (Best Python/Django IDE)
http://www.jetbrains.com/pycharm/
"Develop with pleasure!"


>-Original Message-
>From: django-users@googlegroups.com
>[mailto:django-users@googlegroups.com] On Behalf Of Stodge
>Sent: Wednesday, June 18, 2014 9:42 PM
>To: django-users@googlegroups.com
>Cc: ilya.kazakev...@jetbrains.com
>Subject: Re: Language code issue - Django thinks default is en-us?
>
>Thanks. I am using LocaleMiddleware. I changed my languages to:
>
>LANGUAGE_CODE = 'en-gb'
>USE_I18N = True
>LANGUAGES = (
>
>('en-gb', ugettext('English')),
>('de', ugettext('German')),
>('fr', ugettext('French'))
>)
>
>But I'm still getting en-us.
>
>On Wednesday, 18 June 2014 13:29:45 UTC-4, Ilya Kazakevich wrote:
>
>   1) Try to debug your code. Django is open source and sources are 
> available:)
>   2) Do you have LocaleMiddleware installed?
>   3) Do not use bare language, use language-region
>(http://www.i18nguy.com/unicode/language-identifiers.html
> ) : en-gb, en-us,
>en-bb and so on
>   4) It is generally bad idea to depend on LANGUAGE_CODE. You should use
>get_language() to support I18N
>
>   Ilya Kazakevich,
>   JetBrains PyCharm (Best Python/Django IDE)
>   http://www.jetbrains.com/pycharm/
>
>   "Develop with pleasure!"
>
>
>   >-Original Message-
>   >From: django...@googlegroups.com 
>   >[mailto:django...@googlegroups.com  ] On Behalf Of Stodge
>   >Sent: Wednesday, June 18, 2014 9:21 PM
>   >To: django...@googlegroups.com 
>   >Subject: Re: Language code issue - Django thinks default is en-us?
>   >
>   >Even when I override the language code in my custom command
>get_language()
>   >still returns "en-us". Weird. Guess I'll have to use
>settings.LANGUAGE_CODE
>   >instead of get_language().
>   >
>   >On Wednesday, 18 June 2014 13:02:37 UTC-4, Stodge wrote:
>   >
>   >Oh.
>   >
>   >
>https://docs.djangoproject.com/en/dev/howto/custom-management-com
>
>   >mands/#management-commands-and-locales
>   >mman
>>
>   >ds/#management-commands-and-locales>
>   >
>   >I forgot to mention that the signal is executed as a result of 
> a
>loaddata
>   >management command. So management commands don't respect
>   >settings.LANGUAGE_CODE? That makes no sense.
>   >
>   >On Wednesday, 18 June 2014 12:48:47 UTC-4, Stodge wrote:
>   >
>   >My settings for languages are:
>   >
>   >
>   >LANGUAGE_CODE = 'en'
>   >
>   >
>   >USE_I18N = True
>   >
>LANGUAGE_COOKIE_NAME='django_language'
>   >ugettext = lambda s: s
>   >LANGUAGES = (
>   >('en', ugettext('English')),
>   >('de', ugettext('German')),
>   >('fr', ugettext('French'))
>   >)
>   >
>   >
>   >I have a post-save signal that creates instances of a
>model and gets the
>   >current Django language. The language returned is for some reason
>"en-us", but
>   >I have no idea where this is coming from. My default as shown above is
>"en".
>   >get_language() is called from within a signal so the language isn't 
> being
>taken
>   >from a cookie or request header. Any ideas why Django thinks the 
> current
>   >(default) language is "en-us"? Thanks
>   >
>   >
>   >--
>   >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
>   >django-users...@googlegroups.com  .
>   >To post to this group, send email to django...@googlegroups.com
> .
>   >Visit this group at http://groups.google.com/group/django-users
> .
>   >To view this discussion on the web visit
>   >https://groups.google.com/d/msgid/django-users/d5dcf509-a634-4f46-940
>c-8e0
>0>
>   >ee6c0ee69%40googlegroups.com
>   >0c-8e

Re: Language code issue - Django thinks default is en-us?

2014-06-18 Thread Stodge
This has nothing to do with the browser - it's a post save signal that 
executes inside a custom management command.

Thanks again

On Wednesday, 18 June 2014 13:48:41 UTC-4, Ilya Kazakevich wrote:
>
> LocaleMiddleware sets your language to one, provided by your webbrowser. 
> Tty to disable LocaleMiddleware or configure your browser to use different 
> language (
> http://stackoverflow.com/questions/7769061/how-to-add-custom-accept-languages-to-chrome-for-pseudolocalization-testing)
>  
>
>
>
> Ilya Kazakevich, 
> JetBrains PyCharm (Best Python/Django IDE) 
> http://www.jetbrains.com/pycharm/ 
> "Develop with pleasure!" 
>
>
> >-Original Message- 
> >From: django...@googlegroups.com  
> >[mailto:django...@googlegroups.com ] On Behalf Of Stodge 
> >Sent: Wednesday, June 18, 2014 9:42 PM 
> >To: django...@googlegroups.com  
> >Cc: ilya.ka...@jetbrains.com  
> >Subject: Re: Language code issue - Django thinks default is en-us? 
> > 
> >Thanks. I am using LocaleMiddleware. I changed my languages to: 
> > 
> >LANGUAGE_CODE = 'en-gb' 
> >USE_I18N = True 
> >LANGUAGES = ( 
> > 
> >('en-gb', ugettext('English')), 
> >('de', ugettext('German')), 
> >('fr', ugettext('French')) 
> >) 
> > 
> >But I'm still getting en-us. 
> > 
> >On Wednesday, 18 June 2014 13:29:45 UTC-4, Ilya Kazakevich wrote: 
> > 
> >1) Try to debug your code. Django is open source and sources are 
> available:) 
> >2) Do you have LocaleMiddleware installed? 
> >3) Do not use bare language, use language-region 
> >(http://www.i18nguy.com/unicode/language-identifiers.html 
> > ) : en-gb, 
> en-us, 
> >en-bb and so on 
> >4) It is generally bad idea to depend on LANGUAGE_CODE. You 
> should use 
> >get_language() to support I18N 
> > 
> >Ilya Kazakevich, 
> >JetBrains PyCharm (Best Python/Django IDE) 
> >http://www.jetbrains.com/pycharm/ 
> > 
> >"Develop with pleasure!" 
> > 
> > 
> >>-Original Message- 
> >>From: django...@googlegroups.com  
> >>[mailto:django...@googlegroups.com  ] On Behalf Of 
> Stodge 
> >>Sent: Wednesday, June 18, 2014 9:21 PM 
> >>To: django...@googlegroups.com  
> >>Subject: Re: Language code issue - Django thinks default is 
> en-us? 
> >> 
> >>Even when I override the language code in my custom command 
> >get_language() 
> >>still returns "en-us". Weird. Guess I'll have to use 
> >settings.LANGUAGE_CODE 
> >>instead of get_language(). 
> >> 
> >>On Wednesday, 18 June 2014 13:02:37 UTC-4, Stodge wrote: 
> >> 
> >>Oh. 
> >> 
> >> 
> >https://docs.djangoproject.com/en/dev/howto/custom-management-com 
> > 
> >>mands/#management-commands-and-locales 
> >><
> https://docs.djangoproject.com/en/dev/howto/custom-management-co 
> >mman 
> > >> 
> >>ds/#management-commands-and-locales> 
> >> 
> >>I forgot to mention that the signal is executed as a 
> result of a 
> >loaddata 
> >>management command. So management commands don't respect 
> >>settings.LANGUAGE_CODE? That makes no sense. 
> >> 
> >>On Wednesday, 18 June 2014 12:48:47 UTC-4, Stodge wrote: 
> >> 
> >>My settings for languages are: 
> >> 
> >> 
> >>LANGUAGE_CODE = 'en' 
> >> 
> >> 
> >>USE_I18N = True 
> >> 
> >LANGUAGE_COOKIE_NAME='django_language' 
> >>ugettext = lambda s: s 
> >>LANGUAGES = ( 
> >>('en', ugettext('English')), 
> >>('de', ugettext('German')), 
> >>('fr', ugettext('French')) 
> >>) 
> >> 
> >> 
> >>I have a post-save signal that creates instances 
> of a 
> >model and gets the 
> >>current Django language. The language returned is for some 
> reason 
> >"en-us", but 
> >>I have no idea where this is coming from. My default as shown 
> above is 
> >"en". 
> >>get_language() is called from within a signal so the language 
> isn't being 
> >taken 
> >>from a cookie or request header. Any ideas why Django thinks the 
> current 
> >>(default) language is "en-us"? Thanks 
> >> 
> >> 
> >>-- 
> >>You received this message because you are subscribed to the 
> Google 
> >Groups 
> >>"Django users" group. 
> >>To unsubscribe from this group and stop receiving 

Re: Language code issue - Django thinks default is en-us?

2014-06-18 Thread Stodge
Thanks. I am using LocaleMiddleware. I changed my languages to:

LANGUAGE_CODE = 'en-gb'
USE_I18N = True
LANGUAGES = (
('en-gb', ugettext('English')),
('de', ugettext('German')),
('fr', ugettext('French'))
)

But I'm still getting en-us.

On Wednesday, 18 June 2014 13:29:45 UTC-4, Ilya Kazakevich wrote:
>
> 1) Try to debug your code. Django is open source and sources are 
> available:) 
> 2) Do you have LocaleMiddleware installed? 
> 3) Do not use bare language, use language-region (
> http://www.i18nguy.com/unicode/language-identifiers.html) : en-gb, en-us, 
> en-bb and so on 
> 4) It is generally bad idea to depend on LANGUAGE_CODE. You should use 
> get_language() to support I18N 
>
> Ilya Kazakevich, 
> JetBrains PyCharm (Best Python/Django IDE) 
> http://www.jetbrains.com/pycharm/ 
> "Develop with pleasure!" 
>
>
> >-Original Message- 
> >From: django...@googlegroups.com  
> >[mailto:django...@googlegroups.com ] On Behalf Of Stodge 
> >Sent: Wednesday, June 18, 2014 9:21 PM 
> >To: django...@googlegroups.com  
> >Subject: Re: Language code issue - Django thinks default is en-us? 
> > 
> >Even when I override the language code in my custom command 
> get_language() 
> >still returns "en-us". Weird. Guess I'll have to use 
> settings.LANGUAGE_CODE 
> >instead of get_language(). 
> > 
> >On Wednesday, 18 June 2014 13:02:37 UTC-4, Stodge wrote: 
> > 
> >Oh. 
> > 
> >https://docs.djangoproject.com/en/dev/howto/custom-management-com 
> >mands/#management-commands-and-locales 
> > >ds/#management-commands-and-locales> 
> > 
> >I forgot to mention that the signal is executed as a result of a 
> loaddata 
> >management command. So management commands don't respect 
> >settings.LANGUAGE_CODE? That makes no sense. 
> > 
> >On Wednesday, 18 June 2014 12:48:47 UTC-4, Stodge wrote: 
> > 
> >My settings for languages are: 
> > 
> > 
> >LANGUAGE_CODE = 'en' 
> > 
> > 
> >USE_I18N = True 
> >LANGUAGE_COOKIE_NAME='django_language' 
> >ugettext = lambda s: s 
> >LANGUAGES = ( 
> >('en', ugettext('English')), 
> >('de', ugettext('German')), 
> >('fr', ugettext('French')) 
> >) 
> > 
> > 
> >I have a post-save signal that creates instances of a 
> model and gets the 
> >current Django language. The language returned is for some reason 
> "en-us", but 
> >I have no idea where this is coming from. My default as shown above is 
> "en". 
> >get_language() is called from within a signal so the language isn't being 
> taken 
> >from a cookie or request header. Any ideas why Django thinks the current 
> >(default) language is "en-us"? Thanks 
> > 
> > 
> >-- 
> >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 
> >django-users...@googlegroups.com . 
> >To post to this group, send email to django...@googlegroups.com 
> . 
> >Visit this group at http://groups.google.com/group/django-users. 
> >To view this discussion on the web visit 
> >
> https://groups.google.com/d/msgid/django-users/d5dcf509-a634-4f46-940c-8e0 
> >ee6c0ee69%40googlegroups.com 
> ><
> https://groups.google.com/d/msgid/django-users/d5dcf509-a634-4f46-940c-8e 
> >0ee6c0ee69%40googlegroups.com?utm_medium=email_source=footer> . 
> >For more options, visit https://groups.google.com/d/optout. 
>
>
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/aec80a5b-3c00-449c-b4f2-351d6a0b8816%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Language code issue - Django thinks default is en-us?

2014-06-18 Thread Ilya Kazakevich
1) Try to debug your code. Django is open source and sources are available:)
2) Do you have LocaleMiddleware installed?
3) Do not use bare language, use language-region 
(http://www.i18nguy.com/unicode/language-identifiers.html) : en-gb, en-us, 
en-bb and so on
4) It is generally bad idea to depend on LANGUAGE_CODE. You should use 
get_language() to support I18N

Ilya Kazakevich,
JetBrains PyCharm (Best Python/Django IDE)
http://www.jetbrains.com/pycharm/
"Develop with pleasure!"


>-Original Message-
>From: django-users@googlegroups.com
>[mailto:django-users@googlegroups.com] On Behalf Of Stodge
>Sent: Wednesday, June 18, 2014 9:21 PM
>To: django-users@googlegroups.com
>Subject: Re: Language code issue - Django thinks default is en-us?
>
>Even when I override the language code in my custom command get_language()
>still returns "en-us". Weird. Guess I'll have to use settings.LANGUAGE_CODE
>instead of get_language().
>
>On Wednesday, 18 June 2014 13:02:37 UTC-4, Stodge wrote:
>
>   Oh.
>
>   https://docs.djangoproject.com/en/dev/howto/custom-management-com
>mands/#management-commands-and-locales
>ds/#management-commands-and-locales>
>
>   I forgot to mention that the signal is executed as a result of a 
> loaddata
>management command. So management commands don't respect
>settings.LANGUAGE_CODE? That makes no sense.
>
>   On Wednesday, 18 June 2014 12:48:47 UTC-4, Stodge wrote:
>
>   My settings for languages are:
>
>
>   LANGUAGE_CODE = 'en'
>
>
>   USE_I18N = True
>   LANGUAGE_COOKIE_NAME='django_language'
>   ugettext = lambda s: s
>   LANGUAGES = (
>   ('en', ugettext('English')),
>   ('de', ugettext('German')),
>   ('fr', ugettext('French'))
>   )
>
>
>   I have a post-save signal that creates instances of a model and 
> gets the
>current Django language. The language returned is for some reason "en-us", but
>I have no idea where this is coming from. My default as shown above is "en".
>get_language() is called from within a signal so the language isn't being taken
>from a cookie or request header. Any ideas why Django thinks the current
>(default) language is "en-us"? Thanks
>
>
>--
>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
>django-users+unsubscr...@googlegroups.com.
>To post to this group, send email to django-users@googlegroups.com.
>Visit this group at http://groups.google.com/group/django-users.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/d5dcf509-a634-4f46-940c-8e0
>ee6c0ee69%40googlegroups.com
>0ee6c0ee69%40googlegroups.com?utm_medium=email_source=footer> .
>For more options, visit https://groups.google.com/d/optout.


-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/01cd01cf8b1a%24cdb7a950%246926fbf0%24%40JetBrains.com.
For more options, visit https://groups.google.com/d/optout.


Re: Language code issue - Django thinks default is en-us?

2014-06-18 Thread Stodge
Even when I override the language code in my custom command get_language() 
still returns "en-us". Weird. Guess I'll have to use settings.LANGUAGE_CODE 
instead of get_language().

On Wednesday, 18 June 2014 13:02:37 UTC-4, Stodge wrote:
>
> Oh.
>
>
> https://docs.djangoproject.com/en/dev/howto/custom-management-commands/#management-commands-and-locales
>
> I forgot to mention that the signal is executed as a result of a loaddata 
> management command. So management commands don't respect 
> settings.LANGUAGE_CODE? That makes no sense.
>
> On Wednesday, 18 June 2014 12:48:47 UTC-4, Stodge wrote:
>>
>> My settings for languages are:
>>
>> LANGUAGE_CODE = 'en'
>>
>> USE_I18N = True
>> LANGUAGE_COOKIE_NAME='django_language'
>> ugettext = lambda s: s
>> LANGUAGES = (
>> ('en', ugettext('English')),
>> ('de', ugettext('German')),
>> ('fr', ugettext('French'))
>> )
>>
>>
>> I have a post-save signal that creates instances of a model and gets the 
>> current Django language. The language returned is for some reason "en-us", 
>> but I have no idea where this is coming from. My default as shown above is 
>> "en". get_language() is called from within a signal so the language isn't 
>> being taken from a cookie or request header. Any ideas why Django thinks 
>> the current (default) language is "en-us"? Thanks
>>
>>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d5dcf509-a634-4f46-940c-8e0ee6c0ee69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: LiveServerTestCase modifies production database when ran in python script

2014-06-18 Thread yakkadesign
 

The solution was to use DjangoTestSuiteRunner. I ended up copying the 
method DjangoTestSuiteRunner.run_tests and modifying to use a test suite. 

The code is

from django.test.simple import DjangoTestSuiteRunnerfrom django.utils import 
unittest

suite_payment = unittest.TestLoader().loadTestsFromTestCase(yPaymentTest)
djangoRunner = DjangoTestSuiteRunner(verbosity=2)
djangoRunner.setup_test_environment()
old_config = djangoRunner.setup_databases()
djangoRunner.run_suite(suite_payment )
djangoRunner.teardown_databases(old_config)
djangoRunner.teardown_test_environment()

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/febef8b0-004a-4b23-a06a-d8c03a9e00bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Language code issue - Django thinks default is en-us?

2014-06-18 Thread Stodge
Oh.

https://docs.djangoproject.com/en/dev/howto/custom-management-commands/#management-commands-and-locales

I forgot to mention that the signal is executed as a result of a loaddata 
management command. So management commands don't respect 
settings.LANGUAGE_CODE? That makes no sense.

On Wednesday, 18 June 2014 12:48:47 UTC-4, Stodge wrote:
>
> My settings for languages are:
>
> LANGUAGE_CODE = 'en'
>
> USE_I18N = True
> LANGUAGE_COOKIE_NAME='django_language'
> ugettext = lambda s: s
> LANGUAGES = (
> ('en', ugettext('English')),
> ('de', ugettext('German')),
> ('fr', ugettext('French'))
> )
>
>
> I have a post-save signal that creates instances of a model and gets the 
> current Django language. The language returned is for some reason "en-us", 
> but I have no idea where this is coming from. My default as shown above is 
> "en". get_language() is called from within a signal so the language isn't 
> being taken from a cookie or request header. Any ideas why Django thinks 
> the current (default) language is "en-us"? Thanks
>
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/10e0fe6d-1cf2-487d-aa70-023aef943414%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Language code issue - Django thinks default is en-us?

2014-06-18 Thread Stodge
My settings for languages are:

LANGUAGE_CODE = 'en'

USE_I18N = True
LANGUAGE_COOKIE_NAME='django_language'
ugettext = lambda s: s
LANGUAGES = (
('en', ugettext('English')),
('de', ugettext('German')),
('fr', ugettext('French'))
)


I have a post-save signal that creates instances of a model and gets the 
current Django language. The language returned is for some reason "en-us", 
but I have no idea where this is coming from. My default as shown above is 
"en". get_language() is called from within a signal so the language isn't 
being taken from a cookie or request header. Any ideas why Django thinks 
the current (default) language is "en-us"? Thanks

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6a43c2a5-5701-495b-8a18-f1cfda1f263f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any position for Django/Python Developer?

2014-06-18 Thread Huy T
If you want to relocate why not select some target cities.

Otherwise why not search dice.com (job board) and google perhaps.

On Jun 18, 2014, at 11:08 AM, Kannan  wrote:

> Guys, 
> I have not got a single reply.
> Please let me know where I can search for a remote job or part time job in 
> Python/Django technologies.
> 
> 
> On Tue, Jun 17, 2014 at 5:48 PM, Kannan  wrote:
> 
> Hi All, 
> I am looking for job for Django Developer. And I am ready to work on part 
> time role also. 
> I have 3 year of experience as a Software Developer, and if anyone accepting 
> my application, please send me an email. I will send you the resume. 
> 
> Email: kanna...@gmail.com
> 
> Note: I am living in India, and ready to relocate or ready to work remote.
> 
> -- 
> With regards, 
> 
> Kannan. R. P, 
> Blog @: http://kannan4k.wordpress.com/
> 
> 
> 
> -- 
> With regards, 
> 
> Kannan. R. P, 
> Blog @: http://kannan4k.wordpress.com/
> -- 
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAL4xV_A85m1%3DSv92tiVwYD%2BPK7QkwpZ1YRC%3DC9X7p7RUz5JHuQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6618C9BC-4CF1-4B9D-8FD1-9C2587F4E69B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any position for Django/Python Developer?

2014-06-18 Thread Sithembewena Lloyd Dube
Also search on Indeed.com.


On Wed, Jun 18, 2014 at 6:20 PM, Sithembewena Lloyd Dube 
wrote:

> Hey,
>
> Try www.djangogigs.com? Also, search LinkedIn - I always see stuff posted
> there. Join the Django and Python groups.
>
>
> On Wed, Jun 18, 2014 at 5:08 PM, Kannan  wrote:
>
>> Guys,
>> I have not got a single reply.
>> Please let me know where I can search for a remote job or part time job
>> in Python/Django technologies.
>>
>>
>> On Tue, Jun 17, 2014 at 5:48 PM, Kannan  wrote:
>>
>>>
>>> Hi All,
>>> I am looking for job for Django Developer. And I am ready to work on
>>> part time role also.
>>> I have 3 year of experience as a Software Developer, and if anyone
>>> accepting my application, please send me an email. I will send you the
>>> resume.
>>>
>>> Email: kanna...@gmail.com
>>>
>>> Note: I am living in India, and ready to relocate or ready to work
>>> remote.
>>>
>>> --
>>> With regards,
>>>
>>> Kannan. R. P,
>>> Blog @: http://kannan4k.wordpress.com/
>>>
>>
>>
>>
>> --
>> With regards,
>>
>> Kannan. R. P,
>> Blog @: http://kannan4k.wordpress.com/
>>
>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAL4xV_A85m1%3DSv92tiVwYD%2BPK7QkwpZ1YRC%3DC9X7p7RUz5JHuQ%40mail.gmail.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCD%2BHBSyUGKYgTuEatTLVcoHwJiQtFGQm-W2rs%2BT%2BrX4Ng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any position for Django/Python Developer?

2014-06-18 Thread Sithembewena Lloyd Dube
Hey,

Try www.djangogigs.com? Also, search LinkedIn - I always see stuff posted
there. Join the Django and Python groups.


On Wed, Jun 18, 2014 at 5:08 PM, Kannan  wrote:

> Guys,
> I have not got a single reply.
> Please let me know where I can search for a remote job or part time job in
> Python/Django technologies.
>
>
> On Tue, Jun 17, 2014 at 5:48 PM, Kannan  wrote:
>
>>
>> Hi All,
>> I am looking for job for Django Developer. And I am ready to work on part
>> time role also.
>> I have 3 year of experience as a Software Developer, and if anyone
>> accepting my application, please send me an email. I will send you the
>> resume.
>>
>> Email: kanna...@gmail.com
>>
>> Note: I am living in India, and ready to relocate or ready to work remote.
>>
>> --
>> With regards,
>>
>> Kannan. R. P,
>> Blog @: http://kannan4k.wordpress.com/
>>
>
>
>
> --
> With regards,
>
> Kannan. R. P,
> Blog @: http://kannan4k.wordpress.com/
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL4xV_A85m1%3DSv92tiVwYD%2BPK7QkwpZ1YRC%3DC9X7p7RUz5JHuQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCDD52yPBe4UwWCLRfHRBLxd7BhPAtto9WNbTVzDjwG8%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Database problem in Django

2014-06-18 Thread C. Kirby
You really need to show the models you are interested in this working on. 
In particular you will need the models to have a "created time" or 
something similar to order your query on.

Kirby

On Wednesday, June 18, 2014 7:06:18 AM UTC-5, Ashu Singh wrote:
>
> Hello everyone. My doubt is how to fetch the recent two database entries 
> in django. User may enter into database anytime but the query should always 
> fetch last two entries. 
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/10da09bf-4d55-4c04-a856-620a0159da38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any position for Django/Python Developer?

2014-06-18 Thread Kannan
Guys,
I have not got a single reply.
Please let me know where I can search for a remote job or part time job in
Python/Django technologies.


On Tue, Jun 17, 2014 at 5:48 PM, Kannan  wrote:

>
> Hi All,
> I am looking for job for Django Developer. And I am ready to work on part
> time role also.
> I have 3 year of experience as a Software Developer, and if anyone
> accepting my application, please send me an email. I will send you the
> resume.
>
> Email: kanna...@gmail.com
>
> Note: I am living in India, and ready to relocate or ready to work remote.
>
> --
> With regards,
>
> Kannan. R. P,
> Blog @: http://kannan4k.wordpress.com/
>



-- 
With regards,

Kannan. R. P,
Blog @: http://kannan4k.wordpress.com/

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL4xV_A85m1%3DSv92tiVwYD%2BPK7QkwpZ1YRC%3DC9X7p7RUz5JHuQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: Who are using Aptana Studio 3? Please respond.

2014-06-18 Thread Ilya Kazakevich
Aptana is based on Eclipse, Eclipse is java-based, java-based drivers are 
called "JDBC" drivers. So you probably need mysql JDBC driver.
Here it is: http://www.mysql.com/products/connector/
Here is manual: 
http://www.od2dev.be/configuring-aptana-to-connect-mysql-databases/

Some IDEs download database drivers automatically (like 0xDBE or PyCharm), it 
is sad that Aptana does not do it)


Ilya Kazakevich,
JetBrains PyCharm (Best Python/Django IDE)
http://www.jetbrains.com/pycharm/
"Develop with pleasure!"


>-Original Message-
>From: django-users@googlegroups.com
>[mailto:django-users@googlegroups.com] On Behalf Of Віталій Лисенко
>Sent: Wednesday, June 18, 2014 2:10 PM
>To: django-users@googlegroups.com
>Subject: Who are using Aptana Studio 3? Please respond.
>
>How are working with database Postgres or MySql in Aptana3?
>Am I need special driver?
>
>--
>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
>django-users+unsubscr...@googlegroups.com.
>To post to this group, send email to django-users@googlegroups.com.
>Visit this group at http://groups.google.com/group/django-users.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/d8778fff-f697-45d3-9d5a-f8a8
>18cc4b15%40googlegroups.com
>818cc4b15%40googlegroups.com?utm_medium=email_source=footer> .
>For more options, visit https://groups.google.com/d/optout.


-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/019401cf8afc%24e3e26350%24aba729f0%24%40JetBrains.com.
For more options, visit https://groups.google.com/d/optout.


Re: Who are using Aptana Studio 3? Please respond.

2014-06-18 Thread Jorge Andrés Vergara Ebratt
You need the DB Backends, but that doesn't depend in the IDE you are
using...

If you are going to work with MySQL you need to have MySQL installed and
install MySQL-python (Only works on Python 2.x there is another one for 3.x
but I'm not familiar with it)

If you are going to work with PostgreSQL you need to install its backend, I
don't know the name of the package but you can find it in the Django docs


2014-06-18 5:09 GMT-05:00 Віталій Лисенко :

> How are working with database Postgres or MySql in Aptana3?
> Am I need special driver?
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d8778fff-f697-45d3-9d5a-f8a818cc4b15%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Jorge Andres Vergara Ebratt*
*#SoftwareDeveloper (Or at least trying to be)*
*@javebratt*
*facebook.com/javebratt *

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAeX05HvF70AWULiq8tweGzJozO%3DjNsDEaTvQwKdWBKL3Po7JQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Database problem in Django

2014-06-18 Thread Glen Jungels
Erik is certainly right on this.  All queries are point in time and in
databases with large numbers of inserts per second, getting the true last
two inserts will be relative to when the query starts.
On Jun 18, 2014 9:33 AM, "Erik Cederstrand" 
wrote:

> Den 18/06/2014 kl. 14.31 skrev Glen Jungels :
>
> > It will be different depending on the database (assuming you are asking
> about the query only).  You will need to do an order by on either your auto
> incremented field or dat field plus something like a limit 2 (Postgres and
> I believe MySQL) or top 2 for something like SQL Server.
>
> Interestingly, the question is very simple, but the answer is very
> complicated if you simply *must* get the exact answer.
>
> Databases don't make any promises on the order of the rows returned unless
> a specific order clause is provided. auto_increment sequences can be reset
> and primary keys can be reused, so you can't necessarily order by primary
> key. Result limits are implemented very differently depending on the
> database vendor since LIMIT is not part of the SQL standard (see
> http://en.wikipedia.org/wiki/Select_(SQL)#Result_limits), and your
> database backend might not even support it.
>
> Finally, using an 'insert_date' field only works if the precision of the
> column type is significantly lower than the rate of insertion. E.g. MySQL
> <= 5.5 only has second precision for the DATETIME type and wouldn't be
> useful if you have 10 inserts per second.
>
> Erik
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/A9576EA4-D3D5-4E5E-836E-0B5CE450FBE2%40cederstrand.dk
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA_%3DsbQqoSAM4_g9hZfrqBWxsaMwz4fH_ia1ycFRnktq94Tgmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Database problem in Django

2014-06-18 Thread Erik Cederstrand
Den 18/06/2014 kl. 14.31 skrev Glen Jungels :

> It will be different depending on the database (assuming you are asking about 
> the query only).  You will need to do an order by on either your auto 
> incremented field or dat field plus something like a limit 2 (Postgres and I 
> believe MySQL) or top 2 for something like SQL Server.

Interestingly, the question is very simple, but the answer is very complicated 
if you simply *must* get the exact answer.

Databases don't make any promises on the order of the rows returned unless a 
specific order clause is provided. auto_increment sequences can be reset and 
primary keys can be reused, so you can't necessarily order by primary key. 
Result limits are implemented very differently depending on the database vendor 
since LIMIT is not part of the SQL standard (see 
http://en.wikipedia.org/wiki/Select_(SQL)#Result_limits), and your database 
backend might not even support it.

Finally, using an 'insert_date' field only works if the precision of the column 
type is significantly lower than the rate of insertion. E.g. MySQL <= 5.5 only 
has second precision for the DATETIME type and wouldn't be useful if you have 
10 inserts per second.

Erik

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/A9576EA4-D3D5-4E5E-836E-0B5CE450FBE2%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.


Re: Expected URL with primary key when testing SimpleTestCase.assertRedirects()

2014-06-18 Thread Antonio Alaniz
Thanks, K. I think one of my main issues, after looking at your tests, is 
that I'm not currently using the client to test the redirect. I have this 
test as a part of my functional_tests.py, but it sounds like I need to 
possibly build this into my unit tests as I see your test is in tests.py. 
I'm going move some of this work around between functional and unit tests 
and then try out your suggestion with the client. 

Tony

On Tuesday, June 17, 2014 7:26:27 PM UTC-7, Antonio Alaniz wrote:
>
> I'm testing a redirect that would include the primary key. Can anyone tell 
> me how I can test the redirect URL if it involves the primary key? Will the 
> following work?:
>
> self.assertRedirects(response, 'message/(?P\d+)/', 200)
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/268c0cf6-2829-445a-a97d-8c7832121247%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Database problem in Django

2014-06-18 Thread Glen Jungels
It will be different depending on the database (assuming you are asking
about the query only).  You will need to do an order by on either your auto
incremented field or dat field plus something like a limit 2 (Postgres and
I believe MySQL) or top 2 for something like SQL Server.
On Jun 18, 2014 8:14 AM, "Ilya Kazakevich" 
wrote:

> You probably need to have "insert_date" field and store entry created date
> there.
>
>
> Ilya Kazakevich,
> JetBrains PyCharm (Best Python/Django IDE)
> http://www.jetbrains.com/pycharm/
> "Develop with pleasure!"
>
>
> >-Original Message-
> >From: django-users@googlegroups.com
> >[mailto:django-users@googlegroups.com] On Behalf Of Ashu Singh
> >Sent: Wednesday, June 18, 2014 4:03 PM
> >To: django-users@googlegroups.com
> >Subject: Database problem in Django
> >
> >Hello everyone. My doubt is how to fetch the recent two database entries
> in
> >django. User may enter into database anytime but the query should always
> fetch
> >last two entries.
> >
> >
> >--
> >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
> >django-users+unsubscr...@googlegroups.com.
> >To post to this group, send email to django-users@googlegroups.com.
> >Visit this group at http://groups.google.com/group/django-users.
> >To view this discussion on the web visit
> >https://groups.google.com/d/msgid/django-users/bdd16e14-ef35-4125-966d-60
> >6d36f93fd0%40googlegroups.com
> > >06d36f93fd0%40googlegroups.com?utm_medium=email_source=footer> .
> >For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/017701cf8aee%24d51d7200%247f585600%24%40JetBrains.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA_%3DsbR4Hy3b5vsb7-6TaX3ne6Tkfa6qXmvDBcjtdqsDuSTqMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: Database problem in Django

2014-06-18 Thread Ilya Kazakevich
You probably need to have "insert_date" field and store entry created date 
there.


Ilya Kazakevich,
JetBrains PyCharm (Best Python/Django IDE)
http://www.jetbrains.com/pycharm/
"Develop with pleasure!"


>-Original Message-
>From: django-users@googlegroups.com
>[mailto:django-users@googlegroups.com] On Behalf Of Ashu Singh
>Sent: Wednesday, June 18, 2014 4:03 PM
>To: django-users@googlegroups.com
>Subject: Database problem in Django
>
>Hello everyone. My doubt is how to fetch the recent two database entries in
>django. User may enter into database anytime but the query should always fetch
>last two entries.
>
>
>--
>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
>django-users+unsubscr...@googlegroups.com.
>To post to this group, send email to django-users@googlegroups.com.
>Visit this group at http://groups.google.com/group/django-users.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/bdd16e14-ef35-4125-966d-60
>6d36f93fd0%40googlegroups.com
>06d36f93fd0%40googlegroups.com?utm_medium=email_source=footer> .
>For more options, visit https://groups.google.com/d/optout.


-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/017701cf8aee%24d51d7200%247f585600%24%40JetBrains.com.
For more options, visit https://groups.google.com/d/optout.


Database problem in Django

2014-06-18 Thread Ashu Singh
Hello everyone. My doubt is how to fetch the recent two database entries in 
django. User may enter into database anytime but the query should always 
fetch last two entries. 

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3147ebb0-1471-4118-9a61-0a0f55e51176%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Database problem in Django

2014-06-18 Thread Ashu Singh
Hello everyone. My doubt is how to fetch the recent two database entries in 
django. User may enter into database anytime but the query should always 
fetch last two entries. 

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bdd16e14-ef35-4125-966d-606d36f93fd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: reset button

2014-06-18 Thread Tom Evans
On Wed, Jun 18, 2014 at 11:06 AM, Sebastián Richmond
 wrote:
> Hi,
> I am interested in a reset buttion for a form.
>
> I have this form.py
>
>
> from django import forms
>
> class ContactForm(forms.Form):
> topic = forms.ChoiceField(choices=TOPIC_CHOICES)
> message = forms.CharField()
> sender = forms.EmailField(required=False)
>
>
> It adds a submit button by default but I like to add reset button and I
> don't know how to do it.

Just like it doesn't output the  tags around your form, Django
will never add any buttons by default - this is always left to you to
decide what, where and how you want your form to be submitted.

To make a reset button, simply put a  inside your  that
has a type of "reset". When you click the button, your browser will
reset the form to initial values.

Cheers

Tom

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFHbX1Lrhr6PQyPDMh-jYQXxNuoOCsWkcLoFpCVvSL%3Do0kvGKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with runserver

2014-06-18 Thread Dariusz Mysior
Ok I now now

Start the development server Remember, don't use runserver and 
*localhost:8000* on PythonAnywhere 
. Instead, go back to 
your *Web* tab, and hit reload on your web app. You will then be able to go 
to *your-username.pythonanywhere.com/admin* and see the admin site up and 
running... 



W dniu środa, 18 czerwca 2014 12:43:38 UTC+2 użytkownik Dariusz Mysior 
napisał:
>
> I use pythonanywhere.com and now I install Python 2.7 and Django 1.6 with 
> virtualenv
>
> My settings.py is
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'NAME': 'daro822$db1',
> 'USER':   'daro822',
> 'PASSWORD': '*',
> 'HOST':'mysql.server',
> 'PORT':'',
>
> I start project mysite and I have a problem in Bash with command 
>
> python manage.py runserver
>   
>
>   
> I have a comment like this
>
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>  line 399, in execute_from_command_line
> utility.execute()
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>  line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/base.py",
>  line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/base.py",
>  line 280, in execute
> translation.activate('en-us')
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/__init__.py",
>  line 130, in activate
> return _trans.activate(language)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>  line 188, in activate
> _active.value = translation(language)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>  line 177, in translation
> default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>  line 159, in _fetch
> app = import_module(appname)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/importlib.py",
>  line 40, in import_module
> __import__(name)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py",
>  line 6, in 
> from django.contrib.admin.sites import AdminSite, site
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/sites.py",
>  line 4, in 
> from django.contrib.admin.forms import AdminAuthenticationForm
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/forms.py",
>  line 6, in 
> from django.contrib.auth.forms import AuthenticationForm
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/auth/forms.py",
>  line 17, in 
> from django.contrib.auth.models import User
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/auth/models.py",
>  line 48, in 
> class Permission(models.Model):
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/base.py",
>  line 96, in __new__
> new_class.add_to_class('_meta', Options(meta, **kwargs))
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/base.py",
>  line 264, in add_to_class
> value.contribute_to_class(cls, name)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/options.py",
>  line 124, in contribute_to_class
> self.db_table = truncate_name(self.db_table, 
> connection.ops.max_name_length())
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/__init__.py",
>  line 34, in __getattr__
> return getattr(connections[DEFAULT_DB_ALIAS], item)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/utils.py",
>  line 198, in __getitem__
> backend = load_backend(db['ENGINE'])
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/utils.py",
>  line 113, in load_backend
> return import_module('%s.base' % 

Re: Problem with runserver

2014-06-18 Thread Dariusz Mysior
It,s work but another message with port :/

Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Error: That port is already in use.



W dniu środa, 18 czerwca 2014 12:43:38 UTC+2 użytkownik Dariusz Mysior 
napisał:
>
> I use pythonanywhere.com and now I install Python 2.7 and Django 1.6 with 
> virtualenv
>
> My settings.py is
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'NAME': 'daro822$db1',
> 'USER':   'daro822',
> 'PASSWORD': '*',
> 'HOST':'mysql.server',
> 'PORT':'',
>
> I start project mysite and I have a problem in Bash with command 
>
> python manage.py runserver
>   
>
>   
> I have a comment like this
>
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>  line 399, in execute_from_command_line
> utility.execute()
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>  line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/base.py",
>  line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/base.py",
>  line 280, in execute
> translation.activate('en-us')
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/__init__.py",
>  line 130, in activate
> return _trans.activate(language)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>  line 188, in activate
> _active.value = translation(language)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>  line 177, in translation
> default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>  line 159, in _fetch
> app = import_module(appname)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/importlib.py",
>  line 40, in import_module
> __import__(name)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py",
>  line 6, in 
> from django.contrib.admin.sites import AdminSite, site
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/sites.py",
>  line 4, in 
> from django.contrib.admin.forms import AdminAuthenticationForm
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/forms.py",
>  line 6, in 
> from django.contrib.auth.forms import AuthenticationForm
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/auth/forms.py",
>  line 17, in 
> from django.contrib.auth.models import User
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/auth/models.py",
>  line 48, in 
> class Permission(models.Model):
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/base.py",
>  line 96, in __new__
> new_class.add_to_class('_meta', Options(meta, **kwargs))
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/base.py",
>  line 264, in add_to_class
> value.contribute_to_class(cls, name)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/options.py",
>  line 124, in contribute_to_class
> self.db_table = truncate_name(self.db_table, 
> connection.ops.max_name_length())
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/__init__.py",
>  line 34, in __getattr__
> return getattr(connections[DEFAULT_DB_ALIAS], item)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/utils.py",
>  line 198, in __getitem__
> backend = load_backend(db['ENGINE'])
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/utils.py",
>  line 113, in load_backend
> return import_module('%s.base' % backend_name)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/importlib.py",
>  line 40, in import_module
> __import__(name)
>   File 

Re: Problem with runserver

2014-06-18 Thread Helton Alves
Hi, you need install this: pip install MySQL-python :D


2014-06-18 11:43 GMT+01:00 Dariusz Mysior :

> I use pythonanywhere.com and now I install Python 2.7 and Django 1.6 with
> virtualenv
>
> My settings.py is
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'NAME': 'daro822$db1',
> 'USER':   'daro822',
> 'PASSWORD': '*',
> 'HOST':'mysql.server',
> 'PORT':'',
>
> I start project mysite and I have a problem in Bash with command
>
> python manage.py runserver
>
>
> I have a comment like this
>
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>  line 399, in execute_from_command_line
> utility.execute()
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>  line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/base.py",
>  line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/base.py",
>  line 280, in execute
> translation.activate('en-us')
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/__init__.py",
>  line 130, in activate
> return _trans.activate(language)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>  line 188, in activate
> _active.value = translation(language)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>  line 177, in translation
> default_translation = _fetch(settings.LANGUAGE_CODE)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
>  line 159, in _fetch
> app = import_module(appname)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/importlib.py",
>  line 40, in import_module
> __import__(name)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py",
>  line 6, in 
> from django.contrib.admin.sites import AdminSite, site
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/sites.py",
>  line 4, in 
> from django.contrib.admin.forms import AdminAuthenticationForm
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/forms.py",
>  line 6, in 
> from django.contrib.auth.forms import AuthenticationForm
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/auth/forms.py",
>  line 17, in 
> from django.contrib.auth.models import User
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/auth/models.py",
>  line 48, in 
> class Permission(models.Model):
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/base.py",
>  line 96, in __new__
> new_class.add_to_class('_meta', Options(meta, **kwargs))
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/base.py",
>  line 264, in add_to_class
> value.contribute_to_class(cls, name)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/options.py",
>  line 124, in contribute_to_class
> self.db_table = truncate_name(self.db_table, 
> connection.ops.max_name_length())
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/__init__.py",
>  line 34, in __getattr__
> return getattr(connections[DEFAULT_DB_ALIAS], item)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/utils.py",
>  line 198, in __getitem__
> backend = load_backend(db['ENGINE'])
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/utils.py",
>  line 113, in load_backend
> return import_module('%s.base' % backend_name)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/importlib.py",
>  line 40, in import_module
> __import__(name)
>   File 
> "/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py",
>  line 17, in 
> raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No 
> module named 

reset button

2014-06-18 Thread Sebastián Richmond
Hi,
I am interested in a reset buttion for a form.

I have this form.py


*from django import forms*


*class ContactForm(forms.Form):*
*topic = forms.ChoiceField(choices=TOPIC_CHOICES)*
*message = forms.CharField()*
*sender = forms.EmailField(required=False)*


It adds a submit button by default but I like to add reset button and I 
don't know how to do it.

Thanks a lot

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a944fb30-6a19-477e-9076-766b4d6b7ce1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Problem with runserver

2014-06-18 Thread Dariusz Mysior
I use pythonanywhere.com and now I install Python 2.7 and Django 1.6 with 
virtualenv

My settings.py is

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'daro822$db1',
'USER':   'daro822',
'PASSWORD': '*',
'HOST':'mysql.server',
'PORT':'',

I start project mysite and I have a problem in Bash with command 

python manage.py runserver  


  
I have a comment like this

Traceback (most recent call last):
  File "manage.py", line 10, in 
execute_from_command_line(sys.argv)
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 399, in execute_from_command_line
utility.execute()
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/base.py",
 line 242, in run_from_argv
self.execute(*args, **options.__dict__)
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/core/management/base.py",
 line 280, in execute
translation.activate('en-us')
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/__init__.py",
 line 130, in activate
return _trans.activate(language)
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
 line 188, in activate
_active.value = translation(language)
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
 line 177, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py",
 line 159, in _fetch
app = import_module(appname)
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/importlib.py",
 line 40, in import_module
__import__(name)
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py",
 line 6, in 
from django.contrib.admin.sites import AdminSite, site
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/sites.py",
 line 4, in 
from django.contrib.admin.forms import AdminAuthenticationForm
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/admin/forms.py",
 line 6, in 
from django.contrib.auth.forms import AuthenticationForm
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/auth/forms.py",
 line 17, in 
from django.contrib.auth.models import User
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/contrib/auth/models.py",
 line 48, in 
class Permission(models.Model):
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/base.py",
 line 96, in __new__
new_class.add_to_class('_meta', Options(meta, **kwargs))
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/base.py",
 line 264, in add_to_class
value.contribute_to_class(cls, name)
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/models/options.py",
 line 124, in contribute_to_class
self.db_table = truncate_name(self.db_table, 
connection.ops.max_name_length())
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/__init__.py",
 line 34, in __getattr__
return getattr(connections[DEFAULT_DB_ALIAS], item)
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/utils.py",
 line 198, in __getitem__
backend = load_backend(db['ENGINE'])
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/utils.py",
 line 113, in load_backend
return import_module('%s.base' % backend_name)
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/utils/importlib.py",
 line 40, in import_module
__import__(name)
  File 
"/home/daro822/.virtualenvs/django16/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py",
 line 17, in 
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No 
module named MySQLdb


-- 
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: Expected URL with primary key when testing SimpleTestCase.assertRedirects()

2014-06-18 Thread Kelvin Wong
This is how I usually do redirect tests:

self.assertEqual(response.status_code, 302)
self.assertRedirects(
response,
'http://testserver' + reverse('pizza:deleted')
)

I recommend using named URLs, that way your message_id would be similar to 
this:

reverse('pizza:delete', args=[pizza.id])

Here is the complete app's tests if you want to take a look

https://github.com/kelvinwong-ca/django-select-multiple-field/blob/master/test_projects/django14/pizzagigi/tests.py

K



On Tuesday, June 17, 2014 7:26:27 PM UTC-7, Antonio Alaniz wrote:
>
> I'm testing a redirect that would include the primary key. Can anyone tell 
> me how I can test the redirect URL if it involves the primary key? Will the 
> following work?:
>
> self.assertRedirects(response, 'message/(?P\d+)/', 200)
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f0ddc82c-67f8-4b2d-aef1-6fcde2eb3c72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Who are using Aptana Studio 3? Please respond.

2014-06-18 Thread Віталій Лисенко
How are working with database Postgres or MySql in Aptana3?
Am I need special driver?

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d8778fff-f697-45d3-9d5a-f8a818cc4b15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Strange behavior when running a join in Django shell versus script

2014-06-18 Thread Daniel Roseman
On Wednesday, 18 June 2014 07:16:23 UTC+1, Jason Skicewicz wrote:
>
> I have a many to many relationship from my UserProfile object to an object 
> called ThemeTimes.  The declaration looks like the following:
>
>theme_times = models.ManyToManyField('fixupthemes.FixupThemeTime', 
>> blank=True,
>> related_name='profiles', editable=False)
>
>
> the FixupThemeTime model, has a field called timestamp that is declared as 
> follows:
>
> timestamp = models.DateTimeField(null=False, blank=False)
>
>
> In the Django shell or the view code, the following works just fine:
>
> users = 
>> UserProfile.objects.filter(theme_times__timestamp__gt=datetime.now()).distinct()
>
>
> Which returns me all users that have theme times in the future 
> (availability).  When I run this same query in a simple script shown here:
>
> import os
>> import sys
>> sys.path = [ '/usr/local/projectfixup', ] + sys.path
>> os.environ['DJANGO_SETTINGS_MODULE'] = 'projectfixup.settings'
>> from datetime import datetime
>> from projectfixup.accounts.models import UserProfile
>>
>> if __name__ == "__main__":
>> users = 
>> UserProfile.objects.filter(theme_times__timestamp__gt=datetime.now()).distinct()
>> print users.count()
>> sys.exit(0)
>
>
> It results in a traceback with the following message:
>
> Traceback (most recent call last):
>>   File "test_script.py", line 13, in 
>> users = 
>> UserProfile.objects.filter(theme_times__timestamp__gt=datetime.now()).distinct()
>>   File 
>> "/home/jason/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
>>  
>> line 143, in filter
>> return self.get_query_set().filter(*args, **kwargs)
>>   File 
>> "/home/jason/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
>>  
>> line 621, in filter
>> return self._filter_or_exclude(False, *args, **kwargs)
>>   File 
>> "/home/jason/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
>>  
>> line 639, in _filter_or_exclude
>> clone.query.add_q(Q(*args, **kwargs))
>>   File 
>> "/home/jason/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py",
>>  
>> line 1250, in add_q
>> can_reuse=used_aliases, force_having=force_having)
>>   File 
>> "/home/jason/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py",
>>  
>> line 1072, in add_filter
>> lookup_field = lookup_model._meta.get_field(field_name)
>> AttributeError: 'str' object has no attribute '_meta'
>
>
> I'm at a loss as to why this is happening, but through debugging, when 
> Django attempts to get the field via script, lookup_model is a string 
> whereas in the view code, it's a model instance.  Not sure if this is a 
> known problem or not, and my solution to date has been to make two separate 
> queries in scripts instead of doing the join.  But the inconsistency is 
> driving me a bit mad.
>
> Any ideas on a resolution to the problem?
>
> -Jason
>

You appear to be using an old version of Django - line 1072 in sql/query.py 
hasn't been what shows in the traceback since version 1.4. As a first 
suggestion, you should upgrade to see if it solves your problem.

Otherwise, you may need to post your model and manager so we can see more 
of what's going on.
--
DR.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f8b9ed1a-31df-4d4f-8c77-cbce913284d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Strange behavior when running a join in Django shell versus script

2014-06-18 Thread Jason Skicewicz
I have a many to many relationship from my UserProfile object to an object 
called ThemeTimes.  The declaration looks like the following:

   theme_times = models.ManyToManyField('fixupthemes.FixupThemeTime', 
> blank=True,
> related_name='profiles', editable=False)


the FixupThemeTime model, has a field called timestamp that is declared as 
follows:

timestamp = models.DateTimeField(null=False, blank=False)


In the Django shell or the view code, the following works just fine:

users = 
> UserProfile.objects.filter(theme_times__timestamp__gt=datetime.now()).distinct()


Which returns me all users that have theme times in the future 
(availability).  When I run this same query in a simple script shown here:

import os
> import sys
> sys.path = [ '/usr/local/projectfixup', ] + sys.path
> os.environ['DJANGO_SETTINGS_MODULE'] = 'projectfixup.settings'
> from datetime import datetime
> from projectfixup.accounts.models import UserProfile
>
> if __name__ == "__main__":
> users = 
> UserProfile.objects.filter(theme_times__timestamp__gt=datetime.now()).distinct()
> print users.count()
> sys.exit(0)


It results in a traceback with the following message:

Traceback (most recent call last):
>   File "test_script.py", line 13, in 
> users = 
> UserProfile.objects.filter(theme_times__timestamp__gt=datetime.now()).distinct()
>   File 
> "/home/jason/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
>  
> line 143, in filter
> return self.get_query_set().filter(*args, **kwargs)
>   File 
> "/home/jason/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
>  
> line 621, in filter
> return self._filter_or_exclude(False, *args, **kwargs)
>   File 
> "/home/jason/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
>  
> line 639, in _filter_or_exclude
> clone.query.add_q(Q(*args, **kwargs))
>   File 
> "/home/jason/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py",
>  
> line 1250, in add_q
> can_reuse=used_aliases, force_having=force_having)
>   File 
> "/home/jason/venv/local/lib/python2.7/site-packages/django/db/models/sql/query.py",
>  
> line 1072, in add_filter
> lookup_field = lookup_model._meta.get_field(field_name)
> AttributeError: 'str' object has no attribute '_meta'


I'm at a loss as to why this is happening, but through debugging, when 
Django attempts to get the field via script, lookup_model is a string 
whereas in the view code, it's a model instance.  Not sure if this is a 
known problem or not, and my solution to date has been to make two separate 
queries in scripts instead of doing the join.  But the inconsistency is 
driving me a bit mad.

Any ideas on a resolution to the problem?

-Jason

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9f491a4e-8cbd-4990-b0e2-d214be9ea220%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Stack Overflow Open Source Advertising, 2H 2014

2014-06-18 Thread Jorge Cardoso Leitão
Hi Russell,

Thank you for raising these concerns here.

It would be a pleasure to me to represent the Django project but I'm not
sure that this is the case here, and surely was not my intention!

That post was added as a SO member who is thrilled about a project and
wanted to promote it to other SO members to contribute, not as the project
representative.

I see two questions here:

1. Does Django foundation has trademark concerns about it being publicised
by SO members to promote contributing to Django in SO?

Since you raised some concerns and I'm no legal expert, I retracted the
post. Maybe this should be clarified at some point.

2. Does Django project wants to participate in this program? (in the
representative sense)

It interpret your reply as that at least you don't oppose, so I try to
bring this to django-dev after 1.7 is out.

Regards,
Jorge




On Wed, Jun 18, 2014 at 3:18 AM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:

> Hi Jorge,
>
> Thanks for drawing our attention to this program.
>
> Some things to keep in mind about branding - you're representing the
> Django project here, so it's important that you adhere to Django's
> trademark policy. Specifically, the "Dj" character pair isn't an official
> trademark of Django - the full word "django" is the trademark. If you're
> representing the Django project, you should be using the full trademark.
>
> On a stylistic note, the choice of serifed font for the tagline "Web
> framework for perfectionists with deadlines" is inconsistent with the style
> of the Django logo itself. You'll notice that the Django Project website
> doesn't use seriffed fonts.
>
> Yours,
> Russ Magee %-)
>
> On Mon, Jun 16, 2014 at 6:21 PM, Jorge Cardoso Leitão <
> jorgecarlei...@gmail.com> wrote:
>
>> As part of the Stack Overflow free Vote-Based advertising for open source
>> 
>>  for
>> the second half of 2014
>> ,
>> I proposed an ad for Django
>> .
>>
>> The message is "
>> Improve your Python -
>> contribute to Django:
>> The web framework for perfectionists with deadlines"
>>
>> The rationale behind is:
>> "Improve your" -> this is something for you, not to Django
>> "Python" -> this is an ad for developers (as the contest requires)
>> "contribute to Django" -> the goal of the ad
>> "The web framework for perfectionists with deadlines" -> what is Django
>> and at
>> the same time the catchy sentence Django uses.
>>
>> If you have suggestions or criticisms, please share them here or in the
>> post in SO.
>>
>> Feel free to propose your own ad and compete against mine!
>>
>> Cheers,
>> Jorge
>>
>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>>
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/101c25ad-ea29-45d1-8f73-6324fe8f3102%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/OOGMtm9KMcM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJxq84-ffEhr-Bm3bTi-JPBimSdDCXS3Ai327u8zcDE22BoObQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOYPqDBytPeRZbzmUswEqUfQ79ZUNiGqDUqjEVXkQq2_NXgWtw%40mail.gmail.com.
For more options, visit