Wire up the URLs, and add scavenger to apps

master
Bradlee Speice 2014-03-31 14:23:57 -04:00
parent a1caf0372d
commit 0ec0e61c19
3 changed files with 13 additions and 2 deletions

View File

@ -11,8 +11,8 @@ MANAGERS = ADMINS
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # Or path to database file if using sqlite3. 'NAME': 'scavenger.db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3. 'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3. 'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
@ -123,6 +123,8 @@ INSTALLED_APPS = (
# 'django.contrib.admin', # 'django.contrib.admin',
# Uncomment the next line to enable admin documentation: # Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs', # 'django.contrib.admindocs',
'scavenger',
) )
# A sample logging configuration. The only tangible logging # A sample logging configuration. The only tangible logging

View File

@ -14,4 +14,5 @@ urlpatterns = patterns('',
# Uncomment the next line to enable the admin: # Uncomment the next line to enable the admin:
# url(r'^admin/', include(admin.site.urls)), # url(r'^admin/', include(admin.site.urls)),
url(r'^', include('scavenger.urls')),
) )

View File

@ -0,0 +1,8 @@
from django.conf.urls import patterns, url
from rest_framework.urlpatterns import format_suffix_patterns
from scavenger import views
urlpatterns = patterns('',
url(r'^locations/$', views.LocationList.as_view()),
url(r'^validate/$', views.LocationResult.as_view()),
)