-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django 1.4 - Locale URL #8
Comments
L10n is brilliant, works great. 1 more thing, is there a way to add to admin links for languages? That editor would choose language and stays on that language entire time while editing. |
Did you install the i18n middlewares? http://packages.python.org/django-easymode/middleware.html I think these are obsolete though, because django ship with i18n-urls. I didn't really get to testing easymode proper with 1.4. I only managed to find time to fix very obvious bugs. If you did use the middlewares and the issue stays, this will be fixed in the near future. As for language selection dropdowns, you need to build it yourself, easymode doesn't ship one yet. |
If I add these - 1 or other or both I got this error: [Mon Apr 02 15:42:35 2012] [error] [client 127.0.0.1] self.load_middleware() I know that in 1.4 'ADMIN_MEDIA_PREFIX' doesnt exist anymore, when I remove those middlewares all is fine. |
The middlewares provide the functionality you want. Please add ADMIN_MEDIA_PREFIX = '/admin/media/' to your settings and test again.
PermanentMarkers |
ok I did that and got error: AttributeError at / Request Method: GET |
Probably you did not include session middleware or the order of your middle wares is incorrect. Look at the example application to find the correct order. |
Ok great now fully functional:
all works on dajngo 1.4 - brilliant Great work love it :) Can you explain me 1 thing why I need to put ADMIN_MEDIA_PREFIX = '/admin/media/' in django 1.4 is deprecated, what easymode needs to use it? Isnt it only for symbolic link for css (contrib admin)? Even my symbolic link is pointing to somewhere else in django 1.4 because of new structure. Anyway awsome work :) |
Like I said, easy mode is not well tested with django 1.4. Some stuff needs to be removed, some issues might exist. Anyway, your comments are very helpful, because they show me where to look. If you find more stuff that seems weird or bugged, please make more tickets. |
yes of course will test for sure so far its great :) thanks a lot |
Hello,
want to say great job on easymode, I made changes to it by your tutorial for 1.4 and it works great except 1 thing.
In 1.3.1 - Django admin was using links which basically made you to stay in admin on certain language, example:
Django 1.4:
So I have 2 versions of website in 1.3.1 and 1.4 - I want to achieve that person with Italian language will stay on Italian, without
changing the 'localeurl' in the url every record he is changing...
I would like to do it without editing the core of django to be like in 1.3.1, I think there must be a proper way to do it with cookies
maybe not sure, I am not PRO in Django so if you already know if you can share how to achieve this, thanks a lot.
Great work by the way.
The text was updated successfully, but these errors were encountered: