Initial REST API version 0 alpha

This commit is contained in:
Roberto Rosario
2011-11-22 00:56:56 -04:00
parent ffcaec1e91
commit 4e8f2c370b
10 changed files with 139 additions and 4 deletions

View File

@@ -81,7 +81,8 @@ STATIC_URL = '/%s-static/' % PROJECT_NAME
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = STATIC_URL + 'grappelli/'
#ADMIN_MEDIA_PREFIX = STATIC_URL + 'grappelli/'
ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/'
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'om^a(i8^6&h+umbd2%pt91cj!qu_@oztw117rgxmn(n2lp^*c!'
@@ -117,7 +118,7 @@ TEMPLATE_DIRS = (
)
INSTALLED_APPS = (
'grappelli',
#'grappelli',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
@@ -164,6 +165,8 @@ INSTALLED_APPS = (
'history',
'main',
'compressor',
'djangorestframework',
'rest_api',
)
TEMPLATE_CONTEXT_PROCESSORS = (
@@ -286,7 +289,7 @@ CELERY_DISABLE_RATE_LIMITS = True
#--------- Web theme ---------------
WEB_THEME_ENABLE_SCROLL_JS = False
#--------- Grappelli ----------------
GRAPPELLI_ADMIN_TITLE = PROJECT_TITLE
#GRAPPELLI_ADMIN_TITLE = PROJECT_TITLE
#--------- Django -------------------
LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/'