Hello Clinton. 

You never redo the source of pages.

Say you want to create a page to edit "thing".

You edit models/db.py file and append:

    db.define_table('thing',Field('name',requires=IS_NOT_EMPTY())

Then you edit controllers/default.py and you add:

    def manage_things(): return dict(grid=SQLFORM.grid(db.thing))

then you visit

    
http://pydev.allgamer.net/panel/default/<http://pydev.allgamer.net/panel/default/login>
manage_things

Massimo

On Tuesday, 4 December 2012 20:44:18 UTC-6, Clinton Collins wrote:
>
> I'm a beginner with python and wanted to make an attempt at web-dev. After 
> quite a while of searching I found web2py, but I'm having trouble wrapping 
> my head around a few things it does.
>
> As of right now I have a simple login page designed that has some HTML 
> forms in it already: http://pydev.allgamer.net/panel/default/login
> What would be the best way of recreating the forms with web2py without 
> having to redo the entire source of that page? Forgive my ignorance as I'm 
> doing my best to learn and have searched around for hours and still don't 
> understand how to use form customization to do what I want with it.
>
> Thanks for any feedback.
>

-- 



Reply via email to