Thanks creecode, didn't realise that source was there. I checked out
how the URL was passed to the view function and it works perfectly!
So simple it's unbelievable. I assume this is the best method to use
when starting your own CMS?
On Mar 20, 11:35 am, creecode wrote:
> Take a look at how Flat
Take a look at how Flatpages <
http://code.djangoproject.com/browser/django/trunk/django/contrib/flatpages
> does it and see if something like that method will work for you.
One trick with a pattern like this is to put it near the end of your
patterns so that it doesn't get satisfied to early and
I've already kind of asked this question in another post but haven't
had an answer yet.
I have a database with just two columns in it - URL and CONTENT. I
have a view function called 'pages' that will take an argument (that
should be the page URL) and look for the row of data that matches the
URL,
3 matches
Mail list logo