I was trying not to clutter things up. I can tell you though, when I hover over the link with my mouse, the URL that shows up is 127.0.0.1:8000/www.huffington.post.com
This is the same thing when I use the code offered below from the japanese (or chinese) person below, sorry I can't read your name :) *r "welcome"* *Ticket ID* 127.0.0.1.2016-08-28.20-31-55.64675aeb-bf0a-4eb8-b97c-686363adb926 *<type 'exceptions.ValueError'> invalid literal for long() with base 10: 'www.huffingtonpost.com'* *Version* *web2py™* Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 *Traceback* 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. Traceback *(*most recent call last*):* File "/Users/zabgay/Documents/GitHub/maprac/web2py/gluon/restricted.py"*, *line 227*, **in *restricted *exec *ccode *in *environment File "/Users/zabgay/Documents/GitHub/maprac/web2py/applications/welcome/controllers/default.py" <http://127.0.0.1:8000/admin/edit/welcome/controllers/default.py>*, *line 173*, **in **<*module*>* File "/Users/zabgay/Documents/GitHub/maprac/web2py/gluon/globals.py"*, *line 417*, **in **<**lambda**>* *self**.*_caller *= **lambda *f*: *f*()* File "/Users/zabgay/Documents/GitHub/maprac/web2py/applications/welcome/controllers/default.py" <http://127.0.0.1:8000/admin/edit/welcome/controllers/default.py>*, *line 162*, **in *view_a_site site *= *db*(*db*.*sites*.*id *== *request*.*args*(*0*)).*select*().* first*()* File "/Library/Python/2.7/site-packages/pydal/objects.py"*, *line 2020*, **in *select *return *adapter*.*select*(**self**.*query*, *fields*, *attributes*)* File "/Library/Python/2.7/site-packages/pydal/adapters/sqlite.py"*, *line 123*, **in *select *return *super*(*SQLiteAdapter*, **self**).*select*(*query*, *fields*, * attributes*)* File "/Library/Python/2.7/site-packages/pydal/adapters/base.py"*, *line 1283*, **in *select sql *= **self**.*_select*(*query*, *fields*, *attributes*)* File "/Library/Python/2.7/site-packages/pydal/adapters/base.py"*, *line 1170*, **in *_select sql_w *= *' WHERE ' *+ **self**.*expand*(*query*) **if *query *else *'' File "/Library/Python/2.7/site-packages/pydal/adapters/base.py"*, *line 952*, **in *expand rv *= *op*(*first*, *second*, ***optional_args*)* File "/Library/Python/2.7/site-packages/pydal/adapters/base.py"*, *line 846*, **in *EQ *self**.*expand*(*second*, *first*.*type*))* File "/Library/Python/2.7/site-packages/pydal/adapters/base.py"*, *line 962*, **in *expand rv *= **self**.*represent*(*expression*, *field_type*)* File "/Library/Python/2.7/site-packages/pydal/adapters/base.py"*, *line 1435*, **in *represent *return *str*(*long*(*obj*))* ValueError*: *invalid literal *for *long*() *with base 10*: * 'www.huffingtonpost.com' Thank you for helping me work on this S On Sunday, August 28, 2016 at 7:31:17 PM UTC-4, luis.va...@metamaxzone.com wrote: > > Can you post the full traceback? it seems like youre trying to convert the > url to some numeric class. So with the full trace back we can get a clear > look of that > > El domingo, 28 de agosto de 2016, 19:25:10 (UTC-4), Steven Vannoy escribió: >> >> That seemed promising but gave me an exception with top-most error as: >> >> *<type 'exceptions.ValueError'> invalid literal for long() with base 10: >> 'www.huffingtonpost.com <http://www.huffingtonpost.com>'* >> >> >> You can see that I'm using 'www.huffingtonpost.com' as my test case, >> which does resolve correctly if pasted strait into the browser. >> >> >> >> On Sunday, August 28, 2016 at 6:57:37 PM UTC-4, >> luis.va...@metamaxzone.com wrote: >>> >>> Hello! >>> >>> Try this: >>> >>> <a href="{{=site.website}}" target="_blank">{{=site.website}}</a> >>> >>> >>> El domingo, 28 de agosto de 2016, 17:29:40 (UTC-4), Steven Vannoy >>> escribió: >>>> >>>> I have a view that displays a database form. One of the fields in that >>>> form is my user's own website. I'd like to display that as an active link >>>> in the browser. I've tried two different forms, the first produces an >>>> error >>>> because it is trying to resolve to a view within my application, and the >>>> other just reloads the current page. >>>> >>>> Here is the code in my view >>>> >>>> {{if site.website is not None:}} >>>> {{=A(T("Web Site"), _href=site.website)}} >>>> <br> >>>> <a href={{site.website}}>{{=site.website}}</a> >>>> {{pass}} >>>> >>>> >>>> Any help is much appreciated >>>> >>>> >>>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.