Hi djangoers,
I'm learning Django by setting up a blog per instructions here (combined
with code from djangoproject.com svn):
http://www.rossp.org/blog/2006/jun/08/django-blog-redux/
Most things work, except I enter raw html when posting the blog through
the admin interface, and the raw html is displayed on the page.
I enter raw html when editing flatpages, and that renders properly in my
browser.
Also, I use the slug as part of my post urls; but they only work when I
use text... I would also like to use hyphens.
I'm using latest django svn, python 2.4.3, RHEL5, Apache2.2 w/ mod_python.
models.py:
import datetime
from django.db import models
class Post(models.Model):
pub_date = models.DateTimeField()
slug = models.SlugField(unique_for_date='pub_date')
headline = models.CharField(max_length=200)
summary = models.TextField(help_text="post summary - use html")
body = models.TextField(help_text="Body Text - can use html")
author = models.CharField(max_length=100)
Thanks,
Floyd
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---