Hi Déborah,

Take a look at the `create_pages
<https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/core/management/commands/createdb.py#L120-L136>`
method of the createdb
<https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/core/management/commands/createdb.py>
management
command. That should get you started.

--ken

On Mon, Aug 17, 2015 at 10:04 AM, Déborah Leder <[email protected]> wrote:

> Hello
>
> When someone first creates a mezzanine site by running the command python
> manage.py createdb, they are proposed to lauch some pages like Contact or
> Gallery.
> I would like to do a similar thing in a django application : define a
> "default page" with a slug and a description (and some other things, if
> necessary), and when someone first migrates their site with my app on it,
> they can answer "yes" or "no" to have my default page added on their site.
> Is it possible ? And if so, how/where should I define my default page ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to