doc/tutorials/advanced/part04_ui-base.rst
branch3.26
changeset 12459 dc793c6ebc48
parent 12452 eabea792525e
child 12403 d901fc62eb01
equal deleted inserted replaced
12458:e5610bdda5b2 12459:dc793c6ebc48
    17 * make a login box appears for anonymous, so they see at a first glance a place
    17 * make a login box appears for anonymous, so they see at a first glance a place
    18   to put the login / password information I provided
    18   to put the login / password information I provided
    19 
    19 
    20 * customize the 404 page, proposing to login to anonymous.
    20 * customize the 404 page, proposing to login to anonymous.
    21 
    21 
    22 Here is the code, samples from my cube's `views.py` file:
    22 Here is the code, samples from my cube's :file:`views.py` file:
    23 
    23 
    24 .. sourcecode:: python
    24 .. sourcecode:: python
    25 
    25 
    26     from cubicweb import _
    26     from cubicweb import _
    27     from cubicweb.web import component
    27     from cubicweb.web import component
    77 Another thing we can easily do to improve the site is... A nicer index page
    77 Another thing we can easily do to improve the site is... A nicer index page
    78 (e.g. the first page you get when accessing the web site)! The default one is
    78 (e.g. the first page you get when accessing the web site)! The default one is
    79 quite intimidating (that should change in a near future). I will provide a much
    79 quite intimidating (that should change in a near future). I will provide a much
    80 simpler index page that simply list available folders (e.g. photo albums in that
    80 simpler index page that simply list available folders (e.g. photo albums in that
    81 site).
    81 site).
       
    82 
       
    83 Here is the code, samples from my cube's :file:`views.py` file:
    82 
    84 
    83 .. sourcecode:: python
    85 .. sourcecode:: python
    84 
    86 
    85     from cubicweb.web.views import startup
    87     from cubicweb.web.views import startup
    86 
    88