Re: Redirect to another location in case of 404 and 500

2006-06-29 Thread Kristoffer
e your Django privileges. > Thank you for your piece of advice, I don't consider redirecting any more. I will still need to take some specific actions, though, so I'll give custom 404 and 500 handlers a try. Thanks, Kristoffer --~--~-~--~~~---~--~~ You

Re: Redirect to another location in case of 404 and 500

2006-06-29 Thread Kristoffer
Unfortunately, no. I was a bit unclear, but I want to redirect the user to a completely new location in case of an error. Say, for example, that the user navigates to http://mysite.org/myapp/dir/page, which causes an internal error. I would like the user to get redirected to http://someothersit

Redirect to another location in case of 404 and 500

2006-06-29 Thread Kristoffer
Hi all, Is there a simple way of redirecting the user to another location in case of a 404 or a 500 error, like /mysite/global404.html and /mysite/global500.html, respectively, instead of showing the standard 404 and 500 templates? Thanks for any input, Kristoffer

Re: Adding search functionality

2006-06-27 Thread Kristoffer
Works like a charm! Thanks a lot! -Kristoffer --~--~-~--~~~---~--~~ 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

Re: Adding search functionality

2006-06-27 Thread Kristoffer
ponse patch_vary_headers(response, ('Cookie',)) File "/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/utils/cache.py", line 104, in patch_vary_headers if response.has_header('Vary'): AttributeError: 'QuerySet' object has no attribut

Re: Adding search functionality

2006-06-27 Thread Kristoffer
in version 0.91? Thanks, Kristoffer --~--~-~--~~~---~--~~ 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

Adding search functionality

2006-06-26 Thread Kristoffer
if I would like to add basic search functionality? I have django 0.91 installed (using 'emerge' on my Gentoo Linux box). Do I need to install "stuff" or "AbstractSearching" manually (fetching it with svn) for this to work? In that case, where do I put the files? Th

Markup support only in trunk version?

2006-06-12 Thread Kristoffer
A quick question: Is there support for ReST in templates in Django 0.91 or is it only in the trunk version? Thanks, Kristoffer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: Please help with project setup

2006-06-07 Thread Kristoffer
, '.join([d.title for d in docs]) return HttpResponse("Hello, all available docs are: %s %s" % (doc_id, output)) from django.conf.urls.defaults import * urlpatterns = patterns('doccenter.articles.views', (r'^$', 'index'), (r'^(?P.+)/$'

Re: Please help with project setup

2006-06-01 Thread Kristoffer
So, I have decided to use Docutils now, but I am a bit lost. How do I do this http://code.djangoproject.com/wiki/UsingMarkup with Docutils? Thanks, Kristoffer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Please help with project setup

2006-05-31 Thread Kristoffer
e for me. Other than that, I do not have any strong preferences for any of the two, so I too, would be grateful for any input on this issue. Thanks, Kristoffer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: Please help with project setup

2006-05-31 Thread Kristoffer
ne question, though: How do I integrate this with Django? I would like it to be transparent to the article authors, so that any text they enter into a textarea in the Django admin UI when they edit or create an article, will be automatically treated as restructured text markup? Thanks,

Re: Please help with project setup

2006-05-30 Thread Kristoffer
>The author was also able to add images elsewhere using the rich text >editor we provided him with. This seems like what I want for this project. However, if there isn't a rich text editor available that is easy to plug in with Django, this option isn't for me. I suppose it would be ok for my ar

Re: Please help with project setup

2006-05-30 Thread Kristoffer
>I would prefer a fourth option : >d. /articles/topic/subtopic/article/display?lang=en This seems like a good way. However, how search engine friendly is it? If I had links to /articles/topic/subtopic/article/display?lang=en and /articles/topic/subtopic/article/display?lang=de, would say google i

Re: Please help with project setup

2006-05-30 Thread Kristoffer
This is a sample article. This is a car:. This is a lorry [image of car][image of lorry]" How would I model that? Thanks, Kristoffer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Please help with project setup

2006-05-30 Thread Kristoffer
example headlines and images. The images for an article may vary from article to article. How could I extend my model to achieve this? Is all this possible to do with Django, and, if so, how? Any pointers in the right direction or code samples are much appreciated. Thanks, Kristoffer