urls with/without implicit views import

2012-04-20 Thread Alexey Luchko
Hi! I wonder what are pros and cons of explicit import views in urls.py. There are at least 2 ways of defining urlpatterns. * explicit import from . import views urlspatterns = patterns('', ('а/', views.a), ) * lazy import urlspatterns = patterns('path.to.app.views', ('a/', 'a'), ) The

Re: Reports

2012-03-16 Thread Alexey Luchko
We are using PDFs. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/EfQeowVhrBoJ. To post to this group, send email to django-users@googlegroups.com. To

Re: Reports

2012-03-05 Thread Alexey Luchko
Hi! We are using http://PythonReports.sf.net/. -- Regards, Alex. -- 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 unsubscribe from this group, send email to

Re: Logging from multiple processes

2012-02-16 Thread Alexey Luchko
Hi! We are using TimedRotatingFileHandler with overridden stream with a class that opens log file for append on every write. -- Regards, Alex. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Report tool is supported for django .

2011-10-06 Thread Alexey Luchko
I need to make a report with django . This report supports (chart , export PDF, Excell ...,) please give me some recommendations with tool i must use for this case. To produce printable reports, you can try http://pypi.python.org/pypi/PythonReports/. -- Regards, Alexey. -- You received this

Re: Django 1.3 logging not working as I'd expect

2011-08-29 Thread Alexey Luchko
Hi, try executing import logging logger = logging.getLogger('testlogger') logger.warn('hello') logger.info('please appear') in ./manage shell. -- Alex -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Defunct Processes on Server

2011-08-12 Thread Alexey Luchko
On 12.08.2011 16:48, SixDegrees wrote: Calling wait() on the processes freezes the form page until the process completes. The poll() also exists. You can also start a thread that will wait() for the child. One per child or one per all of the children. The other way is to fork() twice as

Re: Setting LOGIN_URL dynamically, for different users, based on app?

2011-07-25 Thread Alexey Luchko
On 23.07.2011 18:13, dpapathanasiou wrote: That's interesting, I hadn't thought about using a hidden input for next in the two login templates. In the end, though, I went with just one login template. And rather than use UserProfiles (since there were no additional attributes I needed to

Re: Setting LOGIN_URL dynamically, for different users, based on app?

2011-07-22 Thread Alexey Luchko
On 22.07.2011 17:32, dpapathanasiou wrote: So you're saying: have the function which handles the post-login request (i.e., defined in with LOGIN_REDIRECT_URL in settings.py and in urls.py to some corresponding views.py function) make that type check of user A/B, and simply redirect accordingly?