dholbach | nottrobin, do you think somebody can reply to https://plus.google.com/u/0/b/114818154975936614448/+SnapcraftIo/posts/fJkfPU4CTV9? | 08:08 |
---|---|---|
nottrobin | dholbach: I responded, but I'm not sure I know how to help. I'm not very familiar with translations. | 08:13 |
dholbach | thanks | 08:13 |
dholbach | mhall119, for some reason I can't see the "redirects" app in the admin interface | 13:34 |
dholbach | mhall119, could it be you forgot a 'makemigrations'? http://paste.ubuntu.com/20177731/ | 13:35 |
mhall119 | dholbach: no, redirects/migrations/0001_initial.py is in there | 13:38 |
dholbach | and if you run "makemigrations" afterwards? | 13:39 |
mhall119 | oh, I added help text... | 13:39 |
mhall119 | that wants a new migration? | 13:39 |
mhall119 | dholbach: that's not why it's not in the admin though, you need to run initdb to set the new permissions to the admin/editors group, then log out andback in | 13:40 |
dholbach | yes, that's working now - thanks | 13:41 |
* mhall119 is pushing the 0002 migration | 13:41 | |
dholbach | cool | 13:41 |
dholbach | mhall119, do you think we could add an example to models.py or in the help_text? | 13:51 |
dholbach | just so it's clear how it's used? | 13:51 |
mhall119 | dholbach: sure, would a comment in the code be sufficient? | 13:52 |
dholbach | that'd be a good start | 13:52 |
mhall119 | if you think having it in help_text would be better I can do that, it just means another migration file | 13:52 |
mhall119 | it would be more helpful there though | 13:52 |
mhall119 | dholbach: ok, put examples in the help_text and pushed changes to the MP | 13:56 |
dholbach | thanks, checking | 13:56 |
dholbach | so I added these pages | 14:13 |
dholbach | Root | 14:13 |
dholbach | -> Old | 14:13 |
dholbach | -> ... | 14:13 |
dholbach | I renamed old to new | 14:14 |
dholbach | (I know, very original) | 14:14 |
dholbach | so /en/new/ works now | 14:14 |
dholbach | I added /old/ -> /new/ in the admin interface | 14:14 |
dholbach | now only /old/ redirects to /en/new/ | 14:15 |
dholbach | /en/old/ doesn't | 14:15 |
dholbach | it gives me a 404 | 14:15 |
mhall119 | right, you'd have to add /en/old/ as well | 14:28 |
dholbach | hum... | 14:28 |
dholbach | so that's for every language then? | 14:28 |
mhall119 | this middleware is run before the cms middleware that tries to prepend language codes | 14:28 |
mhall119 | every language you want to redirect, yes | 14:28 |
mhall119 | doing it before the CMS middleware lets us catch it before the prepending and after | 14:32 |
dholbach | but it'll require more work | 14:33 |
dholbach | that should be documented too | 14:33 |
dholbach | mhall119, apart from that I'm good | 14:42 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!