So I worked with Django for a bit and understand regex rudimentary.
I know if there is request it "maps"(not sure what that means) the urls to a certain definition in the view.
That is clear and understandable for one page. But what if I want to design a urlpattern for multiple pages and/or the whole website. I dont understand that part.
Is there a way to do that without regex? If not: What is way to create robust structure with regex? Where I can than add and remove pages quickly.
How do flatpages differ form other pages in this regard?
If that is possible and reasonable I would like to achieve the following with my urls.py?
- Flatpages for the usual sites a website needs:
Home About Media . . . Contacts
- Dynamically created sites within that that are similar to Webgallery (But are not)
Where on the first site I have Text and some checkboxes. And then have one Item of media on every page with a next button.
Urls could look like this
myapp/start/
and then
myapp/start/1 to n
And myapp/ is in the main navigation and a flatpage.
I am used to do static pages and I somehow dont understand how I can get a structure into these different pages. It seems flatpages are static. So I can work easier with them. But maybe later I will run into problems using this approach.
If there would be any great way to quickly understand regexes or how to create a site structure in Django: Please tell me.
Thanks!!