I was studying python and django, and I decided to make my wedding website in django. The project runs perfectly on my local pc, the problem is when I deploy to digital ocean and it gives this error here.
The admin works right. The problem is the main page or any other page that I try to access from my site.
My primary urls.py:
from django.conf.urls import include, url
from django.contrib import admin
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [ url(r'^admin/', admin.site.urls),
url(r'', include('casamento.urls'))] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Wedding app urls.py:
from django.conf.urls import include, url
from . import views
urlpatterns = [
url(r'^$', views.tela_inicial),
url(r'^local', views.local_casamento),
url(r'^listapresentes', views.listapresentes),
url(r'^presenca', views.presenca),
]
I already tried this error in google and none of the solutions worked :(