Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRestructure everything to use django-amber #3
Conversation
I have kept the same directory structure for content, templates, and media.
|
Hi Peter, I really want to use this, but there are still problems. Sorry... :-( I'll try to explain what and why below. Hopefully this is useful and we can move forward - I'd like to drop wok asap. Simplicity first! Don't assume technical competence! I hope a large number of our contributors won't be technical, so it's essential that simplicity wins. I want to be able to say to them: "If you put a file in For this to work, the This is important for another reason, if we find we have lots of international pages the global root shouldn't default to whatever is in If I navigate to I realise why (you're following links from What happens if I want to serve a static file that's not Also, can we clean up the Django related stuff after a build - db.sqlite etc..? It just feels untidy having them hang around. What I want is something very simple like the moon on the stick I describe above. ;-) Amber is almost there, soooooo close, but not quite. Can this be fixed? I would offer to help fix things up but I have to write content, re-code a web-editor, fix some CSS problems, blah blah blah for Monday. |
|
Hi @ntoll, thanks for the feedback. This is only the third site that I've used amber for (the other two aren't live yet) and it's good to get more input on how it could/should work. Let's sort this out into issues with amber, and issues with how amber is set up for this site. For this site:
For amber:
Have I missed anything? |
|
+100000 on all that! Clarification - yes, non-static paths is just a question of files that should be served in their raw form no matter the file extension . Yay! |
|
I've updated amber to allow 1-1 mapping between content and output. (To do this, I had to allow for keys to contain slashes.) Before I rebase this branch against master and address the other concerns, can you check that you're happy with how it works? |
|
Hi @inglesp, Many apologies for not responding sooner. This looks great but I have a couple of queries:
Hope this makes sense! Many thanks for all your efforts with this! N. |
|
I'm not realistically going to get to this before PyCon UK, sorry! |
inglesp commentedJul 29, 2016
I have kept the same directory structure for content, templates, and
media.