Internationalized URLs

2009-10-10 Thread Anderson Santos
Hello, I'm trying to find the best approach to have multiple languages urls on reusable apps but I can't find a good way to do it and I couldn't find any useful information around. I am not sure if the best is just to do something like this: url(r'^%s/$' % _('mymultipath'),myview,name='myviewnam

Re: Error with unittests for django.contrib.auth: ERROR: Error is raised if the provided email address isn't currently registered

2009-10-03 Thread Anderson Santos
Hello, I've run on the same problem and now I see that all my custom templates overrides the default template. I checked that if I rename my custom project/templates/registration folder to something else the test runs ok, but if I rename the template so it doesn't conflicts, it will work fine. Wh

Re: Microsoft using Django?

2009-03-06 Thread Anderson Santos
Dãr, it was a IE bug displaying a error message from my own server. Sorry On 6 mar, 20:12, Anderson Santos wrote: > I tried to access a file from Microsoft website I got a Django error, are > they really using Django? (It's not phising or spam, just copy and paste the >

Microsoft using Django?

2009-03-06 Thread Anderson Santos
I tried to access a file from Microsoft website I got a Django error, are they really using Django? (It's not phising or spam, just copy and paste the link) http://download.microsoft.com/download/f/3/c/f3c93e70-ccdc-46c9-bbd4-70d94bdd0cc9/IEDevToolBarSetup.msi/ Cheers, Anderson --~--~

Re: Best practice to build a multilingual site

2008-10-13 Thread Anderson Santos
I was using i18ndynamic (http://djangoplugables.com/projects/ i18ndynamic/) for a website, on our new project I prefered not to use afraid of performance issues. We are going to achieve something like Cortland said, but we're still analyzing the possibilities. The main issue is an easy to use adm

Add custom filter in ChangeList admin page

2008-10-13 Thread Anderson Santos
Hello everyone I was looking for a documentation on how to create a new filter in ChangeList admin but no luck for an official documentation. I want to add personalized filters to some models, for example, filter only active records (which is not the default manager) and have some special groupi

Re: Django / Postgresql problem

2008-10-09 Thread Anderson Santos
No, problem still exists. sigh. On Oct 5, 10:10 am, "Anderson Santos" <[EMAIL PROTECTED]> wrote: > Hello, everyone > > I am getting a strange "permission denied" error on database server running > my site. > > I am trying to send bulk mail to a huge

Re: Django / Postgresql problem

2008-10-09 Thread Anderson Santos
oth django checkouts were the same revision. Anyway, I changed the name of django directory in site-packages and now seems to working very very well. So, if you get a strange problem, check if you are using a wrong django On Oct 5, 10:10 am, "Anderson Santos" <[EMAIL PROTECTED]>

Re: Django-sphinx with postgresql

2008-10-09 Thread Anderson Santos
Hello Rob We are using Sphinx and Postgresql and it improved our searches with less resources. We have over 300k records in one table and a usual search takes only few milisecons. I believe it's being maintained but with current code it's working very well without any update. Hope it helps An

Django / Postgresql problem

2008-10-05 Thread Anderson Santos
Hello, everyone I am getting a strange "permission denied" error on database server running my site. I am trying to send bulk mail to a huge list, it was working fine few days ago but now it's dropping connections everytime. I had postgresql log configured just few days ago and it's full of "une

Change app name in Admin (Newforms-admin)

2008-06-06 Thread Anderson Santos
I was wondering how to translate application name in Admin page and I only found messages back to 2006 with a suggestion to include a variable "__verbose_name__" in the application's __init__.py file and no ticket at all. There are any news about it? Wouldn't be good if at least the newforms- adm

Server profile

2008-02-25 Thread Anderson Santos
imated the requirements for applications of that size and I have no idea of the requirements for a Django app with such size. And is mod_python the best option for us? I do think so, but I am not sure if it will require much more resources and will become too expensive. Cheers, Ander

Re: client.login() returns false

2007-09-09 Thread Anderson Santos
I knew that it was something stupid =P Thanks a lot =) On 9 set, 11:07, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 9/9/07, Anderson Santos <[EMAIL PROTECTED]> wrote: > > > > > Hello, I am trying to do a basic test authentication but I am u

Re: unicode upgrade breaks non-ascii content

2007-09-09 Thread Anderson Santos
I had to work on my old website again to fix it, since even doing iconv on my files and database didn't converted well. It was a pain, and sometimes I get unicode error on my django app. I wish it could be more easy (or less painy) to migrate apps. =) On 8 set, 06:25, Kenneth Gonsalves <[EMAIL

client.login() returns false

2007-09-09 Thread Anderson Santos
Hello, I am trying to do a basic test authentication but I am unable to get it working. I made some changes to be sure that the user has been created, here's my testcase: from django.contrib.auth.models import User class StoreTest(TestCase): def setUp(self): from basecommerce.apps.st

Re: Strange encoding behavior

2007-08-31 Thread Anderson Santos
anced settings for the application. Should I put it on the top of all my files? Cheers, Anderson On 31 ago, 08:37, Michael Radziej <[EMAIL PROTECTED]> wrote: > On Fri, Aug 31, Anderson Santos wrote: > > > Here the code: > > > class Download(models.Model): > >

Re: Strange encoding behavior

2007-08-31 Thread Anderson Santos
other application that never occured with Lighttpd. I am afraid that's something about mod_python. Regards, Anderson On 30 ago, 19:06, Michael Radziej <[EMAIL PROTECTED]> wrote: > On Thu, Aug 30, Anderson Santos wrote: > > > I am still having this issue. > > I have i

Re: Strange encoding behavior

2007-08-30 Thread Anderson Santos
cial chars), it raises an error "SET client_encoding to 'UNICODE'" in django/db/backends/postgresql/base.py I really have no clue why it's happening. I just updated from svn so I have the latest django. Any help will be really appreciate cheers Anderson On 29 ago,

Strange encoding behavior

2007-08-29 Thread Anderson Santos
Hello, I am migrating a stable lighttpd+fcgi django app to apache+mod_python and I am dealing with a strange encoding behavior. Here what I did: With a plain migration from the working app to the new mod_python one I got a lot of LATIN1 codec errors that never occured on the last architecture.

Re: Developing a flexible CMS

2007-06-29 Thread anderson . santos . br
Hello everyone, I am talking to a friend to find a good solution for this question and finally write our own CMS. I am really thinking about how to create a flexible CMS and don't break django or don't rework a lot of stuff. So, what I do believe is that we have to focus on a Management System the

Re: Long time process and FCGI

2007-03-30 Thread Anderson Santos
Thank you, again. Now I think I have enough information to find my way =D On 3/30/07, xgdlm <[EMAIL PROTECTED]> wrote: > > > I am just not sure about how to call the shell script. > > I would call the shell script withing a cronjob command : > python /path/to/sendmail.py > > this script would

Re: Long time process and FCGI

2007-03-30 Thread Anderson Santos
I was looking for how to execute a script and I was just thinking how to use django code and here is your e-mail! Thank you! I am just not sure about how to call the shell script. should I use the os.system(command) or the os.popen ? That seems that popen just return when I close the script and

Re: Long time process and FCGI

2007-03-30 Thread Anderson Santos
guess you don't need anything so flashy in > your case. > > > On 30/03/07, Anderson Santos Silva <[EMAIL PROTECTED]> wrote: > > > > That's exactly what I thought when I dealed with that, but I can't > > imagine a separated process running in the backgro

Re: Long time process and FCGI

2007-03-29 Thread Anderson Santos Silva
in its code) that is triggered by certain actions in > your web-application, or scheduled by cron. In any case - it is not > the job of your django view to handle bulk transfers, it was not meant > to be doing that, even if the mod_fcgi didn't have the timeout. > > > On 30/03/0

Long time process and FCGI

2007-03-29 Thread Anderson Santos Silva
Hello, I have a process that sends an e-mail to more then 5000 addresses (grouping it in 50 each time) and after a while it gives me the error: --- Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact th

Removetags template filter

2007-03-28 Thread Anderson Santos Silva
Hello everyone, I have a field with a tinymce editor, so it saves html tags inside the field and this text is send by e-mail with an html and an alternative text version. So, I have to remove all the <> tags, how can I get this in place of putting all possible html code that I can remember

Re: Problem with order_with_respect_to and self

2007-03-27 Thread Anderson Santos Silva
search_fields = ['description'] class Meta: order_with_respect_to = 'self' ordering = ['position','description'] Thanks for your help, 4nderson | Malcolm Tredinnick wrote: > On Mon, 2007-03-26 at 22:41 -0300, Anderson Sa

Re: Problem with order_with_respect_to and self

2007-03-26 Thread Anderson Santos Silva
;s a clue. Regards, Anderson Malcolm Tredinnick wrote: > On Mon, 2007-03-26 at 19:23 -0300, Anderson Santos Silva wrote: > >> Hello, I am having problem when I use the order_with_respect_to and >> a self related foreign key model: >> >>

Problem with order_with_respect_to and self

2007-03-26 Thread Anderson Santos Silva
Hello, I am having problem when I use the order_with_respect_to and a self related foreign key model: When I validate this, it raises "'str' object has no attribute 'get_section_order'" and when I use self or Section, it raises the error: "Section has no field named 'self'" class Sect