# -*- encoding: utf-8 -*-
"""
License: MIT
Copyright (c) 2019 - present AppSeed.us
"""
from django.conf.urls import url
from django.conf.urls.i18n import i18n_patterns
from django.contrib import admin
from django.urls import path, re_path, include

from . import views

urlpatterns = [
    # Matches any html file - to be used for gentella
    # Avoid using your .html in your resources.
    # Or create a separate django app.
    re_path(r'^.*\.html', views.pages, name='pages'),

    # The home page
    path('', views.index, name='home'),

    path('admin/', admin.site.urls),
    path("", include("authentication.urls")),  # add this
    path('company/', include('company.urls')),
    path('product/', include('product.urls')),
    path('order/', include('order.urls')),
    path('order-item/', include('order_item.urls')),
    path('address/', include('address.urls')),
    # The home page
]

urlpatterns += i18n_patterns(
    url(r'^i18n/', include('django.conf.urls.i18n')),
)


from django.conf import settings

if 'rosetta' in settings.INSTALLED_APPS:
    urlpatterns += [
        url(r'^rosetta/', include('rosetta.urls'))
    ]
# -*- encoding: utf-8 -*-
"""
License: MIT
Copyright (c) 2019 - present AppSeed.us
"""
from django.conf.urls import url
from django.conf.urls.i18n import i18n_patterns
from django.contrib import admin
from django.urls import path, re_path, include

from . import views

urlpatterns = [
    # Matches any html file - to be used for gentella
    # Avoid using your .html in your resources.
    # Or create a separate django app.
    re_path(r'^.*\.html', views.pages, name='pages'),

    # The home page
    path('', views.index, name='home'),

    path('admin/', admin.site.urls),
    path("", include("authentication.urls")),  # add this
    path('company/', include('company.urls')),
    path('product/', include('product.urls')),
    path('order/', include('order.urls')),
    path('order-item/', include('order_item.urls')),
    path('address/', include('address.urls')),
    # The home page
]

urlpatterns += i18n_patterns(
    url(r'^i18n/', include('django.conf.urls.i18n')),
)


from django.conf import settings

if 'rosetta' in settings.INSTALLED_APPS:
    urlpatterns += [
        url(r'^rosetta/', include('rosetta.urls'))
    ]
# -*- encoding: utf-8 -*- License: MIT Copyright (c) 2019 - present AppSeed.us # Matches any html file - to be used for gentella # Avoid using your .html in your resources. # Or create a separate django app. # The home page # add this # The home page