Re: [need advice and suggestion] questions about generating static web page.

2012-09-25 Thread Ezequiel
On Tuesday, September 25, 2012 3:11:45 PM UTC-3, bruce wrote: > > Dear All, > I am a novice. > Currently, > I am thinking to build a simple static personal web page generator for the > people in my group. So, they can login my django powered site and input > their info, such as name, title,

Re: questions about generating static web page.

2012-09-25 Thread bruce
Thanks very much! Let me post the class in my models.py so, in the models.py, there are three classes: person, section and item. a person has several sections. each section contains several items. class Person .. class Section(models.Model): person = models.ForeignKey(Person)

Re: questions about generating static web page.

2012-09-25 Thread Bill Freeman
I, and probably others, would need a more detailed description of these tables and how they are to be used, before we could offer help on them. On Tue, Sep 25, 2012 at 3:22 PM, bruce wrote: > Thanks!! > Yes. This is exact what I did. > Actually, I finish this in the admin

Re: questions about generating static web page.

2012-09-25 Thread bruce
Thanks!! Yes. This is exact what I did. Actually, I finish this in the admin template. But my question is: the template may contain some tables. These tables may have different number of rows and columns. so, in the model, there will be an additional class mytable. mytable should contain

Re: questions about generating static web page.

2012-09-25 Thread Bill Freeman
It sounds a bit like you want a profile app. It's model holds those things beyond what is already in auth User, which could include one or more text fields, perhaps using TinyMCE or markdown. There is plumbing in Django whereby if you specify such a model in settings.py it will get attached

Re: questions about generating static web page.

2012-09-25 Thread Amyth Arora
sorry, changeuserdata = UserData.objects.filter(userid=1) to userdata = UserData.objects.filter(id=userid) On Wed, Sep 26, 2012 at 12:15 AM, Amyth Arora wrote: > What do you mean by generating a Static HTML page for each user? > > From what i understand you can

Re: questions about generating static web page.

2012-09-25 Thread Amyth Arora
What do you mean by generating a Static HTML page for each user? >From what i understand you can simply have a profile layout's html template and use simple template tags to retrieve user data. For example: 1. Define a UserData class in your models.py that will basically store all the user

questions about generating static web page.

2012-09-25 Thread bruce
God. The original subject is too long. I made the Subject shorter. Thanks, Bruce On Tuesday, September 25, 2012 2:11:45 PM UTC-4, bruce wrote: > > Dear All, > > I am a novice. > Currently, > I am thinking to build a simple static personal web page generator for the > people in my group.

[need advice and suggestion] questions about generating static web page.

2012-09-25 Thread bruce
Dear All, I am a novice. Currently, I am thinking to build a simple static personal web page generator for the people in my group. So, they can login my django powered site and input their info, such as name, title, photo, education background and etc. Then, the person's static web page will