I need help to solve my problem, I deployed a django web app in iis 8 that contains Persian slug, in development everything ok but when I deployed the app in iis 8, the app urls that contains Persian Unicode characters are not working.
urls.py:
from . import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include, register_converter
from .views import *
from django.urls.converters import SlugConverter
class CustomSlugConverter(SlugConverter):
regex = '[-\w]+'
register_converter(CustomSlugConverter, 'custom_slug')
urlpatterns = [
path('admin/', admin.site.urls),
path('dashboard/', include('tour.urls')),
path('ckeditor/', include('ckeditor_uploader.urls')),
path('', IndexPage, name='index-page'),
path('tour/<int:id>/custom_slug:Slug>', TourDetail, name='tour-detail'),
path('hotels/<int:id>/<custom_slug:Slug>', HotelDetail, name='hotel-detail')
]
models.py:
Slug = models.SlugField(max_length=200, unique=True, null=False, verbose_name='لینک سئو')
All URLs with English slug work but only Unicode slug dose not work in deployment, in development everything okay.