So I ran through a lot of Django tuts and I seem to understand the basics.
I know everything about the urls.py.
But now I need to design the urls for the whole site.
It seems not as easy as I imagined.
I would like to achieve the following.
overall structure:
main-site/
main_site/projects/
main_site/projects/project1
/project2
/project3
/projectn
Project structure:
Every project has components that every Project shares:
projectn/description
projectn/criteria_to_participate
projectn/other
And components that just that project has.
projectn/section1/paginatorgallery1
projectn/section2/paginatorgallery2
projectn/final_summary/
If somebody lands in projectn/section1/paginatorgallery1
So my questions:
- Is this a good structure?
- Is there a site, resource to get some nice overview of django site structures for certain purposes? e.g. Webgallery, Photosite, Blog, Professional Site etc..
- Is there a way to prevent people to go back e.g. to main_site, once in one project?
So if the user would just manually take away urls:
e.g. He is actually is on:
/main_site/project1/gallery
and manually takes away gallery in the browser.
/main_site/project1/
Can I say that is forbidden? How can I achieve this?
- Can I solve that by letting people login in?
And how can I achieve a url system that deals with the logged in user different?
In other words how do I have to design the urls if I have a login and a non login part?
I know a lot of questions.
But I hope that everybody had to go through this part sooner or later and might be able to share some insights..
Thanks