Create your own custom template filter for the markdown. Django's filter
didn't do much besides import markdown and send the content through that.
Comments now live here: https://github.com/django/django-contrib-comments
--
You received this message because you are subscribed to the Google
I just picked up an old project i was working on ( wasn't working on it for
a year almost), and now the comments and markup modules are not working. It
seems that they have been depricated in 1.6 ( project was in 1.4 ).
What are the current alternatives for these ?
Vibhu
--
Simplicity
Thanks Brad - i had a look and didnt get it to work, but thanks to your
hint I did get this to work :
https://django-markup.readthedocs.org/en/latest/
with
https://django-markup.readthedocs.org/en/latest/usage_templates.html
Cheers!
Alex
On Monday, 5 May 2014 21:22:21 UTC+1, Brad Pitcher
django.contrib.markup has been deprecated. You could try using the
standalone project that is a copy of the same code from django:
pip install django_markup_deprecated
Then add "markup_deprecated" to your INSTALLED_APPS instead of
django.contrib.markup.
-
Brad Pitcher
On Mon, May 5,
fwiw - this is the tutorial I was trying :
http://www.creativebloq.com/netmag/get-started-django-7132932 it mentions
django.contrib.markup ... but that doesnt seem to work :\
On Monday, 5 May 2014 16:44:47 UTC+1, Alex Leonhardt wrote:
>
> Hi all,
>
> am new to django and followed a tiny
Hi all,
am new to django and followed a tiny tutorial to start off - I wanted to
add the ability to use Markdown syntax in the blog posts. It was suggested
to use django.contrib.markup, but that wont work anymore ( i guess it's
been removed ) - what do I need to use Markdown in my posts ?
to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
{% extends "base.html" %}
{% load markup %}
{% block posts %}
{% for post in posts %}
*I have used tiny_mce with django.
*
On Sat, May 28, 2011 at 3:34 PM, Vladimir wrote:
> Has anyone any experience in CKeditor or tinymce using with django ?
>
> On 26 май, 20:25, Oscar Carballal wrote:
> > 2011/5/26 Brett Parker
Has anyone any experience in CKeditor or tinymce using with django ?
On 26 май, 20:25, Oscar Carballal wrote:
> 2011/5/26 Brett Parker :
>
> > On 26 May 08:27, Vladimir wrote:
> >> Is there a tool to transform MS WORD file into HTML ? I know there
2011/5/26 Brett Parker :
> On 26 May 08:27, Vladimir wrote:
>> Is there a tool to transform MS WORD file into HTML ? I know there is
>> markdown and textile, but I would prefer MS WORD.
>
> http://wvware.sourceforge.net/
>
> --
> Brett Parker
Also
On 26 May 08:27, Vladimir wrote:
> Is there a tool to transform MS WORD file into HTML ? I know there is
> markdown and textile, but I would prefer MS WORD.
http://wvware.sourceforge.net/
--
Brett Parker
--
You received this message because you are subscribed to the Google Groups
"Django
yes,its called microsoft word:) it is possible to save file as html,but the
quality and portability of this code is poor
Pozdrawiam, Maksymilian Pawlak
26-05-2011 17:27 użytkownik "Vladimir" napisał:
> Is there a tool to transform MS WORD file into HTML ? I know there is
>
Is there a tool to transform MS WORD file into HTML ? I know there is
markdown and textile, but I would prefer MS WORD.
Thank You
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
ersion ofShowellMarkup. It
> allows you or your designer to create web pages without the visual
> clutter of , , {% endfor %}, {% endwith %}, and friends.
>
> Unlike templating solutions that compete with Django, theShowell
> Markup plays nice with Django and still delegates all the he
e:
> I would like to announce an early version ofShowellMarkup. It
> allows you or your designer to create web pages without the visual
> clutter of , , {% endfor %}, {% endwith %}, and friends.
>
> Unlike templating solutions that compete with Django, theShowell
> Markup plays ni
I'm using a custom python-markup filter, which seems to be working
well. However, my URLs aren't relative to my site. So if the rendered
text before filtering contains:
[/login Login]
and the login page is at:
http://localhost/test/login
the filter produces an URL of:
http://localhost/login
Nevermind, I think I'll cut the problem down and use markdown instead of
trac's mackup. I've found a way of handling images that seems more sane here
http://www.omh.cc/2008/aug/18/django-inserting-and-positioning-images/
Although I find trac's markup easier
2009/4/23 Matías Iturburu <mat
Hi all
I have been using this snippet
http://www.djangosnippets.org/snippets/1047/to enable the trac's
excelent wiki markup to my app, so far so well, the
snippet works flawlessy rendering _text_ , however I would like to use the
[Image()] macro as it enables me to do some cool stuff with images
Thanks for your opinions.
I've just discovered this: http://wmd-editor.com . WYSIWYG Markdown
editor. Quite an interesting thing. I think, I'll play around with
this for a while and then decide for the appropriate markup language,
whether Markdown or HTML.
On Tue, Jul 8, 2008 at 10:23 PM, bruno
hat are pros and
> cons of each method, ie. saving posts with some markup language vs.
> html.
Err... HTML actually *is* a markup language, you know ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
HTML (using TinyMCE in admin). I was
> wondering, after reading some stuff about Markdown, what are pros and
> cons of each method, ie. saving posts with some markup language vs.
> html. I must admit, that I feel a bit uncomfortable saving html to the
> database - it just doesn't seem right
in admin). I was
> wondering, after reading some stuff about Markdown, what are pros and
> cons of each method, ie. saving posts with some markup language vs.
> html. I must admit, that I feel a bit uncomfortable saving html to the
> database - it just doesn't seem right to me. So, what is your
Matic Žgur wrote:
> Hi,
>
> I'm working on some project, a part of which is a small blog app. All
> the blog posts are saved as HTML (using TinyMCE in admin). I was
> wondering, after reading some stuff about Markdown, what are pros and
> cons of each method, ie. saving post
Hi Matic,
I really think that html should not be saved on your database.
Markup languages are more "human readable" and can be easily converted
to HTML, if needed.
And really, it just don´t look right :)
Cheers and good luck.
--
Rui
--~--~-~--~~~---~--
Hi,
I'm working on some project, a part of which is a small blog app. All
the blog posts are saved as HTML (using TinyMCE in admin). I was
wondering, after reading some stuff about Markdown, what are pros and
cons of each method, ie. saving posts with some markup language vs.
html. I must admit
> For a) it's important for me to have the possibility to embed raw
> HTML. AFAIK markdown provides hat possiblity, is it also possible with
> textile and reST?
I'm definitely a fan of markdown (I do most of my writing in it), and
it's more than sufficient for any online needs. I tend to
here's a pretty slick GUI program [2] for composing it too.
.. [1] http://www.rst2a.com/
.. [2] http://python.net/~gherman/ReSTedit.html
(not sure if the above link is the latest version...)
> For b) it's important the output is more or less pretty also if the
> writer is not aware of us
ortant the output is more or less pretty also if the
> writer is not aware of using a markup language. Or should I just stick
> with {{ comment.content | escape | urlizetrunc:40 | linebreaks }}?
>
> What are your experiences?
Personally, I would favor Markdown as it would address (a) and
mportant the output is more or less pretty also if the
> writer is not aware of using a markup language. Or should I just stick
> with {{ comment.content | escape | urlizetrunc:40 | linebreaks }}?
>
> What are your experiences?
I prefer Markdown for the following main reasons:
- si
) comments
For a) it's important for me to have the possibility to embed raw
HTML. AFAIK markdown provides hat possiblity, is it also possible with
textile and reST?
For b) it's important the output is more or less pretty also if the
writer is not aware of using a markup language. Or should I
:
>
> > I've been looking for this like crazy, I started using the markup
> > filters with great succes (love at first sight) but there's a little
> > problem. I use special carachters, like and things like that
> > to support different languages. So, if I store it jus
Thanks Craig, will try it when I get home and report on success. =)
On Feb 4, 10:52 pm, "Craig Ogg" <[EMAIL PROTECTED]> wrote:
> On Feb 4, 2008 4:41 PM, Christian W. Koch <[EMAIL PROTECTED]> wrote:
>
> > I've been looking for this like crazy, I started using
On Feb 4, 2008 4:41 PM, Christian W. Koch <[EMAIL PROTECTED]> wrote:
> I've been looking for this like crazy, I started using the markup
> filters with great succes (love at first sight) but there's a little
> problem. I use special carachters, like and things like that
> to
Hey everybody,
I've been looking for this like crazy, I started using the markup
filters with great succes (love at first sight) but there's a little
problem. I use special carachters, like and things like that
to support different languages. So, if I store it just like that in
the DB
Jeff Anderson wrote:
> And you just need minimal functionality,
> You could probable write up a small hack to do it with some regular
> expressions. You can find things that strip html, and then you could to
> the simple markup fairly easily after that. It shouldn't take too long
the lines of Textile or Markdown, but
> with very minimal features. Does anyone know of other projects that
> might fit these requirements?
>
> * Strip all HTML
> * Only allow for simple markup (bold, italics, headers, lists, URLs or
> auto-linking URLs)
> * Do not allow things like ima
Hi,
I'm looking for something along the lines of Textile or Markdown, but
with very minimal features. Does anyone know of other projects that
might fit these requirements?
* Strip all HTML
* Only allow for simple markup (bold, italics, headers, lists, URLs or
auto-linking URLs)
* Do not allow
you just need minimal functionality,
> You could probable write up a small hack to do it with some regular
> expressions. You can find things that strip html, and then you could to the
> simple markup fairly easily after that. It shouldn't take too long to write
> something like that.
&g
te up a small hack to do it with some regular
> expressions. You can find things that strip html, and then you could to
> the simple markup fairly easily after that. It shouldn't take too long
> to write something like that.
>
> It is also possible that some of the existing thing
If you've already looked at the regular bunch: textile, markdown, rst,
etc...
And you just need minimal functionality,
You could probable write up a small hack to do it with some regular
expressions. You can find things that strip html, and then you could to
the simple markup fairly easily
You also do this like that:
class CommentForm(forms.Form):
name = forms.CharField(
widget=forms.TextInput(attrs={'class':'special'}))
url = forms.URLField()
comment = forms.CharField(
widget=forms.TextInput(attrs={'size':'40'}))
'class':'special' --
want.
Michael Trier
blog.michaeltrier.com
On Dec 7, 2007 5:27 AM, Frank 7200 <[EMAIL PROTECTED]> wrote:
> Hi group,
> another question. Is there a way how to pass an information to markup that a
> form field is required?
>
> I have this form with one field, which is required
Hi group,
another question. Is there a way how to pass an information to markup that a
form field is required?
I have this form with one field, which is required (default value).
class CustomForm(forms.Form):
age = forms.ChoiceField(label='Age', choices=AGE_CHOICES)
{{ form.as_table
pressly. Before opening any attachments
please check them for viruses and defects."
On 9/8/07, David Cramer <[EMAIL PROTECTED]> wrote:
>
>
> I've taken the time to upload both our SphinxSearch layer, and our
> MediaWiki markup util to Google code today. For more info see my
Just yesterday, I was thinking how useful it would be to be able to
use mediawiki markup syntax for a new project... and voila -- my
prayers are answered! Thank you for putting this together!
One problem... I'm getting a syntax error on import (using python
2.5):
>>> import w
I've taken the time to upload both our SphinxSearch layer, and our
MediaWiki markup util to Google code today. For more info see my blog
post: http://www.davidcramer.net/code/54/mediawiki-markup-and-sphinxsearch-...
I haven't used Google code before, so if theres any problems just let
me know
Yup... first, don't do it based on user agent. Guaranteed you won't
think of one, or the specs will change, or something will go belly up
on you. Do it on capability. If it's a small screen, do x, otherwise,
do y, whatever the UA is.
What really matters to you is the size of the thing, right?
I would like to change the information/size of the returned HTML page
depending on the User-Agent accessing the content.
(Typically rendering a smaller page for a PDA than for a PC browser.)
I know how to get hold of the User-Agent. It feels to me like this
must be a common requirement, yet I
Ian Holsman wrote:
> shouldn't a warning/informational message be generated in this case.
> something like
>
> $ django-admin install markup
> INFO: no models found to install.. skipping markup
>
> ?
Given that the command acts on a model module, *not* on an ap
shouldn't a warning/informational message be generated in this case.
something like
$ django-admin install markup
INFO: no models found to install.. skipping markup
?
On 12/3/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
>
> On Dec 3, 2005, at 5:13 AM, James Bennett wrote:
>
On Dec 3, 2005, at 5:13 AM, James Bennett wrote:
While setting up a new project tonight, I was running through and
doing a 'django-admin.py install' for each of the apps from
django.contrib I'll be using, and when I got to the markup app, I got
the following error:
Error: No module named
On 12/3/05, Robert Wittams <[EMAIL PROTECTED]> wrote:
> The install is for installing a model-module, not an app. As the markup
> app has no model modules, and there is no model module named markup,
> this is not going to work.
OK, I'd figured as much from a little furthe
While setting up a new project tonight, I was running through and
doing a 'django-admin.py install' for each of the apps from
django.contrib I'll be using, and when I got to the markup app, I got
the following error:
Error: No module named markup. Are you sure your INSTALLED_APPS
setting
53 matches
Mail list logo