,
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
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
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
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
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
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
? 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
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
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
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
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
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
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
&
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
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,
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
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
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
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
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
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
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
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
>
>
23 matches
Mail list logo