Re: django searching

2011-05-02 Thread Jani Tiainen
On Mon, 2011-05-02 at 21:40 -0700, pankaj sharma wrote: > hello all, > i am trying to have an advanced search.. > i have college list where there are many tables in college like > college.name, collge.city college.state etc. > > so i have taken two strings from the user like Q1 and Q2. > now i

django searching

2011-05-02 Thread pankaj sharma
hello all, i am trying to have an advanced search.. i have college list where there are many tables in college like college.name, collge.city college.state etc. so i have taken two strings from the user like Q1 and Q2. now i want to show all the colleges which have Q1 string in name and Q2 stri

Makemessages Multiline

2011-05-02 Thread momo2k
I'm using Django for about a year by now and I'm using translation since users of my website are mixed german/english speaking. makemessages works well on Windows, but on Debian 5 it doesn't work with multiple line messages and I can't figure out why. I'm sure it's a simple problem, but I don't ge

Re: Form with manytomany field

2011-05-02 Thread Daniel França
anyone? Maybe what I need is something like OneToMany relationship, i guess, but there's no such thing in django 2011/5/2 Daniel França > Hi all, > I'm trying to create a form from a model with ManyToManyField, > I want something like this: You fill some fields from the referenced table > and yo

Re: how to add datepicker (available in admin)

2011-05-02 Thread Kenneth Gonsalves
On Mon, 2011-05-02 at 18:21 -0700, GKR wrote: > how to add datepicker (available in admin) into my custom page for > date > input form field. easier to use jquery datepicker (admin datepicker does not change years) -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.te

how to add datepicker (available in admin)

2011-05-02 Thread GKR
how to add datepicker (available in admin) into my custom page for date input form field. -- 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 e

Problem with Geometries

2011-05-02 Thread George Silva
Hello guys I'm having a problem with Geodjango, a weird exception happening, not sure why. Well, my setup is the following: Windows 7 64bit GeoDjango installed from Windows Installer. Here is a traceback when I try to store a common object using the admin http://dpaste.com/538214/ My model is

Problem uploading images and videos with filenames containing not ascii characters

2011-05-02 Thread Ariel
Hi everybody: How Can I solve this, I have a form to upload videos and images but when a video or image with a filename containing not ascii characters is uploaded then I get the following error: Django Version: 1.2.1 Exception Type: UnicodeEncodeError Exception Value: 'ascii' codec can't encod

Re: Input element radio button group across rows of change list view in Admin?

2011-05-02 Thread creecode
Hello all, If you happen to know of an existing app w/online source that has an admin interface similar to what I want, pointers appreciated! -- 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@goo

Re: 500 message with POST

2011-05-02 Thread Ian Clelland
On Mon, May 2, 2011 at 7:45 AM, Robert Cross wrote: > I'm a Django newbie and I'm trying to do some minor tests with POST methods > (I need an automated/scriptable way to get data into my Django database). > Using the following code > > @csrf_exempt > def posttest(request): > z=request.PO

Re: Overwriting the handler404

2011-05-02 Thread Jason Culverhouse
On May 1, 2011, at 8:01 AM, doniyor wrote: > Hi there, > i am trying to overwrite handler404 of django so that i can call my > own view function when it doesnot find the appropriate view and if it > tries to give Http404. the whole problem is as follows: > > i defined my view function called 're

Re: 500 message with POST

2011-05-02 Thread А . Р .
> @csrf_exempt > Any ideas what I'm doing wrong? Try importing csrf_exempt at the top of your views.py: from django.views.decorators.csrf import csrf_exempt -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

500 message with POST

2011-05-02 Thread Robert Cross
I'm a Django newbie and I'm trying to do some minor tests with POST methods (I need an automated/scriptable way to get data into my Django database). Using the following code @csrf_exempt def posttest(request): z=request.POST.get('data', 'no data') html="POST TestData supplied was

Odp: UnicodeDecodeError with makemessages in django-1.3

2011-05-02 Thread Tomasz Zieliński
I got the same exception, it turned out that our designer put some invalid characters into one of the templates. I figured out which template had been broken, due to the fact that `makemessages` left empty `buggy_template.html.py` file in `buggy_template.html` folder. -- Tomasz Zielinski pycon

Re: Strange problem with admin, ManyToMany and DEBUG=False

2011-05-02 Thread Nick
Many thanks for your reply Karen. I followed your first suggestion, removing quoted strings, which didn't make a difference. I don't know why I was importing django.forms in my models.py as I wasn't using it, so I removed that. I have now fixed this by simply changing the location of the admin.a

Re: Strange problem with admin, ManyToMany and DEBUG=False

2011-05-02 Thread Karen Tracey
On Mon, May 2, 2011 at 5:49 AM, Nick wrote: > I'm having a very strange problem with a site I've developed, which > only seems to happen when DEBUG=False and is now preventing my from > launching the site (unless I launch it in DEBUG mode, which I > obviously don't want to). The EXACT same code

Artigo bem bem legal ! Using MySQL as a NoSQL

2011-05-02 Thread Sandro Fernandes
http://yoshinorimatsunobu.blogspot.com/2010/10/using-mysql-as-nosql-story-for.html -- 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: Strange problem with admin, ManyToMany and DEBUG=False

2011-05-02 Thread Nick
Hi, Yes sorry that wasn't clear. There is basically: page = get_object_or_404(models.Page, slug=level0) which varies depending on the number of "level" arguments passed into the view. So "page" will always be a lookup of a Page object. Thanks, Nick On May 2, 11:05 am, Xavier Ordoquy wrote:

Re: Strange problem with admin, ManyToMany and DEBUG=False

2011-05-02 Thread Xavier Ordoquy
Le 2 mai 2011 à 11:49, Nick a écrit : > Hi, > > I'm having a very strange problem with a site I've developed, which > only seems to happen when DEBUG=False and is now preventing my from > launching the site (unless I launch it in DEBUG mode, which I > obviously don't want to). The EXACT same cod

Strange problem with admin, ManyToMany and DEBUG=False

2011-05-02 Thread Nick
Hi, I'm having a very strange problem with a site I've developed, which only seems to happen when DEBUG=False and is now preventing my from launching the site (unless I launch it in DEBUG mode, which I obviously don't want to). The EXACT same code works in DEBUG=True, but with DEBUG=False I get t

Re: Advanced Search

2011-05-02 Thread pankaj sharma
thanks. On May 2, 1:52 am, Ankit Rai wrote: > Hi, > > Are city and name are the fields of your models?If yes than you can write > your custom search using queryset , refer search implementation in django > admin > > On Mon, May 2, 2011 at 1:41 PM, pankaj sharma > wrote: > > > > > > > > > > > i

Re: Advanced Search

2011-05-02 Thread Ankit Rai
Hi, Are city and name are the fields of your models?If yes than you can write your custom search using queryset , refer search implementation in django admin On Mon, May 2, 2011 at 1:41 PM, pankaj sharma wrote: > i am new on django, i want to know how can we make advanced search on > our websi

Re: Advanced Search

2011-05-02 Thread Daniel França
Hi, you can try: http://haystacksearch.org/ I think it solves your problem Best Regards, Daniel França On Mon, May 2, 2011 at 5:11 AM, pankaj sharma wrote: > i am new on django, i want to know how can we make advanced search on > our website. > > > i have database of

Advanced Search

2011-05-02 Thread pankaj sharma
i am new on django, i want to know how can we make advanced search on our website. i have database of colleges. and i want to provide the user to search the colleges by : city and name i have made single search where user can enter the query and it will show only those colleges having the query

Re: How do I set permissions for manual install of 1.3 for ubuntu 11.04?

2011-05-02 Thread Xavier Ordoquy
Hi, Le 30 avr. 2011 à 12:16, jsierra a écrit : > I figured it out, i chmod -R 775 the django directory located in > /usr/local/lib/python2.7/dist-packages and was able to use the commands > without sudo. Whether or not that's a good idea, I don't know, but it's my > personal laptop anyway. Tha

Error in gcmodule.c

2011-05-02 Thread maor
Has anyone seen this Python crash before? It outputs the following line when it crashes: python: Modules/gcmodule.c:277: visit_decref: Assertion `gc->gc.gc_refs != 0' failed. I'm running Django on RHEL6, and I keep getting this crash few minutes after the webapp starts serving pages. It star