Re: Decorator aware Django

2011-12-14 Thread Derek
On 14 December 2011 23:57, Matej Cepl wrote: > On 13.12.2011 15:14, Javier Guerra Giraldez wrote: >> >> for me, is opposed to the "explicit is better than implicit" in the >> Zen of Python.  not a bad thing on itself, but something to be careful >> about.   (and, personally,

Re: Translating templates

2011-12-14 Thread Karen Tracey
On Wed, Dec 14, 2011 at 3:13 PM, Demetrio Girardi < demetrio.gira...@gmail.com> wrote: > My project has a bunch of text embedded deep within the html markup in > templates that I need to translate. The text, imo, belongs to templates > and it > has no place in the application logic. > > From what

Re: ERP in DJango; what's available? — I'm thinking of writing a DJango wrapper to OpenERP

2011-12-14 Thread kenneth gonsalves
On Thu, 2011-12-15 at 03:55 +1100, Alec Taylor wrote: > What's available in terms of ERP on DJango? > > If there isn't anything that is maintained and has a strong > feature-set, I'm thinking of writing a DJango wrapper to OpenERP (and > would be happy to release this under FreeBSD license).

Re: Website Documentation Search broken?

2011-12-14 Thread kenneth gonsalves
On Wed, 2011-12-14 at 08:01 -0800, creecode wrote: > I can't say for sure but for some time it seems to me that searching > has become more difficult. I can't put my finger on any specifics. I > have found that some phrases that are in my browser form field cache > I've used in that past no

Re: Django a Turnkey Linux -- I need your experience.

2011-12-14 Thread Nick Raptis
Hello Petr. While certainly not a full fledged django user, I do have taken the Turnkey Linux approach myself, and frankly, I love it. Hope I can give you some helpful pointers. They are pretty generic though I'm afraid and perhaps not addressing your specific problem. If so, please share

Re: Decorator aware Django

2011-12-14 Thread Matej Cepl
On 13.12.2011 15:14, Javier Guerra Giraldez wrote: for me, is opposed to the "explicit is better than implicit" in the Zen of Python. not a bad thing on itself, but something to be careful about. (and, personally, it's a big part of why i like Django so much better than RoR) I am a complete

Re: Django + ajax waiting page, can not redirect to result page

2011-12-14 Thread yun li
But it still cannot work. when I submit something, it goes to the please_wait page showing "please wait" and then nothing happened. I really have no knowledge on ajax, so is there something I need to install or import in my projects? and how can I test if codes in ... really invoked? Thanks, On

Re: Django a Turnkey Linux -- I need your experience.

2011-12-14 Thread Brett Epps
You'll need to do some research to find out how Turnkey Linux deploys your Django app. There are multiple methods, but the one recommended in the Django docs is to use Apache + mod_wsgi. If Turnkey Linux uses this method, Apache should be configured with a virtual host that points at a WSGI

Re: Django + ajax waiting page, can not redirect to result page

2011-12-14 Thread Brett Epps
I think the problem is that your tag is incorrect. You're using the same one to load jQuery and to add your code, so your JavaScript is not getting run. The file "please_wait.html" should look like this: Please wait.

Raise validation error for empty formset

2011-12-14 Thread Martin Tiršel
Hi, I have a formset where I need to raise ValidationError if all forms in this formset are empty and submitted but I can not find any useful informations. Any suggestions? Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Website Documentation Search broken?

2011-12-14 Thread creecode
Hello Jacob, On Wednesday, December 14, 2011 10:14:10 AM UTC-8, Jacob Kaplan-Moss wrote: > > > Ugh, I'm sorry. If you take some notes on what those searches are -- > which ones aren't returning results you'd expect -- and let me know I > can tweak it. > No problem man, it's just good to know that

Translating templates

2011-12-14 Thread Demetrio Girardi
My project has a bunch of text embedded deep within the html markup in templates that I need to translate. The text, imo, belongs to templates and it has no place in the application logic. >From what I understand, localization in templates is limited to variables, which is not useful to me.

Re: Is DJango bad for conveying business-logic?

2011-12-14 Thread Tiago Almeida
"Business Logic" is too broad to give you a good answer. If you mean stuff like calculating salaries (if your domain is HR) or determining if a 'monster' is dead (for a game) then django should pose no obstacle since it is based in python and you should implement all that logic in your own

Re: Django + ajax waiting page, can not redirect to result page

2011-12-14 Thread yun li
Hi, Does anyone can help? Here are all contents in my files, I tried variable ways, but when I submit a form, it only return the please_wait page and then stay there forever. There is no redirect happened. Since I want to check if it works first, there is no actual calculation in the code.

Re: Django Persistent DB connections - A different approach

2011-12-14 Thread Alec Taylor
No reason you can't ACID the whole thing Important info: http://en.wikipedia.org/wiki/Concurrency_control#Methods On Thu, Dec 15, 2011 at 5:18 AM, akaariai wrote: > A quick warning about your approach: if you use that in multi-threaded > environment, you are toasted. You

ERP with Supply chain management (incl. POS) and Customer relationship management — What's available?

2011-12-14 Thread Alec Taylor
Good morning, I am building a ERP [http://en.wikipedia.org/wiki/Enterprise_resource_planning] with Supply chain management (incl. POS and ecommerce) and Customer relationship management. Which libraries (or projects even) will provide the best base for building this off? Thanks for all

Re: ERP in DJango; what's available? — I'm thinking of writing a DJango wrapper to OpenERP

2011-12-14 Thread Alec Taylor
>On Thu, Dec 15, 2011 at 4:24 AM, Antoni Aloy wrote: > I think people from zikzakmedia has done some work : > http://www.zikzakmedia.com/blog/zoook-openerp-e-sale-tool > It looks like what I'm looking for (well I also want POS). But a bit confusing; isn't Magento a PHP

Re: ji18n translation in template file

2011-12-14 Thread kreid
Yea, I've read through it all thoroughly and everything seems to work ok except for the jquery in each template. So, I've moved it all to .js files which seems to be working now. Thanks for the reply, Kreid On Dec 14, 9:17 am, Tom Evans wrote: > On Wed, Dec 14, 2011

Re: Django Persistent DB connections - A different approach

2011-12-14 Thread akaariai
A quick warning about your approach: if you use that in multi-threaded environment, you are toasted. You will get two concurrent users for the same connection, and that will not work nicely. For example transaction control will be broken. That is also the reason why that sort of thing is not used

Re: Website Documentation Search broken?

2011-12-14 Thread Jacob Kaplan-Moss
On Wed, Dec 14, 2011 at 10:21 AM, Torsten Bronger wrote: > creecode writes: > >> I can't say for sure but for some time it seems to me that >> searching has become more difficult.  I can't put my finger on any >> specifics.  I have found that some phrases that are

Re: ERP in DJango; what's available? — I'm thinking of writing a DJango wrapper to OpenERP

2011-12-14 Thread ionic drive
OpenERP: think about tryton http://www.tryton.org cheers ionic On Thu, 2011-12-15 at 03:55 +1100, Alec Taylor wrote: > What's available in terms of ERP on DJango? > > If there isn't anything that is maintained and has a strong > feature-set, I'm thinking of writing a DJango wrapper to OpenERP

Re: ERP in DJango; what's available? — I'm thinking of writing a DJango wrapper to OpenERP

2011-12-14 Thread Daniel Roseman
On Wednesday, 14 December 2011 16:55:58 UTC, Alec Taylor wrote: > > What's available in terms of ERP on DJango? > > If there isn't anything that is maintained and has a strong > feature-set, I'm thinking of writing a DJango wrapper to OpenERP (and > would be happy to release this under FreeBSD

Re: Japanese Text Sort Order

2011-12-14 Thread Masklinn
On 2011-12-14, at 18:17 , Denys Poulat wrote: > Hello everyone, > > Does anyone have a solution for us about sorting in Japanese? > > We have a list of names (in Japanese, typed by Japanese people with > Japanese computer), and we want to order them like in the dictionary: > A > Ka > Sa > Ta >

Re: Exception Value: auth() takes exactly 1 argument (0 given)

2011-12-14 Thread Tom Evans
2011/12/14 Ahmet Emre Aladağ : > I'm trying to use tschellenbach-Django-facebook for allowing Facebook > logins. But whenever I try to login, I get the following error: > > Exception Type: TypeError at /facebook/connect/ > Exception Value: auth() takes exactly 1 argument (0

Re: ERP in DJango; what's available? — I'm thinking of writing a DJango wrapper to OpenERP

2011-12-14 Thread Antoni Aloy
I think people from zikzakmedia has done some work : http://www.zikzakmedia.com/blog/zoook-openerp-e-sale-tool 2011/12/14 Alec Taylor : > What's available in terms of ERP on DJango? > > If there isn't anything that is maintained and has a strong > feature-set, I'm thinking

Re: Japanese Text Sort Order

2011-12-14 Thread Denys Poulat
Hello everyone, Does anyone have a solution for us about sorting in Japanese? We have a list of names (in Japanese, typed by Japanese people with Japanese computer), and we want to order them like in the dictionary: A Ka Sa Ta ... If you have code or if you can do it, thanks to contact us:

Exception Value: auth() takes exactly 1 argument (0 given)

2011-12-14 Thread Ahmet Emre Aladağ
I'm trying to use tschellenbach-Django-facebook for allowing Facebook logins. But whenever I try to login, I get the following error: Exception Type: TypeError at /facebook/connect/ Exception Value: auth() takes exactly 1 argument (0 given) Long trace: http://pastebin.com/hy8BXrkJ I

Re: ji18n translation in template file

2011-12-14 Thread Tom Evans
On Wed, Dec 14, 2011 at 5:00 PM, kreid wrote: > My template file contains javascript/jquery.  When translating with > gettext from a .js file there are no problems as the 'makemessages' > switch picks it up and places it into the djangojs.po file.  However, > when the

ji18n translation in template file

2011-12-14 Thread kreid
My template file contains javascript/jquery. When translating with gettext from a .js file there are no problems as the 'makemessages' switch picks it up and places it into the djangojs.po file. However, when the javascript is embedded in the template file (i.e. a txt file) makemessages picks up

ERP in DJango; what's available? — I'm thinking of writing a DJango wrapper to OpenERP

2011-12-14 Thread Alec Taylor
What's available in terms of ERP on DJango? If there isn't anything that is maintained and has a strong feature-set, I'm thinking of writing a DJango wrapper to OpenERP (and would be happy to release this under FreeBSD license). -- You received this message because you are subscribed to the

Re: Website Documentation Search broken?

2011-12-14 Thread Torsten Bronger
Hallöchen! creecode writes: > I can't say for sure but for some time it seems to me that > searching has become more difficult. I can't put my finger on any > specifics. I have found that some phrases that are in my browser > form field cache I've used in that past no longer return results. >

Re: Website Documentation Search broken?

2011-12-14 Thread creecode
Hello all, I can't say for sure but for some time it seems to me that searching has become more difficult. I can't put my finger on any specifics. I have found that some phrases that are in my browser form field cache I've used in that past no longer return results. And I'm almost certain

Re: Is DJango bad for conveying business-logic?

2011-12-14 Thread Alec Taylor
Thanks all. DJango-erp looks interesting in and of itself. Is there an ERP solution open-sourced with DJango that is maintained? On Thu, Dec 15, 2011 at 1:08 AM, bobhaugen wrote: > I'm developing quite complex business systems in Django, and if you > google for "django

Re: 2 questions about Django

2011-12-14 Thread Ivo Brodien
> 1) Can I make a site like this one (http://www.tamarawobben.nl) with > Django. > Till now I find no solution which I can have different numbers of > articles on pages. Yes, of course you can. You can almost do anything with Django as django to put it simply mainly will output HTML Code which

cannot set GeometryProxy with value of type

2011-12-14 Thread Antony
Hi, I am simply trying the following, outerWallPolygon = SpatialFeatures.objects.all() print "outerWallPolygon: ",outerWallPolygon[0].geometry and get this error. cannot set GeometryProxy with value of type: I believe I have everything set up correctly, the Geomanager, the GIS libraries in

Re: Is DJango bad for conveying business-logic?

2011-12-14 Thread bobhaugen
I'm developing quite complex business systems in Django, and if you google for "django erp" you'll find a bunch of those. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To

Re: Is DJango bad for conveying business-logic?

2011-12-14 Thread Derek
I'd echo this. In my experience, the code to implement business logic is far, far less complex than that required to implement databases, web servers, email systems etc. etc. The skill required here is a mix of understanding of user/business requirements and coding ability. The best tool in the

2 questions about Django

2011-12-14 Thread roelof
Hello, 1) Can I make a site like this one (http://www.tamarawobben.nl) with Django. Till now I find no solution which I can have different numbers of articles on pages. The only thing I want to change is a collapse year/month menu 2) Does anyone know if I can work with Django on my shared

Django Persistent DB connections - A different approach

2011-12-14 Thread nipunreddevil
Hi, I have gone similar threads like http://stackoverflow.com/questions/1125504/django-persistent-database-connection and other stuff on same topic. However Django doesn't officially support persistent connections to MySQL and Mongo(to my limited knowledge).So i tried avoiding a lot of stuff and

Django + ajax waiting page, can not redirect to result page

2011-12-14 Thread yun li
Hi all, I have the problem for constructing waiting page using Django + ajax. I followed instructions mentioned in the following link, http://groups.google.com/group/django-users/browse_thread/thread/c1b0d916bbf86868. However, when I run my program, it stops in http://127.0.0.1:8000/please_wait

Re: Website Documentation Search broken?

2011-12-14 Thread Thomas Guettler
Ignore it, this morning even a single word search had no results. Now it works. All is fine Thomas On 14.12.2011 10:55, kenneth gonsalves wrote: On Wed, 2011-12-14 at 10:02 +0100, Thomas Guettler wrote: is the search on https://docs.djangoproject.com/en/1.3/ broken, or is it just me,

Need help with custom search using admin queryset

2011-12-14 Thread Raoul
Dear Django list, I need some help with a custom queryset I use in a project to extend standard admin search function. Unfortunately the model has no relation, as the Customers table is running on an external unmanaged Database. Here is the code snippet from my admin.py to lookup the Status

Re: Website Documentation Search broken?

2011-12-14 Thread kenneth gonsalves
On Wed, 2011-12-14 at 10:02 +0100, Thomas Guettler wrote: > is the search on https://docs.djangoproject.com/en/1.3/ broken, or is > it just me, > getting no results? afaik search on multiple terms has not been working for a long time: compare

Django a Turnkey Linux -- I need your experience.

2011-12-14 Thread Petr Přikryl
Hi,  Being quite new to Django, I need to move the semi-ready application to the publicly available server (for a company users) and test it there.   It happened that the Django Turnkey Linux virtual machine was installed for the purpose by someone else. I have succeeded to SCP the files there. I

Re: Can a template extend a template?

2011-12-14 Thread Jason
That's a cool idea Ian. I was reluctant to put this code serverside (MVC considerations) but I see now that really it is somewhere in the app logic rather than display so it kinda fits in with that methodology... I'll give it a bash. Thanks for the explanation Russell. -- You received this

Website Documentation Search broken?

2011-12-14 Thread Thomas Guettler
Hi, is the search on https://docs.djangoproject.com/en/1.3/ broken, or is it just me, getting no results? Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google Groups "Django