Fix wrong PROJECT_PATH
Merge pull request #1728 from deshack/develop

Fix wrong PROJECT_PATH
removes useless statement
don't fail when english is not available

Django runs all management commands with 'en-us' as the activated language.
If 'en' or one of the en-sublanguages is not defined in CMS_LANGUAGES,
``update_site_and_page_choices`` fails.

I'm not 100% sure if this fixes the problem at the right level, though...
Merge pull request #1742 from piquadrat/feature/fix-no-english

don't fail when english is not available
fixed url_redirects when ``USE_I18N=True``, but no ``i18n_patterns`` is used

Currently, the code checks if ``USE_I18N`` is set to ``False``. If it's ``True``, a language prefix is added.

There are cases where one doesn't need language prefixes (only a single active language), but still wants ``USE_I18N = True`` (e.g. to make use of the django translation framework).

This PR includes a copy of django's ``LocaleMiddleware.is_language_prefix_patterns_used()`` to do a proper check if a language prefix is needed or not.
Merge pull request #1746 from piquadrat/feature/fix-single-language-redirects

fixed url_redirects when USE_I18N=True, but no i18n_patterns is used