have view, still getting generic

36 views
Skip to first unread message

Dave S

unread,
Aug 15, 2017, 3:40:01 PM8/15/17
to web2py-users
On one of my pet projects, I created a view (.html) for my default/index function, and it works fine.  For my default/addsegment function (which index redirects to if the form was accepted) I initially used the generic view, but then I copied index.html to addsegement.html  -- but I am still getting the generic view.  According to the Web2Py IDE, I spelled the file name correctly, and it's located in views/default, so what should I check next to get to the right display?

(the view is pretty simple, stripped down from the welcome app's default/index.html;  has

{{=form}}


in the center, and some links in the left sidebar.  Works great for myapp/default/index.html; addsegment returns a dict)

Dave
/dps


Jim S

unread,
Aug 15, 2017, 4:26:41 PM8/15/17
to web2py-users
If you're text above is spelled correctly addsegement.html has a typo.  Should be addsegment.html based on the function number you specified.  

But, I assuming that is just a typo in the post.  Can you post the code in question?

-Jim

Dave S

unread,
Aug 15, 2017, 5:33:52 PM8/15/17
to web2py-users


On Tuesday, August 15, 2017 at 1:26:41 PM UTC-7, Jim S wrote:
If you're text above is spelled correctly addsegement.html has a typo.  Should be addsegment.html based on the function number you specified.  

But, I assuming that is just a typo in the post.  

:-) -- but worth triple checking.
 
Can you post the code in question?


As with many pets, this one has to wait for me to get home ;-]  Watch this space ....
 
-Jim


/dps
 

Dave S

unread,
Aug 16, 2017, 3:34:02 AM8/16/17
to web2py-users
 Admin let me mispell the directory ...

Maybe I should have my routes.py map "dafault"  to "default".

/dps

Reply all
Reply to author
Forward
0 new messages