Created
April 20, 2014 20:03
-
-
Save artschwagerb/11123810 to your computer and use it in GitHub Desktop.
Django URLs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf.urls import patterns, include, url | |
from chordcharts.views import ChordListView #for class based views | |
from chordcharts import views #for function based views | |
urlpatterns = patterns('', | |
url(r'^$', ChordListView.as_view(), name='chord_list'), #for class based views | |
url(r'^$', 'chordcharts.views.chord_list', name='chord_list'), #for function based views | |
url(r'^chordcharts/', include('chordcharts.urls')), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment