Re: Jasper Reports

2007-06-12 Thread Eugene Morozov
On 12 июн, 04:53, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Has anyone successfully used Jasper Reports on the server being called > from a Django view? I've implemented a Jasper server in Jython. It listens on some network port and generates Jasper reports based on data incoming from so

gettext_lazy and string interpolation

2007-06-12 Thread Eugene Morozov
Hello, What is the correct way to use gettext_lazy with string interpolation? Aren't there built-in facilities for this in the Django? Eugene --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Development times

2007-06-20 Thread Eugene Morozov
Hello, I'm interested how much time it took to develop some Django sites. Just curious to compare my performance against others. Currently, I have developed only a single Django site (it is very complex and is actually only 90% ready). It took two months to develop, I have detailed log created us

Re: Development times

2007-06-21 Thread Eugene Morozov
tions I've hit with the framework (or > limitations in my own knowledge). > The scoreboard I just finished an "alpha" of, and that took me less > than 2 weeks. :) > > On Jun 20, 2:00 pm, Eugene Morozov <[EMAIL PROTECTED]> wrote: > > > Hello, > > I'm int

Sharing code between two projects

2007-07-04 Thread Eugene Morozov
Hello, I have two projects, they were developed independently. They will be run on the same server and have many things in common (notably some models and templatetags). While I can import models from another project if it is on PYTHONPATH, I cannot find a way to share templatetags. I don't want

Re: Sharing code between two projects

2007-07-04 Thread Eugene Morozov
Hello, Thank you, must have thought about it... Probably need some rest, now it seems so obvious a solution. Eugene On 4 июл, 15:56, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2007-07-04 at 04:34 -0700, Eugene Morozov wrote: > > Hello, > > I have two projects

Django unit tests and unicode problem

2007-04-29 Thread Eugene Morozov
Hello, I'm new to django (using it only for two weeks and I was reading django tutorial, documentation and book for the first week). I'm writing unit tests for my CMS similar to built-in flatpages CMS, but with builtin i18n features and other things required for full- fledged CMS. I cannot use s

Django unit tests and unicode problem

2007-04-29 Thread Eugene Morozov
Hello, I'm new to django (using it only for two weeks and I was reading django tutorial, documentation and book for the first week). I'm writing unit tests for my CMS similar to built-in flatpages CMS, but with builtin i18n features and other things required for full- fledged CMS. I cannot use s

Re: Django unit tests and unicode problem

2007-04-29 Thread Eugene Morozov
s rendered correctly. Does anyone has suggestions how to test i18n features in Django apps? Eugene On 29 апр, 17:07, Eugene Morozov <[EMAIL PROTECTED]> wrote: > Hello, > I'm new to django (using it only for two weeks and I was reading > django tutorial, documentation and book f

Django for complex websites

2007-05-01 Thread Eugene Morozov
Hello, I have a Zope background and new to Django and mainly interested how people build large websites with it. Imagine a portal with many kinds of sections: blogs, forums, articles, faqs, etc. Building such site on Zope platform is more or less straightforward. As underlying storage is an objec

Re: django i18n and google bots

2007-05-02 Thread Eugene Morozov
I think there's no other solution as to use language designator in URLs and placing language links on the main page. There's no way Google or any other bot can crawl the site several times with different cookies or something. Currently I'm redoing site in Django that suffers the same problem and i

Re: adding XSLT templating to Django

2007-05-12 Thread Eugene Morozov
Hello Nic, On 11 май, 13:23, Nic James Ferrier <[EMAIL PROTECTED]> wrote: > def user_alerts(request, user_name): > me = get_object_or_404(User, username=user_name) > alerts = Alert.objects.filter(user=me, seen=False) > return tfxslt.send_json(HttpResponse(), >

Re: adding XSLT templating to Django

2007-05-12 Thread Eugene Morozov
On 12 май, 17:08, Nic James Ferrier <[EMAIL PROTECTED]> wrote: > Eugene Morozov <[EMAIL PROTECTED]> writes: > > Sorry, I don't get the point. I think that XSLT is a way to separate > > presentation from data. But your json looks like some kind of HTML. I > &g

Another problem with django-multilingual

2007-05-22 Thread Eugene Morozov
Hello, I'm trying to use django-multilingual for multilingual site, instead of reinventing the wheel. But in admin interface I get: "Something's wrong with your database installation. Make sure the appropriate database tables have been created, and make sure the database is readable by the appropr

Re: Another problem with django-multilingual

2007-05-22 Thread Eugene Morozov
= 38)) Aliases must be quoted by django, but they aren't. I've tried to find what causes this quoting error but gave up after two hours... Need to get some sleep. Did anyone attempted to use django-multilingual? Eugene On 22 май, 19:44, Eugene Morozov <[EMAIL PROTECTED]> wrote:

Re: Another problem with django-multilingual

2007-05-22 Thread Eugene Morozov
"AttributeError: 'module' object has no attribute 'multilingual'" Eugene On 23 май, 00:06, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi Eugene, > > On May 22, 5:44 pm, Eugene Morozov <[EMAIL PROTECTED]> wrote: > > > I

Middleware tests location

2007-05-24 Thread Eugene Morozov
Hello, I have a custom middleware class that would be used project-wide. I've put it in the 'middleware' subdirectory of my project because it doesn't really belong to any app. The question is where to put tests for such code that exists outside of any application? Django default test runner only

Django multilingual app, urls

2007-05-25 Thread Eugene Morozov
Hello, I'm creating Django multilingual app using django-multilingual and homebrew middleware. My middleware is similar to Django LocaleMiddleware but it doesn't perform language negotiation (because search engines doesn't perform language negotiations and I need to provide them with a way to inde

Re: Django, Postgres and Core Dumps

2007-05-26 Thread Eugene Morozov
python-psycopg2 package in Ubuntu Feisty for x86-64 is completely broken. I've reported it in the Launchpad on the next day after release, but maintainer is still reluctant to apply patch which should fix 64 bit issues. I've solved the problem by downloading upstream beta version and compiling a

Re: Django, Postgres and Core Dumps

2007-05-26 Thread Eugene Morozov
in debian changelog and build the new package. It's easy, I've done it in less than 10 minutes. Eugene On 26 май, 16:54, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-05-26 at 12:42 +, Eugene Morozov wrote: > > python-psycopg2 package in Ubuntu Feisty for x8

Another suggestion for django-multilingual

2007-05-28 Thread Eugene Morozov
Hello, I found another deficiency in django-multilingual. I'm sure that on many sites, including the one I'm developing now, there would be one primary language for content and translations will appear slowly after the content in the primary language is published. I want to display content in prim

Template question

2007-06-02 Thread Eugene Morozov
Hello, I have a question which might be trivial to answer, but I didn't found answer by scanning the docs. In my base template I have defined inset block: {% block inset %}{% endblock %} I want to remove tags if derived template doesn't fill in the inset block. Of course I c

Re: Template question

2007-06-02 Thread Eugene Morozov
On 2 июн, 17:37, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-06-02 at 06:07 -0700, Eugene Morozov wrote: > > Hello, > > I have a question which might be trivial to answer, but I didn't found > > answer by scanning the docs. > > In my ba

Re: Unicode-branch: testers wanted

2007-06-02 Thread Eugene Morozov
On 24, 17:06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Hi folks, > > The unicode branch, [1], is now at a point where it is essentially > feature-complete and could do with a bit of heavy testing from the wider > community. > > So if you have some applications that work against Django

Large streaming uploads (#2070) doesn't work for me at all

2007-11-03 Thread Eugene Morozov
Hello, I've applied patch from #2070 and I have disastrous result. I'm trying to upload a 12Mb PNG file. Apache starts eating memory rapidly, consuming several Gb in seconds and I have to kill it (if I have enough time to log in as root and find pid of the httpd process). I'm using Django trunk (

Large streaming uploads (#2070) doesn't work for me at all

2007-11-03 Thread Eugene Morozov
Hello, I've applied patch from #2070 and I have disastrous result. I'm trying to upload a 12Mb PNG file. Apache starts eating memory rapidly, consuming several Gb in seconds and I have to kill it (if I have enough time to log in as root and find pid of the httpd process). I'm using Django trunk (

Re: Large streaming uploads (#2070) doesn't work for me at all

2007-11-04 Thread Eugene Morozov
On 4 нояб, 07:05, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > You might at least try mod_python 3.3.1 instead of the older > mod_python 3.2.10. The newer version fixes a lot of problems including > memory leaks. Hello Graham, Compiled and installed 3.3.1. Exactly the same result! Apache consume

Re: Large streaming uploads (#2070) doesn't work for me at all

2007-11-05 Thread Eugene Morozov
> If you run Django with its standalone development server do you see > the same behaviour? Ie., does the Django process blow out in size? > > Unless you are bound to mod_python because of other code which uses > its APIs directly, then also consider trying to host Django under > mod_wsgi (http:/

Re: YAFU: Yet Another File Upload app...

2007-11-07 Thread Eugene Morozov
Hello, Thanks for your contribution. There's a similar functionality in Django Trac #2070 and #4165. #2070 contains patch with an implementation of streaming file uploads. This seems to be working. #4165 contains middleware and javascript that implement file upload progress monitoring for the Dja

Re: FlatPage and Internationalization

2007-11-09 Thread Eugene Morozov
I've implemented similar system. Only I have used MyFlatPage and MyFlatPageTranslation models, because it makes easier to locate and translate pages in the admin interface. On 9 нояб, 15:25, DvD <[EMAIL PROTECTED]> wrote: > Hi everyone, > lately i was trying to internationalize a wesite which had