mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
django.contrib.staticfiles no longer needs to be in INSTALLED_APPS
This commit is contained in:
parent
eefd5b05fb
commit
3e4242fc43
13
README.md
13
README.md
|
@ -60,18 +60,7 @@ Add `'rest_framework'` to your `INSTALLED_APPS` setting.
|
|||
'rest_framework',
|
||||
)
|
||||
|
||||
## Browseable API requirements
|
||||
|
||||
If you're intending to use the browseable API you'll also want to also ensure you include `'django.contrib.staticfiles'` in your `INSTALLED_APPS` setting.
|
||||
|
||||
INSTALLED_APPS = (
|
||||
...
|
||||
'django.contrib.staticfiles',
|
||||
'rest_framework',
|
||||
)
|
||||
|
||||
You'll proabably also want to add REST framework's login and logout views.
|
||||
Add the following to your root `urls.py` file.
|
||||
If you're intending to use the browseable API you'll probably also want to add REST framework's login and logout views. Add the following to your root `urls.py` file.
|
||||
|
||||
urlpatterns = patterns('',
|
||||
...
|
||||
|
|
|
@ -59,18 +59,7 @@ Add `'rest_framework'` to your `INSTALLED_APPS` setting.
|
|||
'rest_framework',
|
||||
)
|
||||
|
||||
### Browseable API requirements
|
||||
|
||||
If you're intending to use the browseable API you'll also want to also ensure you include `'django.contrib.staticfiles'` in your `INSTALLED_APPS` setting.
|
||||
|
||||
INSTALLED_APPS = (
|
||||
...
|
||||
'django.contrib.staticfiles',
|
||||
'rest_framework',
|
||||
)
|
||||
|
||||
You'll proabably also want to add REST framework's login and logout views.
|
||||
Add the following to your root `urls.py` file.
|
||||
If you're intending to use the browseable API you'll probably also want to add REST framework's login and logout views. Add the following to your root `urls.py` file.
|
||||
|
||||
urlpatterns = patterns('',
|
||||
...
|
||||
|
|
|
@ -10,21 +10,19 @@ Minor version numbers (0.0.x) are used for changes that are API compatible. You
|
|||
|
||||
Medium version numbers (0.x.0) may include minor API changes. You should read the release notes carefully before upgrading between medium point releases.
|
||||
|
||||
## 2.2.x series
|
||||
|
||||
### 2.2.0
|
||||
|
||||
**Date**: 27th Dec 2012
|
||||
|
||||
* Support configurable `STATICFILES_STORAGE` storage.
|
||||
* Bugfix: Related fields now respect the required flag, and may be required=False.
|
||||
|
||||
**API-incompatible changes**: From 2.2.0 Onwards you must make sure to include `'django.contrib.staticfiles'` in your `INSTALLED_APPS`. This is in line with Django's 1.4's recommended usage of [the `'staticfiles'` template tag][staticfiles14] instead of Django 1.3's recommended usage of [the `'static'` template tag][staticfiles13].
|
||||
Major version numbers (x.0.0) are reserved for project milestones. No major point releases are currently planned.
|
||||
|
||||
---
|
||||
|
||||
## 2.1.x series
|
||||
|
||||
### 2.1.13
|
||||
|
||||
**Date**: 28th Dec 2012
|
||||
|
||||
* Support configurable `STATICFILES_STORAGE` storage.
|
||||
* Bugfix: Related fields now respect the required flag, and may be required=False.
|
||||
|
||||
### 2.1.12
|
||||
|
||||
**Date**: 21st Dec 2012
|
||||
|
|
|
@ -91,7 +91,6 @@ INSTALLED_APPS = (
|
|||
'django.contrib.sessions',
|
||||
'django.contrib.sites',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
# Uncomment the next line to enable the admin:
|
||||
# 'django.contrib.admin',
|
||||
# Uncomment the next line to enable admin documentation:
|
||||
|
|
Loading…
Reference in New Issue
Block a user