Re: How does localization work in Django?

2011-03-23 Thread Andre Terra
instructions on how to setup gettext on windows. I must stress my recommendation that you use virtualenv. Don't forget to add the relevant paths to gettext or other utilities in virtualenv should you decide to use it. There's documentation on that around the web too. Sincerely, Andre

Re: extend User Model for custom fields

2011-03-25 Thread Andre Terra
This is the correct way: http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/ Sincerely, Andre Terra On Fri, Mar 25, 2011 at 11:26 AM, Antonio Sánchez wrote: > i have found this: > http://digitaldreamer.net/blog/2010/12/8/custom-user-profile-and-extend-user-admin-

Re: unique_for_date not working?

2011-03-25 Thread Andre Terra
Overwrite the model's save method and add the date automatically on save. That is the best way to do most things "auto" in your models. Sincerely, Andre Terra On Fri, Mar 25, 2011 at 12:48 PM, Ryan Osborn wrote: > The problem with this is that the unique_for_date no longer wo

Re: OT: Django broke my Dropbox

2011-03-29 Thread Andre Terra
"Whoa, this is *so* much better than grep it's not even funny." -- Jacob Kaplan-Moss , creator of Django. +5!! Thanks for the link Cheers, André Terra (airstrike) On Mon, Mar 28, 2011 at 6:42 PM, Shawn Milochik wrote: > On Mon, Mar 28, 20

Re: Dynamically generating form fields

2011-03-31 Thread Andre Terra
I've been fighting to get this to work for me to. I can point you to a few articles that are helping me achieve what I want. There's some black magic involved, but once you play with the code for a while you'll know what it does. http://www.b-list.org/weblog/2008/nov/09/dynamic-forms/ http://douga

Re: How to create django custom login page?

2011-04-02 Thread Andre Terra
For the sake of clarity and future reference, let me suggest another approach that will suffice for some use cases. Sometimes your need can be solved simply by extending upon the original login page, without rewriting anything. For example, if you would like to take e-mails rather than usernames (

Re: multilingual django

2011-04-04 Thread Andre Terra
You'll need to run something like ./manage.py makemessages -l pt_BR This would be the command for generating Brazilian Portuguese language files. -l is the same as --locale=pt_BR. Please refer to the docs for some specifics. These two sections should be the most relevant for you right now: http

jQuery namespace woes - calling third-party scripts

2011-04-04 Thread Andre Terra
Hello. I'm trying to run the supersleight jQuery plugin ( http://allinthehead.com/retro/338/supersleight-jquery-plugin) for fixing PNG transparency in IE6 (this is a corporate intranet project, so I must support it). However, I'm having trouble calling the script because it's telling me jQuery is

Re: import django fails, what should I look at?

2014-07-20 Thread Andre Terra
You should use pip to install django. This is how I go about it, from a fresh install. mkdir ~/virtual mkdir ~/projects pip install virtualenv # unnecessary in python 3.3+ pip install virtualenvwrapper # use this. it will make your life much simplerecho "export WORKON_HOME=$HOME/virtual" >> ~/.ba

Re: import django fails, what should I look at?

2014-07-25 Thread Andre Terra
On Sun, Jul 20, 2014 at 12:57 PM, Andre Terra wrote: > pip install -e git#https://github.com/django/django.git For the record, the right command is pip install -e git+ https://github.com/django/django.git#egg=django -- You received this message because you are subscribed to the Google Gro

Re: How do I use mathematical calculations on my forloop Article/Publication list?

2013-11-23 Thread Andre Terra
Take a look at the docs for aggregation and annotation and using F expressions in them. I just skimmed over your email, but there might be something useful to learn there. https://docs.djangoproject.com/en/dev/topics/db/aggregation/ https://docs.djangoproject.com/en/dev/ref/models/queries/#f-expre

Re: recommended fcgi way for django 1.6 on windows? Problems with https

2014-04-14 Thread Andre Terra
I've used nginx in windows with great results. In fact, I even compiled it on cygwin with additional modules (namely, to track large file uploads) and everything worked smoothly. Cheers, AT On Mon, Apr 14, 2014 at 1:48 PM, anton wrote: > Hi > > I did a test with modwsgi on windows with apache

Re: django output pdf problem

2014-04-24 Thread Andre Terra
Relevant Stack Overflow question/answer: http://stackoverflow.com/a/9970672/447485 In short, you can't do it over simple Ajax, but you can emulate it. Cheers, AT On Thu, Apr 24, 2014 at 8:56 AM, Tom Evans wrote: > On Thu, Apr 24, 2014 at 4:31 AM, 张永强 wrote: > > > > In my program, I want to

Re: Anyone interested in reviewing the code of a small project - BookMarker

2014-05-26 Thread Andre Terra
Why are you using the webbrowser library? I don't see how it makes sense.. Cheers, AT On Mon, May 26, 2014 at 12:32 PM, Aseem Bansal wrote: > Thanks Shmengie. I was thinking of using class based views as it was > pointed in tutorial that they are better but I was not sure which ones are > goo

<    1   2   3   4   5