Ok, In such case, please set manually the page slug to /
and use the urls.py record the way you have it now, only change the slug to
/ too. This worked for me.

J.

2016-03-16 12:05 GMT+01:00 Encolpe Degoute <[email protected]>:

> I just want the home page to be a normal page, not a template.
> I guess SITE_PREFIX will break l01n settings ('/en' and '/fr' roots).
>
> Encolpe
>
> Le mer. 16 mars 2016 à 11:47, Jakub Škaryd <[email protected]> a écrit :
>
>> Hi,
>>
>> I have tested this having set slug to / manually and simply uncommenting
>> one line in urls.py. Why your homepage slug is set to something else than /?
>> If the whole page has prefix /accueil, I would set it in SITE_PREFIX
>> settings.
>>
>>
>> Jakub
>>
>> 2016-03-16 11:29 GMT+01:00 Encolpe Degoute <[email protected]>:
>>
>>> Hello,
>>>
>>> Following the documentation I create a page with the URL '/accueil'.
>>> I can see it on http://localhost/accueil/.
>>>
>>> So in the dispatcher I added the following line and it raises a 404:
>>>
>>> url("^$", mezzanine.pages.views.page, {"slug": "/accueil/"}, name="home"
>>> ),
>>>
>>> When I'm going into http://localhost/ I'm redirected to
>>> http://localhost/fr/
>>>
>>> I'm using the i18n settings:
>>> LANGUAGE_CODE = 'fr-fr'
>>> TIME_ZONE = 'Europe/Paris'
>>>
>>> LANGUAGES = (
>>>     ('fr', _('French')),
>>>     ('en', _('English')),
>>> )
>>>
>>> USE_I18N = True
>>> USE_L10N = True
>>> USE_TZ = True
>>>
>>> I tried to use slug='/fr/accueil/' without success.
>>>
>>> Best regards
>>> --
>>> Encolpe
>>>
>>>
>>> --
>>> 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.
>>
> --
> 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