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
什麼任何想法做?