Re: django help

2011-04-30 Thread Andres Lucena
El 30/04/11 14:56, Marcos Moyano escribió: > Read the static-files docs > Also read this document: http://www.catb.org/~esr/faqs/smart-questions.html > On Sat, Apr 30, 2011 at 4:14 AM, Sunil Chugh > wrote: > > how can i used

Re: problem installing django 1.3 in virtualenv

2011-04-30 Thread Andres Lucena
El 30/04/11 18:06, shofty escribió: > recreated the virtualenv from scratch totally, still got the same > result. what am i doing wrong here? really cant work it out. Exactly what is the output? What is the content of $HOME/.pip/pip.log? $ cat $HOME/.pip/pip.log Also, I don't understand what

Re: Apache2 with static file

2011-04-05 Thread Andres Lucena
On Tue, Apr 5, 2011 at 9:33 AM, yongzhen zhang <4...@live.cn> wrote: > Hi, > i have one problem with my apache2 work with static file. > In apache2/sites-available file: > >        ServerName www.imaboy.cn >        ServerAlias shop.imaboy.cn >       Alias /static

Re: Help using internationalization feature

2011-03-16 Thread Andres Lucena
El lun, 14-03-2011 a las 11:45 -0500, Juan Gabriel Aldana Jaramillo escribió: > Thanks for your comprehensive reply. Now everything is clear to me. > Also you should check django-rosetta, it permits translating through an admin like interface, with google translate integration; very nice ;)

Re: jquery toggle in form from model

2011-03-09 Thread Andres Lucena
El mié, 09-03-2011 a las 12:17 -0500, Rich Wilson escribió: > Hello all, I was wondering if I could get some guidance using jquery. > > I have a form from model in which I would like to display certain form > fields based on a check box being checked or unchecked. Could also be > done using a

Re: Help required :(

2011-02-21 Thread Andres Lucena
El dom, 20-02-2011 a las 21:18 -0800, Ash escribió: > Hi , I am new to Python and Django. > > Can some please let me know - > First of all, when you write a mail to a mailing list, you should put a more descriptive subject (almost everyone who writes here is requiring help). > 1) can I use

Re: Ordering/sort_by from a custom method

2011-02-17 Thread Andres Lucena
en is with SQL, something similar to this and the get_top method: http://stackoverflow.com/questions/544597/problem-ordering-by-votes-with-django-voting Thank you for your help Alex. Bye, Andres > > Alex > > On Feb 10, 8:54 am, Andres Lucena <andresluc...@gmail.com> wrote

Re: Customize flatpage

2011-02-13 Thread Andres Lucena
El dom, 13-02-2011 a las 04:02 -0800, galago escribió: > Should I alternate original flatpage midddleware? > If I won't do that, my new fields can be unseen? No, you don't have to change the middleware. AFAIK the middleware [0] the only thing it does is capture the 404 and try to get the

Re: Login, Password Recovery, etc

2011-02-13 Thread Andres Lucena
El vie, 11-02-2011 a las 21:06 -0500, Mike Seidle escribió: > Quick question - is there an application or examples of completely > implemented > user authentication templates? It's getting old trying to devine how to set > up templates for password recovery and registration. Seems to me that

Re: Customize flatpage

2011-02-13 Thread Andres Lucena
El vie, 11-02-2011 a las 12:35 -0800, galago escribió: > I found that > link: http://linfiniti.com/2011/01/bending-django-flatpages-to-your-will. I > want to make some customization in flatpage. Where should I put this extra > module and form? > I want to add 2 fields to custom flatpage. > You

Re: Ordering/sort_by from a custom method

2011-02-10 Thread Andres Lucena
ore) Thank you, Andres > Alex > > On Thu, Feb 10, 2011 at 7:41 AM, Andres Lucena <andresluc...@gmail.com> wrote: >> On Thu, Feb 10, 2011 at 2:29 PM, Alex Robbins >> <alexander.j.robb...@gmail.com> wrote: >>> Yeah, you'll definitely want to find some aggrega

Re: Ordering/sort_by from a custom method

2011-02-10 Thread Andres Lucena
ics/db/aggregation/ >> >> Hope this helps! >> Casey >> >> >> >> >> >> >> >> On Wed, 2011-02-09 at 10:08 +0100, Andres Lucena wrote: >> > On Tue, Feb 8, 2011 at 6:00 PM, Andres Lucena <andresluc...@gmail.com&

Re: Ordering/sort_by from a custom method

2011-02-09 Thread Andres Lucena
On Tue, Feb 8, 2011 at 6:00 PM, Andres Lucena <andresluc...@gmail.com> wrote: > Dear Gurus, > > I've made a custom method for getting the score (from django-voting) > for a giving Model: > > class Link(models.Model): >    episode = models.ForeignKey("Episode&

Re: Calling out for Help!

2011-02-08 Thread Andres Lucena
On Tue, Feb 8, 2011 at 6:11 PM, Tom Evans wrote: > On Tue, Feb 8, 2011 at 5:01 PM, Dev@CB wrote: >> Tom, why are you discouraging me? >> > > My intention was not to discourage you; it was to encourage you to ask > a sensible question in a legible

Ordering/sort_by from a custom method

2011-02-08 Thread Andres Lucena
Dear Gurus, I've made a custom method for getting the score (from django-voting) for a giving Model: class Link(models.Model): episode = models.ForeignKey("Episode", related_name="links") url = models.CharField(max_length=255, unique=True, db_index=True) def __unicode__(self):

Re: Calling out for Help!

2011-02-08 Thread Andres Lucena
On Tue, Feb 8, 2011 at 5:26 PM, Dev@CB wrote: > Hello. I hope someone is maybe having a slow day and can spend a > little time with me. Here's the whole story: Several months ago, our > company started a django project. This project was headed by one man. > Well, as of

Re: admin users permissions question

2011-02-08 Thread Andres Lucena
On Tue, Feb 8, 2011 at 5:00 PM, jean polo wrote: > hi > > I created some User Profile in my app. > Each user can add some posts and now I'd like one user to be able to > view/modify only his/her posts in the admin, and not the posts from > other users. > I have no idea

Re: Passing variables to template filters

2011-02-04 Thread Andres Lucena
On Fri, Feb 4, 2011 at 11:07 AM, Tom Evans <tevans...@googlemail.com> wrote: > On Fri, Feb 4, 2011 at 9:53 AM, Andres Lucena <andresluc...@gmail.com> wrote: >> Hi, >> >> In my base.html I'm trying to do this: >> >>        {% block title %}{{

Re: Redirecting to personal pages.

2011-02-04 Thread Andres Lucena
On Fri, Feb 4, 2011 at 10:59 AM, balu wrote: > Hi all :) > > I'm trying to create a website application using django's built in > authenticaiton app. I had customized the login, logout, signup... > template. But how to customize personal page which will be redirected > after

Re: user full name in template

2011-02-04 Thread Andres Lucena
On Fri, Feb 4, 2011 at 10:23 AM, Ivo Brodien wrote: > >> Don't forget the login_required decorator, because if an anonymous >> user try to get that page he will get an exception (I think, didn't >> try that) > > No, they will be redirected to login and after login they come back

Passing variables to template filters

2011-02-04 Thread Andres Lucena
Hi, In my base.html I'm trying to do this: {% block title %}{{title|default:"{{SITE_NAME}}"}}{% endblock %} But I'm getting this: TemplateSyntaxError at / default requires 1 arguments, 0 provided So, SITE_NAME is not passed to the filter. As a workaround I did this: {% block

Re: user full name in template

2011-02-04 Thread Andres Lucena
On Fri, Feb 4, 2011 at 6:24 AM, Bobby Roberts wrote: > 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): >        

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