mirror of
				https://gitlab.crans.org/mediatek/med.git
				synced 2025-11-04 09:42:11 +01:00 
			
		
		
		
	Use sane defaults for development
This commit is contained in:
		@@ -16,7 +16,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 | 
			
		||||
SECRET_KEY = 'CHANGE_ME_IN_LOCAL_SETTINGS!'
 | 
			
		||||
 | 
			
		||||
# SECURITY WARNING: don't run with debug turned on in production!
 | 
			
		||||
DEBUG = False
 | 
			
		||||
DEBUG = True
 | 
			
		||||
 | 
			
		||||
ADMINS = (
 | 
			
		||||
    # ('Admin', 'webmaster@example.com'),
 | 
			
		||||
@@ -144,7 +144,7 @@ USE_TZ = True
 | 
			
		||||
# Don't put anything in this directory yourself; store your static files
 | 
			
		||||
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
 | 
			
		||||
# Example: "/var/www/example.com/static/"
 | 
			
		||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static_files')
 | 
			
		||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
 | 
			
		||||
 | 
			
		||||
# URL prefix for static files.
 | 
			
		||||
# Example: "http://example.com/static/", "http://static.example.com/"
 | 
			
		||||
@@ -152,6 +152,8 @@ STATIC_URL = '/static/'
 | 
			
		||||
 | 
			
		||||
# Django REST Framework
 | 
			
		||||
REST_FRAMEWORK = {
 | 
			
		||||
    'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
 | 
			
		||||
    'PAGE_SIZE': 10,
 | 
			
		||||
    'DEFAULT_PERMISSION_CLASSES': [
 | 
			
		||||
        'med.permissions.DjangoViewModelPermissions',
 | 
			
		||||
    ]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user