Generate admin files. Views and Templates with Django?

2008-08-28 Thread Daniel A.
I'm a Rails switcher to Django. In Rails there's an option to generate all the scaffold files, ie, there's a command line script that creates all the files in the project folder of the admin interface. I want to know if there's something similar for Django. Thanks --~--~-~--~~-

Re: Many to One Relationship

2008-08-27 Thread Daniel A.
eignKey(User, related_name='swap_user') > > HTH > > Keith > > On Aug 27, 11:42 am, "Daniel A." <[EMAIL PROTECTED]> wrote: > > > Hi! I'm a switcher from Rails and I'm learning Django. I'm stuck with > > something I thing should b

Many to One Relationship

2008-08-27 Thread Daniel A.
Hi! I'm a switcher from Rails and I'm learning Django. I'm stuck with something I thing should be easy but for some reason I can't find the error. I'm trying to define a model to manage shifts for volunteers. I have three diferent models, Shifts, Users and Swaps. A User have many Shifts and a Shi

Re: Request Context and Generic Views

2007-07-19 Thread Daniel A.
As has been mentioned, they all use a RequestContext to begin with, but if you need additional custom variables to be exposed to your template, then you can pass them as a dict for the extra_context variable. On Jul 19, 5:08 am, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > Hi there! > > How does i