Django-filebrowser path problems

2011-02-03 Thread gerram
Can anybody to help me with demo project of correct settings.py for django-filebrowser and structure of folders. I tried very much places of locate FILEBROWSER folders for media and uploads but always get such error: 'Error finding Upload-Folder (MEDIA_ROOT + FILEBROWSER_DIRECTORY). Maybe it does

Re: user full name in template

2011-02-03 Thread Bobby Roberts
here's what i'm trying from django.contrib.auth import authenticate, login, logout #import django user modules from django.contrib.auth.models import User def ShowMainMenu (request): fullname=User.first_name + ' ' + User.last_name return render_to_response('scanning/menu.html',

Re: user full name in template

2011-02-03 Thread arlolra
user.get_full_name should work https://github.com/django/django/blob/master/django/contrib/auth/models.py#L245 -- 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

user full name in template

2011-02-03 Thread Bobby Roberts
is there a template tag to show the user's full name on a template? -- 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: Submitting Django forms with AJAX

2011-02-03 Thread Shawn Milochik
What's the dev server output when the AJAX call is attempted? Which Django version? I don't see a CSRF token in the form. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Submitting Django forms with AJAX

2011-02-03 Thread mf
I want to have a little feedback form in one of my views but I can't get it to work. I put a pdb.set_trace() to debug the views but when I click submit the view reloads and never gets into the if request.method == 'POST' and... code section. I'm very confused about how to approach ajax forms

Re: Possible bug in model validation

2011-02-03 Thread Karen Tracey
On Thu, Feb 3, 2011 at 12:30 PM, Miguel Araujo wrote: > Las try or I will report it as a bug as I think it is. > Your original post was a bit sparse on code/traceback details for the actual problem you observed. The only specific code you showed was the lines you added to

Re: jquery grid and django

2011-02-03 Thread Casey Greene
I have not specifically used jquerygrid but it looks like it will request the data from a URL and all that you need to do is set up a view there to return the proper json objects to it. It is basically like any other django view, just that you would be returning json instead of html. I have

Re: Amazing work

2011-02-03 Thread Cal Leeming [Simplicity Media Ltd]
May I ask, how well did you get along with Zope? From what I can tell, Django is suited for SME, where as Zope is the kinda thing that banks would be using etc. On Fri, Feb 4, 2011 at 12:50 AM, Kenneth Gonsalves wrote: > I am a hobbyist programmer started with pascal and

Re: Custom/Inclusion Tags

2011-02-03 Thread Cal Leeming [Simplicity Media Ltd]
Sorry I don't quite understand what you mean, can you give a code example of what you are trying to do / wish for it to do? On Thu, Feb 3, 2011 at 9:41 PM, J wrote: > Is there a way to access kwargs from a custom/inclusion tag? > > -- > You received this message because

jquery grid and django

2011-02-03 Thread Tony
I found a plugin that combines the two but you cant look at the source unless you have been approved by the creator. Is there any viable, simple way to use the jquery grid plugin with django fairly quickly? -- You received this message because you are subscribed to the Google Groups "Django

Re: Amazing work

2011-02-03 Thread Kenneth Gonsalves
I am a hobbyist programmer started with pascal and then perl. Loved perl, but once I had to hire a programmer to do some enhancements that I did not have time for - he did a good job, but after he left I found I could not understand a word of what he had done. Then someone introduced me to python

No POST response when using checkbox form

2011-02-03 Thread Ethan Yandow
Hey there, I am trying to delete Events as chosen by a by a user using check boxes to check of which events they want to be deleted. But for some reason whenever I call request.POST.get('event_list') Nothing is received even though boxes are checked and I end up with nothing. Here is my template

Re: Amazing work

2011-02-03 Thread Jon J
Well, PHP does have its intended purpose and accomplishes its objectives nicely. If you're building a one-shot, off-the-cuff application with no forethought to design or scalability, then PHP is great. It's not hard for novices to use (object orientation is optional, etc) and uses a much easier to

Custom/Inclusion Tags

2011-02-03 Thread J
Is there a way to access kwargs from a custom/inclusion tag? -- 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: Django model object allocation performance

2011-02-03 Thread oyiptong
That was exactly my point. I got around my issue by just using the dictionaries all over my application. This did bypass the creation of the objects. My cpu usage and load average went to drastically. On Feb 2, 4:33 am, Thomas Weholt wrote: > I might be missing

Re: Django model object allocation performance

2011-02-03 Thread oyiptong
Yeah, it was just an example On Feb 2, 4:28 am, Daniel Roseman wrote: > On Tuesday, February 1, 2011 11:52:49 PM UTC, oyiptong wrote: > > > Hello, > > > I have been seeing a big performance degradation with my application > > in production. > > The traffic is roughly 2.5K

Re: Error: cannot import name SpooledTemporaryFile

2011-02-03 Thread Daniel Roseman
On Thursday, February 3, 2011 6:55:56 PM UTC, b...@live.se wrote: > > Hi all , I install dionaea on my Debian 5.0 (VM) > when i run carniwwwhore : > > debian:/opt/carniwwwhore# python manage.py runserver > Error: cannot import name SpooledTemporaryFile > > debian:/opt/carniwwwhore# python

Error: cannot import name SpooledTemporaryFile

2011-02-03 Thread b...@live.se
Hi all , I install dionaea on my Debian 5.0 (VM) when i run carniwwwhore : debian:/opt/carniwwwhore# python manage.py runserver Error: cannot import name SpooledTemporaryFile debian:/opt/carniwwwhore# python --version Python 2.5.2 any idea ? thanks -- You received this message because you are

Delete/Update Memcache in 1.2.4?

2011-02-03 Thread Ivo Brodien
Which key is used in 1.2.4 to create the memcache keys? I am having some html in my database whose keys I want to delete from the memcache after they have been saved (or via admin actions) I don’t know how to get their keys and even doing a cache.clear() in the action and console did not

IE, CSRF and admin login

2011-02-03 Thread MikeKJ
obviously using django contrib auth works fine in Firefox but IE8 keeps throwing CSRF token error on attempting to log into the admin interface. No admin templates have been altered using django 1.2.3 in pythonpath even tried changing internet options to allow all cookies!!! tried creating a

Re: Possible bug in model validation

2011-02-03 Thread Miguel Araujo
Las try or I will report it as a bug as I think it is. 2011/1/28 Miguel Araujo > Well, > > I'm just trying to figure out if this should be reported. > > Thanks, regards > > > Miguel Araujo > @maraujop > > 2011/1/22 Miguel Araujo > > Hi everyone,

Re: help understanding mptt/treebeard

2011-02-03 Thread Jason
"maybe a chapter needs to be added as the 13th chapter in a Book, for example" MPTT and the other trees are mainly used on data structures where node insertion might happen anywhere on a tree. In your case, you only put chapters in books and would never move a chapter inside of a 'Library' or

Re: matching a domain name in urls.py

2011-02-03 Thread Tom Evans
2011/2/3 Łukasz Rekucki : > On 3 February 2011 17:52, Tom Evans wrote: >> >> . matches any character, not just dot. Your class '[.\w]+' will >> actually match anything and everything. I think you want '[\.\w]'. >> > > Not if used in a character class:

Re: matching a domain name in urls.py

2011-02-03 Thread Łukasz Rekucki
> On Thu, Feb 3, 2011 at 4:50 PM, mike171562 wrote: >> I think i got it now with >> >> (r'^zones/(?P[.\w]+)/$', get_domain) Depending on what you plan to do with the matched string later, you may want to limit it to 256 characters or incorporate some more checks,

Re: matching a domain name in urls.py

2011-02-03 Thread Cal Leeming [Simplicity Media Ltd]
Here you go: http://www.regexbuddy.com/screen.html On Thu, Feb 3, 2011 at 4:55 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi Mike, > > May I suggest RegexBuddy for anything regex related in the future, it have > saved me a *lot* of time! > > Cal > > >

Re: matching a domain name in urls.py

2011-02-03 Thread Cal Leeming [Simplicity Media Ltd]
Hi Mike, May I suggest RegexBuddy for anything regex related in the future, it have saved me a *lot* of time! Cal On Thu, Feb 3, 2011 at 4:44 PM, mike171562 wrote: > I am building an app that passes a domain name to urls.py like so "/ > sites/domain.com/' > > but

Re: Amazing work

2011-02-03 Thread Cal Leeming [Simplicity Media Ltd]
You know, even if PHP had a framework like Django, I wouldn't use it. PHP is clunky, has horrible code syntax, piss poor exception handling, awful garbage collection, weirdly named functions, and just feels 'wrong'. And don't even get me started on performance! On Thu, Feb 3, 2011 at 4:13 PM, Jon

Re: Debugging Why CSS File Will Not Load

2011-02-03 Thread Andres Lucena
On Wed, Feb 2, 2011 at 7:55 PM, octopusgrabbus wrote: > I am trying to load static content (one css file) from the same apache > server, using a different virtual host. I have no errors, but the css > file appears not to load. How can I debug this further? > > The load

Re: matching a domain name in urls.py

2011-02-03 Thread Tom Evans
On Thu, Feb 3, 2011 at 4:50 PM, mike171562 wrote: > I think i got it now with > > (r'^zones/(?P[.\w]+)/$', get_domain) > > . matches any character, not just dot. Your class '[.\w]+' will actually match anything and everything. I think you want '[\.\w]'. Cheers Tom

Re: matching a domain name in urls.py

2011-02-03 Thread Jirka Vejrazka
> I am building an app that passes a domain name to urls.py like so   "/ > sites/domain.com/' > > but I cannot get my urls.py to match the 'domain.com'  it only seems > to match if i just use domain without the dot > > I have tried > >    (r'^zones/^[^/]+/', get_domain), >    (r'^zones/(?P\w+)/',

Re: Model Forms Customization

2011-02-03 Thread hank23
Thanks. I'll take a look at the articles. On Feb 2, 3:42 am, Derek wrote: > The same question was asked on > stackoverflow:http://stackoverflow.com/questions/2303268/djangos-forms-form-vs-form... > Its a good explanation - I liked the bit at the end: > "The similarities are

Re: matching a domain name in urls.py

2011-02-03 Thread mike171562
I think i got it now with (r'^zones/(?P[.\w]+)/$', get_domain) On Feb 3, 10:44 am, mike171562 wrote: > I am building an app that passes a domain name to urls.py like so   "/ > sites/domain.com/' > > but I cannot get my urls.py to match the 'domain.com'  it only

matching a domain name in urls.py

2011-02-03 Thread mike171562
I am building an app that passes a domain name to urls.py like so "/ sites/domain.com/' but I cannot get my urls.py to match the 'domain.com' it only seems to match if i just use domain without the dot I have tried (r'^zones/^[^/]+/', get_domain), (r'^zones/(?P\w+)/', get_domain),

Re: Debugging Why CSS File Will Not Load

2011-02-03 Thread octopusgrabbus
Firebug shows the page, and the page changes to the color I set, if I click on sections in the Firebug window. Not sure what is going on with that. On Feb 2, 5:31 pm, Jon J wrote: > Firebug is a great tool for diagnosing problems like this, and > Chromium has even

Re: Amazing work

2011-02-03 Thread Jon J
KG, I've been a PHP developer for years and haven't reached outside of PHP pretty much ever. After writing the same code over and over and over and over and over again and always dealing with the same issues (tweaking the database through a database manager, writing admin interfaces, not having a

Admin: how to change the default filtering options ?

2011-02-03 Thread Jorge Vargas
Hello, I'm having the following situation. I got a model "signup" which has a status field (todo, done, processing, etc.) I have an admin view for it which should show all signups and I have a filter that will let me do filter by status. Therefore the person processing the sigups will just click

Re: checkbox, how to return state back to html

2011-02-03 Thread Andy McKay
On 2011-02-03, at 4:46 AM, gintare wrote: > You don't have " around cbSMWord so the full variable name is 'cbSMWord'. >cbSMWord = request.POST.get('cbSMWord ','') You have a space on the end of the variable here. 'cbSMWord ' is not equal to 'cbSMWord' > return

help understanding mptt/treebeard

2011-02-03 Thread Tim
hi, I think mptt or treebeard may be a good fit for my project, but I'm not sure. Currently I have the project setup in a conventional way with no explicit tree structure, just a pattern of ForeignKey usage. It works, but I'm beginning to get into some complexity. The project is for building

Re: Modifying form values before redirect

2011-02-03 Thread Osiaq
My bad, sorry! That was simple form['customer']='modified_customer_name' On Feb 3, 1:23 pm, Daniel Roseman wrote: > On Thursday, February 3, 2011 2:09:56 AM UTC, Osiaq wrote: > > > Hi all! > > I'm receiving the form from index.html and redirecting to order.html > > I

Re: Modifying form values before redirect

2011-02-03 Thread Osiaq
Thank you :) On Feb 3, 1:41 pm, Tom Evans wrote: > On Thu, Feb 3, 2011 at 2:09 AM, Osiaq wrote: > > Hi all! > > I'm receiving the form from index.html and redirecting to order.html > > I would like to change "customer" value before redirection.

LibGeos in Windows XP

2011-02-03 Thread Norecces
Hi! Using geodjango at home on ubuntu everything is ok. but im trying to install it on winXP on my work and have some problems with lib geos. Ive installed PostGis.I wrote some code like this: from django.conf import settings settings.configure(GEOS_LIBRARY_PATH=r'c:\Python27\DLLs

Re: Django SQL Query does not stop

2011-02-03 Thread Sergiy
Circular joins are indeed a very likely reason which usually points to a poor model design. In fact I ran into the same problem just yesterday. I hooked Django admin to a legacy app that had a related field to table A and related field to table B that was also related to A. And that created an

Re: foreign key issue

2011-02-03 Thread Bobby Roberts
yeah i changed the related name to see if that would make any difference... the error baffles me. On Feb 3, 9:18 am, Tom Evans wrote: > On Thu, Feb 3, 2011 at 2:05 PM, Bobby Roberts wrote: > > here ya go: > > >... > >

Re: store superuser permamently

2011-02-03 Thread Ivo Brodien
> What do I have to do to avoid having to define a superuser each time? you can dump the data of the auth app and than load it again. s.th. like this: ./manage.py dumpdata --indent=4 auth > fixtures/auth.json ./manage.py dumpdata --indent=4 sessions > fixtures/sessions.json you can do a

Re: foreign key issue

2011-02-03 Thread Tom Evans
On Thu, Feb 3, 2011 at 2:05 PM, Bobby Roberts wrote: > here ya go: > > >... > models.ForeignKey('AppSettings.InventoryOption', > verbose_name=_('InvFunction'), > related_name='inv_function',blank=False, null=False) So you already changed it? I can't reproduce this, even

Re: Why django not found static files?

2011-02-03 Thread Marc Aymerich
On Thu, Feb 3, 2011 at 2:58 PM, Brian Neal wrote: > On Feb 3, 6:04 am, Marc Aymerich wrote: >> On Thu, Feb 3, 2011 at 12:51 PM, Marc Aymerich wrote: >> > Hi, >> > I just installed the django-admin-tools app but my django installation

store superuser permamently

2011-02-03 Thread Jaroslav Dobrek
Hello, I often use manage.py dumpdata --indent 2 > initial_data.json and then manipulate initial_data.json. When I remove my database file and run manage.py syncdb almost all data from inital_data.json are installed. (Many errors only go away when the database file is removed.) But manage.py

Re: foreign key issue

2011-02-03 Thread Bobby Roberts
here ya go: class InventoryOption (models.Model): id = models.AutoField (primary_key=True) name = models.CharField (max_length=50, blank=False, db_index=True) active = models.IntegerField(blank=False, choices=active_choices) order = models.IntegerField(blank=True,

Re: foreign key issue

2011-02-03 Thread Tom Evans
On Thu, Feb 3, 2011 at 1:32 PM, Bobby Roberts wrote: > I'm setting up a foreignkey field in my model as follows: > >        InventoryFunction = > models.ForeignKey('AppSettings.InventoryOption', > verbose_name=_('InvFunction'), related_name='InvFunction',blank=False, >

Re: Why django not found static files?

2011-02-03 Thread Brian Neal
On Feb 3, 6:04 am, Marc Aymerich wrote: > On Thu, Feb 3, 2011 at 12:51 PM, Marc Aymerich wrote: > > Hi, > > I just installed the django-admin-tools app but my django installation > > doesn't load the css, js and other static files. > > > in settings.py I

Re: method being called twice?

2011-02-03 Thread Karen Tracey
It's hard to provide useful help when we see only part of the story, and that story changes over time (e.g. the line of code you identify in the dpaste posting as being where the error occurs does not match the line of code seen in the first traceback you posted). Since you are dealing with a 3rd

foreign key issue

2011-02-03 Thread Bobby Roberts
I'm setting up a foreignkey field in my model as follows: InventoryFunction = models.ForeignKey('AppSettings.InventoryOption', verbose_name=_('InvFunction'), related_name='InvFunction',blank=False, null=False) result from syncdb: scanning.inventory: Accessor for field

Re: Memcache configured, but not used !?

2011-02-03 Thread Ivo Brodien
On 03.02.2011, at 13:38, Tom Evans wrote: > You don't specify what version of django you are using. I suspect you > are referring to the trunk/1.3 docs, and using 1.2. In 1.2, the cache > is controlled by settings.CACHE_BACKEND, which defaults to locmem if > omitted. You are right I am using

Re: help with foreign keys in admin

2011-02-03 Thread Bobby Roberts
nevermind... it was a case issue... you know if python knows there's an error with case it would just say "hey check the case here" On Feb 3, 12:31 am, Karl Bowden wrote: > On 3 February 2011 16:14, Bobby Roberts wrote: > > > > > considering this

Re: help with foreign keys in admin

2011-02-03 Thread Bobby Roberts
i've got that added in and ran a syncdb and i'm stuck on this err: django.core.exceptions.ImproperlyConfigured: InventoryAdmin.readonly_fields[0], 'BarCode' is not a callable or an attribute of 'InventoryAdmin' or found in the model 'Inventory'. but I'm not seeing anything wrong with my readonly

checkbox, how to return state back to html

2011-02-03 Thread gintare
views.py "if statements" recognize that the box was checked. I am not able to return the checkbox state back to web.html I would like to see the last checkbox choices in my page. web.html views.py def xxx(request): cbSMWord = request.POST.get('cbSMWord ','') if (cbSMWord): print

Re: Memcache configured, but not used !?

2011-02-03 Thread Ivo Brodien
On 03.02.2011, at 13:39, Xavier Ordoquy wrote: > I'm not sure it is. > Can you make sure you are using django 1.3 ? > in the shell do: > import django > print django.VERSION > > If it says 1, 2, whatever, your configuration isn't correct as CACHES is for > 1.3 > > Xavier. ahh! ok. I was

Re: Memcache configured, but not used !?

2011-02-03 Thread Xavier Ordoquy
> from django.core.cache import cache > print cache > > > In the shell it is using the locmem which I haven’t configured anywhere... > strange! I'm not sure it is. Can you make sure you are using django 1.3 ? in the shell do: import django print django.VERSION If it says 1, 2, whatever, your

Re: Memcache configured, but not used !?

2011-02-03 Thread Tom Evans
On Thu, Feb 3, 2011 at 12:26 PM, Ivo Brodien wrote: > Hi! > >> I assume you configured the cache backend to point to memcache, didn't you ? > > yes :) > > in my settings.py I have > > > >   CACHES = { >       'default': { >           'BACKEND':

Re: Memcache configured, but not used !?

2011-02-03 Thread Ivo Brodien
Hi! > I assume you configured the cache backend to point to memcache, didn't you ? yes :) in my settings.py I have CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.dummy.DummyCache', } } try: from local_settings import * except ImportError:

Attention: Web application developers! Exciting event on Feb 26th in Pune (WebApps 2011)

2011-02-03 Thread arun
Hello, SiliconIndia is organizing WebApps 2011 at Pune on Feb 26th, 2011.Drawing well-renowned thought-leaders, contributors, influencer's, and organizations in the Web Development space, the conference offers insight to develop industry-leading Web Development projects. The conference brings

Re: Why django not found static files?

2011-02-03 Thread Marc Aymerich
On Thu, Feb 3, 2011 at 12:51 PM, Marc Aymerich wrote: > Hi, > I just installed the django-admin-tools app but my django installation > doesn't load the css, js and other static files. > > in settings.py I have: > STATIC_ROOT = '/home/ucp/trunk/static/' > STATIC_URL =

Re: Memcache configured, but not used !?

2011-02-03 Thread Xavier Ordoquy
Le 3 févr. 2011 à 12:55, Ivo Brodien a écrit : > I did the following to enable memcache: > > 1 ) install memcache and it is running with default values: > /usr/bin/memcached -m 64 -p 11211 -u nobody -l 127.0.0.1 > > 2) put a decorator over my view @cache_page(60 * 2) > > 3) enable cache

Development Server 404 when I POST file

2011-02-03 Thread el-milligano
Hi, I am using the django development server to locally develop my web app. I currently have an issue whereby if I POST a file to the webapp the view that it relates to isn't hit. The reason the view isn't being matched is that the POST request (reported in the debug output of the dev web server)

Re: Django SQL Query does not stop

2011-02-03 Thread Ivo Brodien
Hi Chris, thanks for the info. My tables won’t have many rows and I don’t have the time for optimazation, especially if it is not necessary, but I will keep your words in mind! Cheers Ivo On 02.02.2011, at 06:10, Chris Matthews wrote: > Hi Ivo, > > SQL is like regular expressions. You can

Memcache configured, but not used !?

2011-02-03 Thread Ivo Brodien
I did the following to enable memcache: 1 ) install memcache and it is running with default values: /usr/bin/memcached -m 64 -p 11211 -u nobody -l 127.0.0.1 2) put a decorator over my view @cache_page(60 * 2) 3) enable cache panel in debug toolbar The Problem is, that the edebug panel says 0

Why django not found static files?

2011-02-03 Thread Marc Aymerich
Hi, I just installed the django-admin-tools app but my django installation doesn't load the css, js and other static files. in settings.py I have: STATIC_ROOT = '/home/ucp/trunk/static/' STATIC_URL = '/static/' and when i try to load http://localhost:8081/static/admin_tools/css/dashboard.css I

Re: Modifying form values before redirect

2011-02-03 Thread Tom Evans
On Thu, Feb 3, 2011 at 2:09 AM, Osiaq wrote: > Hi all! > I'm receiving the form from index.html and redirecting to order.html > I would like to change "customer" value before redirection. > When I try to modify it, Im getting "object does not support item > assignment" >

Re: Modifying form values before redirect

2011-02-03 Thread Daniel Roseman
On Thursday, February 3, 2011 2:09:56 AM UTC, Osiaq wrote: > > Hi all! > I'm receiving the form from index.html and redirecting to order.html > I would like to change "customer" value before redirection. > When I try to modify it, Im getting "object does not support item > assignment" > How

Override admin popup default url

2011-02-03 Thread Marc Aymerich
Hi, I need to pass some extra parameters in some admin popups. For example, this is the default URL for an arbitrary popup: http://localhost:8081/admin/web/systemgroup/add/?_popup=1 What I want is add a new element on the dict queryset:

Re: different length queries

2011-02-03 Thread Tom Evans
On Thu, Feb 3, 2011 at 9:51 AM, gintare wrote: > > answer to my previous question about different length queries > http://docs.djangoproject.com/en/dev/topics/db/sql/ > #for p in Person.objects.raw('SELECT * FROM myapp_person') > > Is it possible to post all the question

different length queries

2011-02-03 Thread gintare
answer to my previous question about different length queries http://docs.djangoproject.com/en/dev/topics/db/sql/ #for p in Person.objects.raw('SELECT * FROM myapp_person') Is it possible to post all the question which i send immediately? Sometimes i find answer by myself. I also soon would

Re: different length queries

2011-02-03 Thread Jani Tiainen
On Thursday 03 February 2011 11:10:51 gintare wrote: > Hello, > > Could you please advice if it is possible and where i could read OR at > least that keywords should search for the following question. > > Is there a way to submit List = [Q(word__starts='search_input'), > Q(date='search_input')

Re: different length queries

2011-02-03 Thread Tom Evans
On Thu, Feb 3, 2011 at 9:10 AM, gintare wrote: > Hello, > > Could you please advice if it is possible and where i could read OR at > least that keywords should search for the following question. > > Is there a way to submit List =  [Q(word__starts='search_input'), >

different length queries

2011-02-03 Thread gintare
Hello, Could you please advice if it is possible and where i could read OR at least that keywords should search for the following question. Is there a way to submit List = [Q(word__starts='search_input'), Q(date='search_input') ,] to model.objects.filter (List). How i have to formulate such

Re: method being called twice?

2011-02-03 Thread Burhan
The log entries for a session are here: http://dpaste.com/380749 -- 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: method being called twice?

2011-02-03 Thread Burhan
Thank you all for your comments. Perhaps I should clarify: 1. I'm not really interested in what is in the querystring, I'm only interested in what is being sent as part of the POST request. 2. The method's full body is posted here: http://dpaste.com/380708; the method "breaks" at line 8 with