Add rest-framework plumbing.
parent
89e5505c27
commit
e2053d9fa3
|
@ -30,6 +30,7 @@ virtualenv==1.8.4
|
|||
doc2dash==1.1.0
|
||||
beautifulsoup4==4.1.3
|
||||
lxml==3.0.2
|
||||
djangorestframework==2.3.6
|
||||
|
||||
# Pegged git requirements
|
||||
git+git://github.com/toastdriven/django-haystack@259274e4127f723d76b893c87a82777f9490b960#egg=django_haystack
|
||||
|
|
|
@ -117,6 +117,7 @@ INSTALLED_APPS = [
|
|||
'guardian',
|
||||
'django_gravatar',
|
||||
'django_nose',
|
||||
'rest_framework',
|
||||
|
||||
# Celery bits
|
||||
'djcelery',
|
||||
|
@ -134,10 +135,14 @@ INSTALLED_APPS = [
|
|||
'websupport',
|
||||
]
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAdminUser',),
|
||||
'PAGINATE_BY': 10
|
||||
}
|
||||
|
||||
if DEBUG:
|
||||
INSTALLED_APPS.append('django_extensions')
|
||||
|
||||
|
||||
#CARROT_BACKEND = "ghettoq.taproot.Database"
|
||||
CELERY_ALWAYS_EAGER = True
|
||||
CELERYD_TASK_TIME_LIMIT = 60*60 # 60 minutes
|
||||
|
|
|
@ -95,6 +95,7 @@ urlpatterns = patterns(
|
|||
name='profiles_profile_edit'),
|
||||
url(r'^profiles/', include('profiles.urls')),
|
||||
url(r'^api/', include(v1_api.urls)),
|
||||
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
url(r'^feeds/new/$',
|
||||
NewProjectsFeed(),
|
||||
name="new_feed"),
|
||||
|
|
Loading…
Reference in New Issue