from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/',   include(admin.site.urls)),
    url(r'^', include('manager.urls')),
    url(r'exercise/', include('exercises.urls')),
    url(r'weight/', include('weight.urls')),
    url(r'nutrition/', include('nutrition.urls')),
    url(r'^browserid/', include('django_browserid.urls')),
)

from django.conf.urls import patterns, include, url
from django.conf.urls.i18n import i18n_patterns

from django.contrib import admin
admin.autodiscover()

urlpatterns = i18n_patterns('',
    url(r'^admin/',   include(admin.site.urls)),
    url(r'^', include('manager.urls')),
    url(r'exercise/', include('exercises.urls')),
    url(r'weight/', include('weight.urls')),
    url(r'nutrition/', include('nutrition.urls')),
    url(r'^browserid/', include('django_browserid.urls')),
)

Append the name of the current language to the URLs
Append the name of the current language to the URLs

--HG--
branch : 1.1-dev

  from django.conf.urls import patterns, include, url
+ from django.conf.urls.i18n import i18n_patterns
  
  from django.contrib import admin
  admin.autodiscover()
  
- urlpatterns = patterns('',
+ urlpatterns = i18n_patterns('',
      url(r'^admin/',   include(admin.site.urls)),
      url(r'^', include('manager.urls')),
      url(r'exercise/', include('exercises.urls')),
      url(r'weight/', include('weight.urls')),
      url(r'nutrition/', include('nutrition.urls')),
      url(r'^browserid/', include('django_browserid.urls')),
  )
  
Append the name of the current language to the URLs
## Code Before:
from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/',   include(admin.site.urls)),
    url(r'^', include('manager.urls')),
    url(r'exercise/', include('exercises.urls')),
    url(r'weight/', include('weight.urls')),
    url(r'nutrition/', include('nutrition.urls')),
    url(r'^browserid/', include('django_browserid.urls')),
)

## Instruction:
Append the name of the current language to the URLs
## Code After:
from django.conf.urls import patterns, include, url
from django.conf.urls.i18n import i18n_patterns

from django.contrib import admin
admin.autodiscover()

urlpatterns = i18n_patterns('',
    url(r'^admin/',   include(admin.site.urls)),
    url(r'^', include('manager.urls')),
    url(r'exercise/', include('exercises.urls')),
    url(r'weight/', include('weight.urls')),
    url(r'nutrition/', include('nutrition.urls')),
    url(r'^browserid/', include('django_browserid.urls')),
)
