Hi guys,

Just taking my first steps with Django and in fact web frameworks in
general. I understand that in a Django based CMS a URL is passed via a
variable in urls.py which then locates a row in a database containing
the html code to send to a template. What I want to know is, is this
done with most types of web application or do a lot of programmers
create static pages inside views.py as well?
I'm actually about to embark on a web application which will consist
of about 200 different page views and 12 different templates, all
performing some kind of in depth function. Do I try and integrate my
web app with a Django CMS or am I being an idiot if I create each of
these pages in views.py?

I can't find any information on best practices with Django and not
sure where to start.

Secondly. As I mentioned in the first paragraph I understand that the
URL gets handled in urls.py and the actual URL of a page is stored in
a database row with it's content. How do I capture a URL in urls.py,
pass it to a view function and grab the info from the related database
row without using FlatPages?

Sorry if the second question's answer is a bit long but I don't seem
to be able to grasp the concept of having a single view function which
can grab a URL. Not sure how the URL gets to the function.

Many, many thanks in advance if anybody can actually understand what
I'm asking.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to