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] %}
* {% render_
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 [EMAIL
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 gro
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:
>
>
>
&g
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 %}
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 and
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 rend
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, "Richard
8 matches
Mail list logo