Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
content management in django
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
eclypcix  
View profile  
 More options Sep 24 2012, 6:58 am
From: eclypcix <zweer...@gmail.com>
Date: Mon, 24 Sep 2012 03:58:57 -0700 (PDT)
Local: Mon, Sep 24 2012 6:58 am
Subject: content management in django

Hello,

I'm converting a static website to a Django application and I need a piece
of advice from more experienced people what is the right way to store
content.
The website will have some static pages like "about","contacts", etc. and a
dynamic content like news and photo galleries that should be updated from
the web interface. So my best guess is that static pages should be
implemented using templates and news should be stored in a database. I
believe this is a common task so is there a better way to solve it? And how
is news editing implemented? Does the editor create an html in some
html-editor and then paste it into the database, or is a web-based
WYSIWYG-editor usually used?

Thank you!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonas Geiregat  
View profile  
 More options Sep 24 2012, 10:59 am
From: Jonas Geiregat <jo...@geiregat.org>
Date: Mon, 24 Sep 2012 16:57:51 +0200
Local: Mon, Sep 24 2012 10:57 am
Subject: Re: content management in django

I would advise you to take a look at feincms, it has exactly what you need.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Backhouse  
View profile  
 More options Sep 24 2012, 12:01 pm
From: Paul Backhouse <pa...@aptivate.org>
Date: Mon, 24 Sep 2012 17:00:24 +0100
Local: Mon, Sep 24 2012 12:00 pm
Subject: Re: content management in django
I'm not sure that I fully understand your question, but, for the static
content, django flatpages
(https://docs.djangoproject.com/en/dev/ref/contrib/flatpages/) may be
what you are looking for.

News editing would have to be handled by your news editing app!
django-cms (https://www.django-cms.org/) may be a good first port of
call. There are WYSIWYG editors which can be easily integrated, eg
TinyMCE (http://django-tinymce.readthedocs.org/en/latest/index.html)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
eclypcix  
View profile  
 More options Sep 25 2012, 9:35 am
From: eclypcix <zweer...@gmail.com>
Date: Tue, 25 Sep 2012 06:35:14 -0700 (PDT)
Local: Tues, Sep 25 2012 9:35 am
Subject: Re: content management in django

@jonas, @Paul Backhouse  thank you for your answers!

I thought about using CMS but considering this is my first project I would
like to do most of the work from scratch, that way I will have more control
over the result and will learn more in the process. TinyMCE looks like
something I had in mind, thanks for the link!

What I should have asked, is it okay to store all the site's html content
in a database? Is it usually done that way?

понедельник, 24 сентября 2012 г., 20:01:45 UTC+4 пользователь Paul
Backhouse написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Backhouse  
View profile  
 More options Sep 25 2012, 12:46 pm
From: Paul Backhouse <pa...@aptivate.org>
Date: Tue, 25 Sep 2012 17:45:24 +0100
Local: Tues, Sep 25 2012 12:45 pm
Subject: Re: content management in django

On Tue, 2012-09-25 at 06:35 -0700, eclypcix wrote:
> What I should have asked, is it okay to store all the site's html
> content in a database? Is it usually done that way?

I'm not sure what you mean by "all the site's html". You wouldn't have
_all_ the sites html in the database, django generates html dynamically
in response to requests, and (usually html) templates are used to
provide uniform structure around the context of a response. Templates
are not normally stored in a database, maybe because they're not
considered to be data which are likely to change, nor can be expressed
in a relational manner.

However it's not unreasonable to have some editable content stored in
the database, which may be html.

An example:

A site has an "About Us" page and the client wants to add in the fact
that Gerald has joined the company.

You could render a template that has all the "About Us" data hard coded,
but then to update the page you would have to edit the template, check
it into revision control and redeploy the site.

If you use flatpages (or any other CMS) then the site administrator (the
client) can change the "About Us" page content through the admin
interface, save it (to the database) and make sure it looks OK on the
site. Lovely.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »