mirror of
				https://github.com/bspeice/itcs4180
				synced 2025-11-03 18:00:37 -05:00 
			
		
		
		
	Wire up the URLs, and add scavenger to apps
This commit is contained in:
		@ -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
 | 
			
		||||
 | 
			
		||||
@ -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')),
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@ -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()),
 | 
			
		||||
		)
 | 
			
		||||
		Reference in New Issue
	
	Block a user