Thanks, Ken. Look, in my urls.py I have such routes:
url("^$", direct_to_template, {"template": "index.html"}, name="home"), #
main page
url("^contact$", mezzanine.pages.views.page, {"slug": "/contact"}, name=
"contact"), # contact form
I want to include the same contact form also in my index.html. I've tried
to use context_processor, but I got just caption of the form, but not the
form fields.
вторник, 11 июля 2017 г., 21:36:53 UTC+3 пользователь Kenneth Bolton
написал:
>
>
> On Tue, Jul 11, 2017 at 1:48 PM, <[email protected] <javascript:>>
> wrote:
>
>> Hello,
>>
>
> Hi
>
>
>> sorry, i'm new in Mezzanine.
>>
>
> No need to apologize. Where do you stand with Django & Python? Proficiency
> in both will improve your ability to work with Mezzanine.
>
> I've made a form with dedicated route. But I wish to have the form also on
>> the main page (index.html).
>>
>
> The `urls.py` has all the info you need to get you going with that:
> https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/project_name/urls.py#L31
>
>
>> hth,
> ken
>
--
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.