title: Django Returns Not Found on Production Server
body: <p>I'm trying to deploy my code on <code>digitalocean</code> <code>vps</code> server and I checked everything million times but I still have the same problem.</p>
  
  <p>When I try to access admin page it works but I cannot access any other page. I am not running django code local it's running on a public ip.</p>
  
  <p>Can anyone help me with it ?</p>
  
  <p>Here is my main <strong>urls.py</strong> file:</p>
  
  <pre><code>from django.contrib import admin
  from django.conf import settings
  from django.conf.urls.static import static
  from django.urls import path, include
  
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('api-auth/', include('rest_framework.urls'), name='rest_framework'),
      path('posts/', include('posts.urls')),
      path('dictionary/', include('dictionary.urls')),
  ]
  </code></pre>
  
  <p>Here is my <strong>post/urls.py</strong> file:</p>
  
  <pre><code>from django.urls import path
  from . import views
  
  app_name = "posts"
  urlpatterns = [
      path('', views.post_list,name = "list"),
      path('create/', views.post_create,name="create"),
      path('&lt;slug:slug&gt;/', views.post_detail,name="detail"),
      path('&lt;slug:slug&gt;/edit/', views.post_update,name="update"),
      path('&lt;slug:slug&gt;/delete/', views.post_delete,name="delete"),
      ]
  </code></pre>