Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Had to add a content_md field so the uses could access the markdown
Removed the the template_tag implementation as the image stuff is no longer necessary. I will be adding a include tag for metadata
- Loading branch information
Showing
5 changed files
with
46 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
from django.conf import settings | ||
|
||
PARSER = getattr(settings, "FLATPAGES_X_PARSER", ["flatpages_x.markdown_parser.parse", {}]) | ||
DEFAULT_TEMPLATE_CHOICES=[ | ||
('flatpages/default.html','Text Only',), | ||
] | ||
FPX_TEMPLATE_CHOICES=getattr(settings,'FLATPAGE_X_TEMPLATE_CHOICES',DEFAULT_TEMPLATE_CHOICES) | ||
FPX_TEMPLATE_CHOICES=getattr(settings,'FLATPAGES_X_TEMPLATE_CHOICES',DEFAULT_TEMPLATE_CHOICES) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django import template | ||
from django.contrib.flatpages.models import FlatPage | ||
from flatpages_x.models import FlatPageMeta,FlatPageImage | ||
|
||
register = template.Library() | ||
|
This file was deleted.
Oops, something went wrong.