deleted_forms and invalid formset

2014-07-16 Thread Bartek Grzys
, Bartek -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to dj

Re: Banners managment

2011-04-21 Thread Bartek Górny
On Wed, 20 Apr 2011 22:52:39 -0300 Alex s <alexsalga...@gmail.com> wrote: > Hi people > > Have anyone some experience to explain about use a django app for > Banners managment ? > > Thanks > Alex > I use this: https://bitbucket.org/bartekgorny/djbanner Bart

Re: strange behaviour of custom view based on date_based.object_detail - random 404

2009-09-29 Thread Bartek
Bartek SQ9MEV pisze: [...] > Enviroment: > python-2.6.1 > python-apache-2.2.11 > psycopg2-2.0.11 > apache-mod_wsgi-2.5 > glibc-2.10.1 [...] Update: apache-2.2.11 mpm prefork -- B --~--~-~--~~~---~--~~ You received this message because

strange behaviour of custom view based on date_based.object_detail - random 404

2009-09-29 Thread Bartek SQ9MEV
I've got some strange problems in my hosting enviroment using mod_wsgi like that: WSGIDaemonProcess mygroup user=myuser group=users processes=3 threads=10 display-name=mygroup Enviroment: python-2.6.1 python-apache-2.2.11 psycopg2-2.0.11 apache-mod_wsgi-2.5 glibc-2.10.1 The problem is that

inlineformset_factory causing some KeyError whackiness.

2009-06-14 Thread Bartek
modelform, this is. inline_formset = InlineFormset(request.POST, instance=new_base) if inline_formset.is_valid(): inline_formset.save() As soon as I hit the save(), I get a KeyError: None Traceback shows it's happening within the core saving function within django's model.py: /home/bartek/.v

Re: Django and Ajax (mootools/clientcide) Fupdate encoding problems

2009-04-28 Thread Bartek SQ9MEV
ect data supplied by Fupdate. I've found out that clientcide Fupdate makes some "magic" with form data, so I've changed a little code of clientcide Fupdate (http://groups.google.com/group/clientside/browse_frm/thread/e72931ed9260369d), and it works well now, I don't know if this proble

Django and Ajax (mootools/clientcide) Fupdate encoding problems

2009-04-28 Thread Bartek SQ9MEV
? Where does it originate? Any idea where to start investigation? -- Bartek --~--~-~--~~~---~--~~ 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@google

date_list in date_based.archive_index and date_based.archive_year but why not in archive_list and archve_month?

2009-04-22 Thread Bartek SQ9MEV
except modifying Django generic views code? Is the the custom template tag with passed queryset as variable the only way? -- Bartek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: pagination

2009-03-30 Thread Bartek SQ9MEV
Konstantin S pisze: > Hello! > second one I found at code.google.com. (Url is > http://code.google.com/p/django-pagination/). Which one would you > recommend ? This one works well for me (it uses the built-one), but remember not to use {% if object_list %} before pagination tags in your template

Re: django 1.0.2, django_pagination-1.0.5, postgresql, LIMIT & OFFSET question

2009-02-11 Thread Bartek SQ9MEV
Karen Tracey pisze: > On Wed, Feb 4, 2009 at 3:01 AM, Bartek SQ9MEV <bar...@sq9mev.info > <mailto:bar...@sq9mev.info>> wrote: [...] > So, any idea where's the clue? > Is it possible to use django-pagination with generic views without so > sense

Re: django 1.0.2, django_pagination-1.0.5, postgresql, LIMIT & OFFSET question

2009-02-04 Thread Bartek SQ9MEV
Bartek pisze: > so... looks like everytime I need 20 Post items my database is hit by > query returning all records... I find it a big overhead, and my app > suffers from that... Today I'm still investigating this issue, and I've just tried to use Paginator object as describe

django 1.0.2, django_pagination-1.0.5, postgresql, LIMIT & OFFSET question

2009-02-03 Thread Bartek
ed 20 Post items my database is hit by query returning all records... I find it a big overhead, and my app suffers from that... I've read: http://code.google.com/p/django-pagination/issues/detail?id=15 and http://code.google.com/p/django-pagination/source/detail?r=27 and wandering if it

Re: custom templatetags and problem with importing photologue.models - namespace collision?

2008-12-21 Thread Bartek
Bartek pisze: > Hi all > When I loop over sys.modules in templatetags/pobierz.py there's > django.templatetags.photologue, so probably that's why "from > photologue.models import Gallery" throws ImportException - there's not > models in django.templatetags.photologue &

custom templatetags and problem with importing photologue.models - namespace collision?

2008-12-20 Thread Bartek
Hi all I've experienced problems with import photologue.models into my templatetag module. When I loop over sys.modules in templatetags/pobierz.py there's django.templatetags.photologue, so probably that's why "from photologue.models import Gallery" throws ImportException - there's not models

How to delete template fragment cache?

2008-12-02 Thread Bartek SQ9MEV
Bartek jid: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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,

Re: How do I install Django in Windows Vista?

2008-06-18 Thread Bartek Gniado
Extract it, run setup.py and turn on the dev server or configure to work with apache and you're good to go.. Pretty much like you would on any OS, just different paths and "rules" sometimes On Wed, Jun 18, 2008 at 9:46 PM, redxblade717 <[EMAIL PROTECTED]> wrote: > > I'm running Vista. I have

Re: Media variables confusion

2008-06-17 Thread Bartek Gniado
You need MEDIA_ROOT because yes, you serve it from static.serve view during development but when you launch you do not want to be using the devserver to display your site. MEDIA_URL is essentially the same url you map through Apache, lighthttpd, whatever you use But you are right, you can use the

Re: Filter based on empty date field

2008-06-14 Thread Bartek Gniado
You could use the isnull filter: http://www.djangoproject.com/documentation/db-api/#isnull If your model is setup correctly, that'll do the trick On Sat, Jun 14, 2008 at 2:03 PM, robbie <[EMAIL PROTECTED]> wrote: > > Hi! > > I'd like to know if there is any way you can filter a data-set based

Re: Filtering a query based on potential arguments

2008-06-14 Thread Bartek Gniado
Thanks Tim for the code optimization ideas. Very pythonic of you ;) On Sat, Jun 14, 2008 at 10:55 AM, Tim Chase <[EMAIL PROTECTED]> wrote: > > >> cards = Card.objects.all() > >> if request.POST.get('brand') : > >> cards = cards.filter(brand = request.POST.get('brand')) > >> if

Re: Filtering a query based on potential arguments

2008-06-14 Thread Bartek Gniado
Scott: Very cool, didn't know that was possible. I'm sure this does not hurt performance much compared to the other method shown above? Needless to say it works great! Thanks much On Thu, Jun 12, 2008 at 5:58 AM, Scott Moonen <[EMAIL PROTECTED]> wrote: > You can take advantage of the fact that

Re: Form Validation for GET Request

2008-06-13 Thread Bartek Gniado
Maybe because you actually have to pass `action`? ;) Pass it through your form. Maybe my use of 'action' confused you with the 's action property. Not what I meant, sorry. I didn't realize you had an actual form (Wait, why do you .. Ok, beyond the point) but in this case you can just check for

Re: Form Validation for GET Request

2008-06-13 Thread Bartek Gniado
If errors are showing when you first load the page then you need to check that the user has actually completed an action before validating the form. In this case, doing something like if request.GET.get('action') == True: # your form validation here In your links back to the system, simply

Re: DB Models best practice

2008-06-12 Thread Bartek Gniado
Instead of over complicating it like this. Why not just use memcached or django's own cache? On Thu, Jun 12, 2008 at 11:45 AM, Juan Hernandez <[EMAIL PROTECTED]> wrote: > Hey there, I have a question concerning performance and best practices > > I have this piece of code in one of my views > >