# pass non-english letters in urls django 3.1

**URL:** <https://forum.djangoproject.com/t/pass-non-english-letters-in-urls-django-3-1/4821>\
**Category:** Using Django\
**Created:** [October 16, 2020, 7:01am UTC](https://forum.djangoproject.com/t/pass-non-english-letters-in-urls-django-3-1/4821 "2020-10-16T07:01:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![niusha0099](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/niusha0099/32/2250_2.png) [@niusha0099](https://forum.djangoproject.com/u/niusha0099)\
**Post date:** [October 16, 2020, 7:01am UTC](https://forum.djangoproject.com/t/pass-non-english-letters-in-urls-django-3-1/4821/1 "2020-10-16T07:01:00Z")

</div>

I have a website showing some news. Some of the article’s names are not in English language and they are Persian. If I click on the title of a news, it should show the details of that news.When I test it on local host, it works fine. But on the real host I get internal server (500) error. Does anyone know how should I pass Persian names in the url?

I use Django version 3.1.

This is the model of News app:

```auto
class News(models.Model):

    name = models.CharField(max_length = 500, default="-")

```

This is the url:

```auto
    path('details/<word>/', views.news_details, name="news_details"),

```

It is the template:

```auto
{% for i in news %}
         
<a href="{% url 'news_details' word=i.name %}"><img class="img-full" style="width: 390px; height:300px;" src="{{i.picurl}}" alt=""></a>

{% endfor %}

```

and it is views.py:

```auto
def news_details(request,word):

    news = News.objects.get(name = word)

    return render(request, 'front/news_details.html',{'news':news})

```

---

<div class="post-metadata">

**Author:** ![claudep](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/claudep/32/5377_2.png) [@claudep](https://forum.djangoproject.com/u/claudep)\
**Post date:** [October 17, 2020, 7:44am UTC](https://forum.djangoproject.com/t/pass-non-english-letters-in-urls-django-3-1/4821/2 "2020-10-17T07:44:19Z")

</div>

Having the error traceback would help a lot debugging this.
