Skip to content

Instantly share code, notes, and snippets.

@AdrianRibao
Created February 11, 2011 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdrianRibao/822263 to your computer and use it in GitHub Desktop.
Save AdrianRibao/822263 to your computer and use it in GitHub Desktop.
Yo tengo el settings generado por Django y luego el localsettings que sobreescribe algunos parámetros
# -*- coding: utf-8 -*-
# Django local settings for unicyl project.
import os
from settings import PROJECT_ROOT
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'dev.db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
MEDIA_URL = '/static/media/'
# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = '/static/'
# Al final del settings.py tengo:
try:
from local_settings import *
except ImportError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment