This commit is contained in:
GitHub Merge Button 2012-02-02 19:30:55 -08:00
commit e3bbdd112b
2 changed files with 3 additions and 2 deletions

View File

@ -62,7 +62,8 @@ def api_login(request, template_name='api_login.html',
redirect_field_name: redirect_to, redirect_field_name: redirect_to,
#'site': current_site, #'site': current_site,
#'site_name': current_site.name, #'site_name': current_site.name,
'ADMIN_MEDIA_PREFIX': settings.ADMIN_MEDIA_PREFIX, 'ADMIN_MEDIA_PREFIX': "%sadmin/" % settings.STATIC_URL if hasattr(settings,"STATIC_URL")
else settings.ADMIN_MEDIA_PREFIX,
}, context_instance=RequestContext(request)) }, context_instance=RequestContext(request))

View File

@ -24,7 +24,7 @@ setup(
'djangorestframework.runtests', 'djangorestframework.runtests',
'djangorestframework.utils'], 'djangorestframework.utils'],
package_dir={'djangorestframework': 'djangorestframework'}, package_dir={'djangorestframework': 'djangorestframework'},
package_data = {'djangorestframework': ['templates/*', 'static/*']}, package_data = {'djangorestframework': ['templates/*', 'static/*.*', 'static/css/*']},
test_suite = 'djangorestframework.runtests.runcoverage.main', test_suite = 'djangorestframework.runtests.runcoverage.main',
install_requires=['URLObject>=0.6.0'], install_requires=['URLObject>=0.6.0'],
classifiers = [ classifiers = [