Problem with urls and views inside the server

0

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 :(

    
asked by anonymous 10.08.2016 / 14:15

1 answer

0

I was able to solve the problem. It was the django version. I was using version 1.10 that comes as standard pip install django. I installed version 1.9 and it worked. Many thanks for the help.

    
11.08.2016 / 21:19