From ce38c62ac392370e3955d2680c4ffae31503bc24 Mon Sep 17 00:00:00 2001 From: Daniel Cortes Date: Sat, 23 May 2020 01:51:25 -0400 Subject: [PATCH] Actualizando gitignore y quitando settings del repositorio --- .gitignore | 8 ++-- .../{settings.py => settings.example.py} | 38 ------------------- 2 files changed, 5 insertions(+), 41 deletions(-) rename musiclist/{settings.py => settings.example.py} (73%) diff --git a/.gitignore b/.gitignore index 5701570..8461e11 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ __pycache__ -venv -.idea -db.sqlite3 +/venv +/.idea +/db.sqlite3 +/static +musiclist/settings.py diff --git a/musiclist/settings.py b/musiclist/settings.example.py similarity index 73% rename from musiclist/settings.py rename to musiclist/settings.example.py index df801a6..313aab6 100644 --- a/musiclist/settings.py +++ b/musiclist/settings.example.py @@ -1,36 +1,11 @@ -""" -Django settings for musiclist project. - -Generated by 'django-admin startproject' using Django 3.0.5. - -For more information on this file, see -https://docs.djangoproject.com/en/3.0/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/3.0/ref/settings/ -""" - import os -# Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - -# Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -# noinspection SpellCheckingInspection SECRET_KEY = 'c8%4_^4oc%wwqlcxlon-(_7v!xj8fbyba+pj*xy$oi*6#n!7ez' - -# SECURITY WARNING: don't run with debug turned on in production! DEBUG = True - ALLOWED_HOSTS = [] - CORS_ORIGIN_ALLOW_ALL = True -# Application definition - INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', @@ -79,9 +54,6 @@ TEMPLATES = [ WSGI_APPLICATION = 'musiclist.wsgi.application' -# Database -# https://docs.djangoproject.com/en/3.0/ref/settings/#databases - DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', @@ -89,9 +61,6 @@ DATABASES = { } } -# Password validation -# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators - AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', @@ -116,18 +85,12 @@ REST_FRAMEWORK = { ) } -# Internationalization -# https://docs.djangoproject.com/en/3.0/topics/i18n/ - LANGUAGE_CODE = 'es-es' TIME_ZONE = 'America/Santiago' USE_I18N = True USE_L10N = True USE_TZ = True -# Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/3.0/howto/static-files/ - STATIC_URL = '/static/' LOGGING = { @@ -156,4 +119,3 @@ CUSTOM_CACHE = { LOGIN_URL = '/auth/login/' AUTH_USER_MODEL = 'users.User' -CORS_ORIGIN_ALLOW_ALL = True