mirror of
https://github.com/bspeice/itcs4180
synced 2025-04-20 23:01:34 -04:00
Wire up the URLs, and add scavenger to apps
This commit is contained in:
parent
a1caf0372d
commit
0ec0e61c19
@ -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
|
||||||
|
@ -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')),
|
||||||
)
|
)
|
||||||
|
@ -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()),
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user