public
Created

  • Download Gist
shw2.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Original urls.py: notice `pykaboo_django`
---------------------------------------------------------------------------------------------------
from django.conf.urls.defaults import patterns, include, url
import pykaboo_django.core.views
from django.contrib import admin
admin.autodiscover()
 
urlpatterns = patterns('', (r'^$', pykaboo_django.core.views.home), (r'^home$', pykaboo_django.core.views.home), (r'^install$', pykaboo_django.core.views.install), (r'Install', pykaboo_django.core.views.install), url(r'^admin/', include(admin.site.urls)),
)
 
---------------------------------------------------------------------------------------------------
I had to change every `pykaboo_django` to `app` like the following code to make it work on heroku.
 
---------------------------------------------------------------------------------------------------
from django.conf.urls.defaults import patterns, include, url
import app.core.views
from django.contrib import admin
admin.autodiscover()
 
urlpatterns = patterns('', (r'^$', app.core.views.home), (r'^home$', app.core.views.home), (r'^install$', app.core.views.install), (r'Install', app.core.views.install), url(r'^admin/', include(admin.site.urls)),
)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.