Re: Invalid block tag: render_comment_form

2009-01-01 Thread MariusB
I'm also using Django 1.0 [1.0-final-SVN-unknown] and I was getting Invalid block tag errors while using both: * {% comment_form %} and * {% free_comment_form %} The solution that works for me is: {% render_comment_form %} with the syntax: * {% render_comment_form for [object] %} * {%

Re: Using a Python module

2008-02-02 Thread MariusB
Thanks for your help, Jeff! --~--~-~--~~~---~--~~ 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: How can I parse and process the contents of an URL?

2008-01-31 Thread MariusB
Thank you all! Indeed, it was because I was using Django's internal server (runserver). When I tried any other url, it worked. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: converting string to list

2008-01-29 Thread MariusB
request.POST.get('q', '') > if query_string: >query = [ query_string ] > else: >query = [] > > Reading the Python tutorial probably wouldn't hurt. > > Remco > > On Jan 29, 2008 2:19 PM, MariusB <[EMAIL PROTECTED]> wrote: > > > > > In the view take

converting string to list

2008-01-29 Thread MariusB
In the view take an URL from the query: query = request.POST.get('q', '') and in the template I want to print it out in a list {% if query %} {% for url in query %} {{ url }} {% endfor %}

Using a Python module

2008-01-27 Thread MariusB
I have a Python module with two classes: - one for crawling and creating the database, - and the other for doing full-text searches by querying the SQLite database. How can I use this module in Django, to import it or something? I want to pass on the arguments from the Web form to my module

How can I parse and process the contents of an URL?

2008-01-27 Thread MariusB
I'm trying to take a link as an argument, open it, read it's content and then display the first 50 characters from it. First of all, I've tried to put the code in the views.py, but I didn't make it. Now I made a middleware component with this code: import urllib2 from django.shortcuts import

Re: Very Easy Question

2008-01-10 Thread MariusB
I had the same problem on Vista with v0.96.1... Following Richards solution, I've copied the django subfolder into C: \Pythong25\lib\site-packages\ and I get no error for import django Are there any problems for this solution or is this all there is to it? On Dec 20 2007, 9:06 pm,