doc/tutorials/base/customizing-the-application.rst
changeset 12548 6eec3213bec9
parent 12534 e0e7d8ca051f
child 12658 fdd7165fe1f3
equal deleted inserted replaced
12547:a11119d327e4 12548:6eec3213bec9
    24 Once your |cubicweb| development environment is set up, you can create a new
    24 Once your |cubicweb| development environment is set up, you can create a new
    25 cube::
    25 cube::
    26 
    26 
    27   cubicweb-ctl newcube myblog
    27   cubicweb-ctl newcube myblog
    28 
    28 
    29 This will create in the cubes directory (:file:`/path/to/grshell/cubes` for source
    29 This will create a a directory named :file:`cubicweb-myblog` reflecting the
    30 installation, :file:`/usr/share/cubicweb/cubes` for Debian packages installation)
    30 structure described in :ref:`cubelayout`.
    31 a directory named :file:`blog` reflecting the structure described in
       
    32 :ref:`cubelayout`.
       
    33 
       
    34 For packages installation, you can still create new cubes in your home directory
       
    35 using the following configuration. Let's say you want to develop your new cubes
       
    36 in `~src/cubes`, then set the following environment variables: ::
       
    37 
       
    38   CW_CUBES_PATH=~/src/cubes
       
    39 
       
    40 and then create your new cube using: ::
       
    41 
       
    42   cubicweb-ctl newcube --directory=~/src/cubes myblog
       
    43 
    31 
    44 .. Note::
    32 .. Note::
    45 
    33 
    46    We previously used `myblog` as the name of our *instance*. We're now creating
    34    We previously used `myblog` as the name of our *instance*. We're now creating
    47    a *cube* with the same name. Both are different things. We'll now try to
    35    a *cube* with the same name. Both are different things. We'll now try to
    56 cube depends on this cube, by modifying the ``__depends__`` dictionary in that
    44 cube depends on this cube, by modifying the ``__depends__`` dictionary in that
    57 file:
    45 file:
    58 
    46 
    59 .. sourcecode:: python
    47 .. sourcecode:: python
    60 
    48 
    61    __depends__ =  {'cubicweb': '>= 3.10.7',
    49    __depends__ =  {'cubicweb': '>= 3.24.0',
    62                    'cubicweb-blog': None}
    50                    'cubicweb-blog': None}
    63 
    51 
    64 where the ``None`` means we do not depends on a particular version of the cube.
    52 where the ``None`` means we do not depends on a particular version of the cube.
    65 
    53 
    66 .. _TutosBaseCustomizingTheApplicationDataModel:
    54 .. _TutosBaseCustomizingTheApplicationDataModel: