DjangoDash 2010 is done! Check out the projects done in 48 hours.

2010-08-16 Thread iJames
Hi programmers!

I didn't see a posting about DjangoDash so I thought I would mention
it since I didn't participate and so I'm awake.  And also because I
didn't know about it but for a single podcast I happened to listen to.

Kudos to the awesome teams who burned up the commits!

DjangoDash 2010 was 48 hours of straight programming from a blank git-
hub to a full working application.

I just took a peek at some of the apps, it's an awesome testimonial to
what can be done with some good thinking and planning, 48 hours of
good coding, and an awesome framework like Django.

Check it out here:  http://www.djangodash.com

Now back to my own Django project.  It sure seems like I could be
finishing it faster...  :-P

James

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Can't figure out how to leverage a complex session object in a template?!?

2010-07-28 Thread iJames
HI,

I've got a session object which is a dict.  I'm using it to track the
state of screen elements (an expanding tree).

request.session['mystate'] = {'1':'true', '2','false'}

In my template I'm looping through the branches:

object.id is 1
object.id is 2

So:

I want to test:

request.session['mystate'][object.id]=='true':

But how can get that multidimensional dynamic ref into a template with
only dot notation?

I don't see how I can even do it in the view without stuffing the
information into the model object.

Any ideas?  Thanks much!

James

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Pre-Registration User versus Registerred User?

2010-07-07 Thread iJames
I think my brains have been un-djangoed because I think I'm missing
something obvious.

I've got the user model linked in with my own model serving as the
profile which is working for registerring and authenticating a user.

But I'm wondering how to have a guest be able to do some things with
the intention of registerring later on?

For instance, I want a user to be able to input some data and upload a
file and then after that set themselves up with a login and/or openid
or something like that.

There are three aspects I'm troubled with which I think should be
obvious but I'm missing them:

1) If I setup these views/templates to be accessible to a non-
authenticated user, how will any data they create be associated with
the authenticated user later?  And if they don't register, how can I
find and purge the data after some time?

2) Can I not delete the session cookie so that the non-authenticated
user can return in the same browser and still see their data?

3) What is the best practice for managing views/templates for the
triple world  Guest versus Registerred User versus Admin?  In
particular, how do I manage the different contexts that can ripple
through a the base template and the included templates?

Thanks!  I've got another burning question, but this one's first!

James

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.