How to pass a special character in url

2008-10-29 Thread Zeal
Hi, All, I just want to pass a special character by using url to the proper view. For example, "http://127.0.0.1/sampleview/?obj=xxx"; , but seems django cannot handle such pattern. Does any one know this, or are there any relevant doc I can learn for this. Your precious suggestion would be hi

Performance Issue: ForeignKey will touch database again!

2009-04-01 Thread Zeal
ger another sql query if there is a ForeignKey field. Because of this reason, my django application is really slow on showing large records in one page, is this a performance issue in Django and Postgresql? Does every body know this issue and know how to solve it? Your

Re: Performance Issue: ForeignKey will touch database again!

2009-04-02 Thread Zeal
On 4月2日, 下午2时39分, Alex Koshelev wrote: > On Thu, Apr 2, 2009 at 10:36 AM, Zeal wrote: > > > Documentation knows [1] > > [1]:http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4 Hi, Alex, Really appreciates your prompt response and useful solution, the sql

Re: Performance Issue: ForeignKey will touch database again!

2009-04-03 Thread Zeal
Thanks Malcolm, I think I've find the issue. I set time.time() to test several steps in my program, retrieving data is pretty fast, the entire function spent 6s to finish the task. However, at the final stage on template rendering, seems Explorer(IE) will be under highly loaded status(not respon

Can I just put user id in session for authorization purpose?

2009-04-03 Thread Zeal
I'm a newbie, I've been using Django to develop an application. The entire application need to be based on an authorization mechnism. As of my current programe, I just put user's id in session when they log in, and there is a authorization decorater to judge whether a request object include user i

Re: Performance Issue: ForeignKey will touch database again!

2009-04-03 Thread Zeal
One reason is that The pagination function does conflict my current url design of my application. And, another reason is, I use css+div to simulate the iframe style in the page, so user is allowed to see all authorized data in one page by scrolling the scrollbar. Comparing scrolling and paginati

Re: Can I just put user id in session for authorization purpose?

2009-04-05 Thread Zeal
Django's auth is pretty good, however, I need some row-level authorziation mechnism, like in which department and function that the certain user could access, so my needs on authrization are pretty different than default auth model. Thanks! --~--~-~--~~~---~--~~ You

Re: Can I just put user id in session for authorization purpose?

2009-04-06 Thread Zeal
error_msg=msg_incorrect if psw_times!=0 else msg_suspend #msg_incorrect%(psw_times) return render_to_response(template, {'form':empty_form,'error_msg':error_msg}) else:#2 user doesn't exist in database return render_to_resp

How to automatic backup Postgres on Windows?

2009-04-22 Thread Zeal
Hi All, I got following code in django snippets, but I found that popen2.Popen4 () is not available for Windows, then I changed to popen2.popen4(cmd) to initiate the backup process, however, popen4(not Popen4) do not have tochild method, does anyone know how to solve it in windows platform, thank

Re: How to automatic backup Postgres on Windows?

2009-04-22 Thread Zeal
Sorry, I missed some important part of my code, try: pipe = popen2.Popen4('pg_dump %s > %s' % (' '.join(args), outfile)) if self.passwd: pipe.tochild.write('%s\n' % self.passwd) #this method is only applicable for unix like system

SCORM(Sharable Content Object Reference Model) Compliant for Django?

2010-04-22 Thread Zeal
e' is a greate LMS project with SCORM support, however it is developed by PHP, not python. Your professional advice would be highly appreciated! Zeal -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: SCORM(Sharable Content Object Reference Model) Compliant for Django?

2010-05-05 Thread Zeal
Thanks Skylar. django-scorm-rest-rte has really less documentation for studying. Maybe, SCORM is not the hot technology for LMS. Does anyone use any else LMS technology with Django in the world? I think LMS is really a hot topic in the future, and even now. If there is any possibility to ship LMS

Re: SCORM(Sharable Content Object Reference Model) Compliant for Django?

2010-05-21 Thread Zeal
Hi, Ryan, You mentioned that SCORM is supported in your system, could you tell me more about how do you integrate SCORM compliant with your Django Application? Do you just use PyAmf and Flex to handle that? Thanks a lot! Regards, Zeal Hua -- You received this message because you are