I got a problem with the home page of my django application. The following ulr did not work: http://ulrich3110.pythonanywhere.com/
my urls.py in the project directory:
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns(
'',
url(
r'^$',
'root.views.start',
name='start',
),
url(
r'^admin/',
include(admin.site.urls),
),
url(
r'^account/',
include('account.urls', namespace='account'),
),
url(
r'^discipline/',
include('discipline.urls', namespace='discipline'),
),
url(
r'^setup/',
include('setup.urls', namespace='setup'),
),
url(
r'^journal/',
include('journal.urls', namespace='journal'),
),
url(
r'^major/',
include('major.urls', namespace='major'),
),
)
if settings.DEBUG:
urlpatterns += patterns(
'django.views.static',
(
r'media/(?P<path>.*)',
'serve',
{'document_root': settings.MEDIA_ROOT}
),
)
When i go to [http://ulrich3110.pythonanywhere.com/] i have an error, the url isn't right. On my linux mint, in my local django development server, the start page works without an error. Is there a solution? Thanks!