1
0
mirror of https://github.com/bspeice/itcs4180 synced 2024-12-04 21:28:10 -05:00

Wire up the URLs, and add scavenger to apps

This commit is contained in:
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 = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # Or path to database file if using sqlite3.
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'scavenger.db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
@ -123,6 +123,8 @@ INSTALLED_APPS = (
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'scavenger',
)
# A sample logging configuration. The only tangible logging

View File

@ -14,4 +14,5 @@ urlpatterns = patterns('',
# Uncomment the next line to enable the admin:
# 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()),
)