0
我试图部署在Heroku我的Django应用程序和我下面的教程,但是当我去,并尝试以打开网页:Django的urls.py不更新包括heroku网址?
heroku open
我收到的错误:
Request URL: http://nameless-dawn-7713.herokuapp.com/
Using the URLconf defined in crunchWeb.urls, Django tried these URL patterns, in this order:
^crunchApp/results$
^crunchApp/contact$
^admin/
The current URL, , didn't match any of these.
即使虽然跑 “的Heroku打开” 我的前URLs.py文件看起来像这样(保存):
from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('crunchApp.views',
url(r'^crunchApp/results$', 'results'),
url(r'^http://nameless-dawn-7713.herokuapp.com/$', 'contact'),
url(r'^crunchApp/contact$', 'contact'),
url(r'^admin/', include(admin.site.urls)),
)
我想我可能具有命令前更改urls.py:
git commit -m "my django app"
,但我不知道,这将需要直到命令的网址:
heroku create
什么任何想法做?