I'm new to django and i think it's brilliant except for the weird template
system.
It seems the only way i can write templates which are generic enough to be
reusable is to write complex tags and filters for tasks which could be
handled by a simple argument on a function call, or as a compromise a
No i have processors, i have all the data i need in the template, i just
don't know an elegant way to condition out menu items.
This is how my model works
ACCESS_CHOICES = (
(1, "Public"),
(10, "Private"),
(100, "Staff"),
(1000, "System")
)
class Menu(models.Model):
name
quot;access" tag checks for the existence of user in the context and
calculates the users access level, or failing that assumes an access of 1
(Anonymous). Then it checks for an access property on item and renders the
block only if user.access >= item.access . You see why the formerly
m
I think your password is stored in plaintext. try using User.set_password
http://docs.djangoproject.com/en/dev/topics/auth/#passwords
On Mon, Feb 1, 2010 at 10:42 AM, tsmets wrote:
> I create in my model the Authors
>
>
> class Author(User):
> """ An Author is someone more of less identified "
user = User.objects.get(username__exact='bob')
Works fine for me, you may want to try get since it will throw an exception
if there is no matching user. Then you know the problem is elsewhere.
On Sat, Feb 6, 2010 at 11:30 AM, kamilski81 wrote:
> I would like to save a form by doing the following
It is, but so is almost anything else.
On Mon, Mar 8, 2010 at 8:01 PM, chels wrote:
>
> I am planning to (or atleast attempting to) write a webmail service
> (like gmail, hotmail etc) using Python. I would like to know if Django
> would be suitable for this.
>
> --
> You received this message be
I use a STATIC variable in templates which i set in settings.py which points
to the appropriate server or path.
So the link is
and STATIC is something like
STATIC="192.168.1.5:8001"
Of course i use lighttpd for static files
On Mon, Mar 8, 2010 at 10:05 PM, Martin N. wrote:
> I encountered probl
I would suggest running your erlang on another webserver and either using an
iframe or use django as a proxy (connect to erlang in your django view).
On Fri, Mar 12, 2010 at 1:02 PM, nameless wrote:
> Hi at all.
> I need to create a blogging system with Django+Apache+Postgresql and a
> twitter-l
erver
> with 2 program languages :-\.
>
>
> -
> On 12 Mar, 07:29, Dylan Evans wrote:
> > I would suggest running your erlang on another webserver and either using
> an
> > iframe or use django as a proxy (connect to erlang in your django view).
> >
> >
>
web chat ( using ajax and long polling on client side ).
> This is because I have chosen Erlang+Yaws+Mnesia.
> Is it a wrong approach ?
>
> thanks.
>
> ----
> On 12 Mar, 15:20, Dylan Evans wrote:
> > That's difficult to say without specifics, but you should be able
10 matches
Mail list logo