mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-30 23:47:53 +03:00 
			
		
		
		
	In examples settings, use staticfiles for 1.2, django.contrib.staticfiles otherwise
This commit is contained in:
		
							parent
							
								
									6207791af1
								
							
						
					
					
						commit
						0f49f9b2b5
					
				|  | @ -1,4 +1,5 @@ | ||||||
| # Settings for djangorestframework examples project | # Settings for djangorestframework examples project | ||||||
|  | import django | ||||||
| import os | import os | ||||||
| 
 | 
 | ||||||
| DEBUG = True | DEBUG = True | ||||||
|  | @ -84,19 +85,17 @@ TEMPLATE_DIRS = ( | ||||||
|     # Don't forget to use absolute paths, not relative paths. |     # Don't forget to use absolute paths, not relative paths. | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| # for loading initial data | if django.VERSION < (1, 3): | ||||||
| ##SERIALIZATION_MODULES = { |     staticfiles = 'staticfiles' | ||||||
|   #  'yml': "django.core.serializers.pyyaml" | else: | ||||||
| 
 |     staticfiles = 'django.contrib.staticfiles' | ||||||
| #} |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| INSTALLED_APPS = ( | INSTALLED_APPS = ( | ||||||
|     'django.contrib.auth', |     'django.contrib.auth', | ||||||
|     'django.contrib.contenttypes', |     'django.contrib.contenttypes', | ||||||
|     'django.contrib.sessions', |     'django.contrib.sessions', | ||||||
|     'django.contrib.sites', |     'django.contrib.sites', | ||||||
|     'django.contrib.staticfiles', |     staticfiles, | ||||||
|     'django.contrib.messages', |     'django.contrib.messages', | ||||||
| 
 | 
 | ||||||
|     'djangorestframework', |     'djangorestframework', | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user