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
>
>
8 matches
Mail list logo