I have created Models like
*models.py file:*
from django.db import models
from mezzanine.pages.models import Page
class Author(Page):
dob = models.DateField(Date of birth)
I am using Wamp to save database/tables.
My database name is abcdef
* tables have created in my
*processor_for.py*
from django import forms
from django.http import HttpResponseRedirect
from mezzanine.pages.page_processors import processor_for
from .models import Book
class BookForm(forms.Form):
name = forms.CharField()
email = forms.EmailField()
@processor_for(Author)
def
thank's ! hmm can you answer my second question, i posted today with title
`what to do next`!
--
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
page_processor.py defining restaurant function. How to define url to
access this function can you please write this line of code?
--
You received this message because you are subscribed to the Google Groups
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails
processors.py file:
from django import forms
from django.http import HttpResponseRedirect
from mezzanine.pages.page_processors import processor_for
from .models import Author
class AuthorForm(forms.Form):
name = forms.CharField()
email = forms.EmailField()
@processor_for(Author)
def
Excellent Explanation of page processor. I was lokking for such
explanation from last 2 days. Good job @Eduardo -- I am trying to achieve
this goal too. can you please help me to solve similar
problem
https://groups.google.com/forum/#!topic/mezzanine-users/D9Gjp_jOQNM%5B1-25-false%5D
Yes author is model @Josh
Thank's Allah, i solve this problem. What i did is i decided to start
from simple model and simple example.
*models.py file:*
from django.db import models
from mezzanine.pages.models import Page
class Author(Page):
dob = models.DateField(Date of
Hi Kenneth Bolton Thank's for quick response. Few more questions:
In the admin interface for the page, look for the fields Show in menus.
-*- using admin interface if i create page i don't find this in
templates folder and if i create html page and store this in
templates/pages folder,
Great reply.
Thank's Kenneth Bolton
Can i ask you more question's if i face any problems further :)
Regards
Tameen
--
You received this message because you are subscribed to the Google Groups
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails
Great reply.
Thank's Kenneth Bolton
Can i ask you more question's if i face any problems further :)
Regards
Tameen
--
You received this message because you are subscribed to the Google Groups
Mezzanine Users group.
To unsubscribe from this group and stop receiving
yes i studied first 5 chapters of djangobook.com this week. hmm i don't
know i just stuck here in mezzanine. Sir can't you give me small example
(if you can). Mezzanine documentation is not detailed or may be my mind
can't work unless i go through 3,4 examples! :(
--
You received this
and how to define this in template to make this accessible?
--
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 mezzanine-users+unsubscr...@googlegroups.com.
For
12 matches
Mail list logo