Re: Haystack/Whoosh problem

2009-10-28 Thread nausikaa
Ok, looks like I found a solution: svn co http://svn.whoosh.ca/projects/whoosh/trunk/ whoosh cd whoosh sudo python setup.py install The site here suggests a patch but I think it's not up to date anymore: http://haystacksearch.org/docs/installing_engines.html On Oct 28, 4:10 pm, nau

Haystack/Whoosh problem

2009-10-28 Thread nausikaa
Hi there I've been trying to use haystack with the whoosh backend in my django app. I've installed whoosh and haystack using pip install Whoosh pip install django-haystack Then I added 'haystack' to my INSTALLED_APPS in settings.py and when trying to run python manage.py runserver it would say

Re: TemplateDoesNotExist at /admin/ on Centos with Django 1.1.1

2009-10-19 Thread nausikaa
Hi Christophe Can you post some more information? What does settings.py look like? What does urls.py look like? How do you register the Models at the admin interface? On Oct 19, 2:41 am, Christophe Pettus wrote: > Greetings, > > I'm installing Django on a Centos 5.3 system, running under mod

Re: Django doesnt create sqlite database

2009-10-19 Thread nausikaa
Hi mfever How do you mean 'didn't create' ? What's the error message? What does your settings.py look like? What does the code look like that is doing something with the db? On Oct 19, 8:18 am, mfever wrote: > Hi Buddy, > > I am newbie in Django. Recently I try out the Django tutorial from web

Re: Django project layout - authentication

2009-10-17 Thread nausikaa
Great. Sorry for sending this twice. I thought it got deleted so I sent it again. Looks like it was delayed for ~2 days : ( But I'm still greatful for any advice : ) On Oct 17, 2:19 pm, nausikaa wrote: > Hi > > I'm writing a web interface where users (in groups with diff

Django project layout - authentication

2009-10-17 Thread nausikaa
Hi I'm writing a web interface where users (in groups with different rights) can login and view and edit db entries. At the moment the authentication functionality is in myproject/ auth.py The authenticate method in auth.py does ldap authentication. Now my question: Would it be better to ma

Re: erronr during rendering

2009-10-16 Thread nausikaa
Ciao Luca I think the problem are the '%' in the datetime string. Have a look here: http://docs.djangoproject.com/en/dev/ref/templates/builtins/ and try this: {{ value|date }} i.e. ... 20 {{ m.dataora|date }} ... respectively. Does it cure the problem? nausikaa On Oct 16

Re: Django project layout - authentication

2009-10-15 Thread nausikaa
Correction: We have a class 'LDAPBackend' with an authenticate function. Then in the view we use 'authenticate' from django.contrib.auth and if that returns None, we call the 'authenticate' bound to 'LDAPBackend'. Does it make sense to have a separate app just for one class? I assume the answer

Django project layout - authentication

2009-10-15 Thread nausikaa
Hi I'm writing a web interface where users (in groups with different rights) can login and view and edit db entries. At the moment the login functionality is in myproject/ auth.py The authenticate method in auth.py checks the Users table and if that fails it tries ldap authentication. Now m

Re: unicode and manage.py test

2009-10-02 Thread nausikaa
Hi I think you're already have it right. It means do not write "print ..some stuff.." in your docstring. It says, instead write u'blah blah', which you are doing already. My question is: Isn't it expected that the doctest fails if you change a letter because then the output will disagree with yo

Re: composite primary keys?

2009-10-01 Thread nausikaa
Hi again What I wrote is wrong sorry, I didn't read the ticket properly. You can't do multi-column primary keys in django (yet). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: can't show admin interface

2009-09-26 Thread nausikaa
Have you done from yourapp.models import * from django.contrib import admin admin.site.register(Books) in admin.py? On Sep 26, 4:55 am, pengwupeng wrote: > the environment is  apache+django, accessing   my app is ok,but i > can't access the admin interface. > the configuration  of the http

Re: group querysets in template

2009-09-24 Thread nausikaa
) for author in authors: books = Book.objects.filter(author__name__exact=author.name) your_list.append(author) for book in books: your_list.append(book) But this is not so good I think. nausikaa On Sep 24, 9:49 am, dimitri pater - serpia wrote: > Hi, > > say, I

Re: multi-db vs. data warehouse

2009-09-24 Thread nausikaa
ch. I view the multi-db > > > functionality more as a last resort, where you really don't have an > > option > > > to merge the data. It adds a lot of complexity so if you can do without I > > > would recommend an alternative. > > > Just my 2 cen

Re: multi-db vs. data warehouse

2009-09-22 Thread nausikaa
can read or edit the data. Besides you'd remove some (unnecessary) heterogenity and thereby complexity from your system. But since I don't know your system I might be missing the point completely. Nausikaa On Sep 22, 3:10 am, snfctech wrote: > I understand that there is a Django

Re: Using shell to add images

2009-09-22 Thread nausikaa
Hi Timboy Sorry but I've never seen: for x in 20: # do sth. 20 is an int object and not an iterable. Is this snippet your code? Nausikaa On Sep 22, 10:15 am, Timboy wrote: > Having issues saving model from within the shell. > > Using File from from django.core.fil

Re: composite primary keys?

2009-09-22 Thread nausikaa
Hi Chris I hope this helps: http://code.djangoproject.com/ticket/373 So there is a "patch" but I didn't try it. The way I worked around it was by adapting my db model. Assuming you have an existing db you might want to try the patch. Nausikaa On Sep 22, 10:17 am, Chris

Re: psycopyg setup error: no build_ext

2009-09-15 Thread nausikaa
Dear Matt I hope you see this message even though it's probably too late. To fix the permission denied error change setup.cfg as follows: pg_config=/opt/local/lib/postgresql84/bin/ needs to be changed to pg_config=/opt/local/lib/postgresql84/bin/pg_config Then run sudo python setup.py bu

Re: psycopyg setup error: no build_ext

2009-09-15 Thread nausikaa
4/bin/pg_config in setup.cfg. If this does not sort out the problem try sudo port install postgresql84 Then all should work just fine. postgresql-devel is outdated. Hope this helps, Nausikaa --~--~-~--~~~---~--~~ You received this message because you are subscribed t