Well, in general i haven't a lot of practice in Django. I'm on the way)

среда, 12 июля 2017 г., 16:08:52 UTC+3 пользователь Kenneth Bolton написал:
>
> Please answer my previous questions and I may be able to answer yours. -ken
>
> On Wed, Jul 12, 2017 at 8:29 AM, <[email protected] <javascript:>> 
> wrote:
>
>> 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]> 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] <javascript:>.
>> 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