forked from olmo/Plataforma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
10 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
*.pyc | ||
.idea/* | ||
settings.py | ||
db.sqlite | ||
site_media/archivos/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
# Django settings for plataforma project. | ||
|
||
import os | ||
|
||
DEBUG = True | ||
TEMPLATE_DEBUG = DEBUG | ||
|
||
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__)) | ||
|
||
ADMINS = ( | ||
# ('Your Name', '[email protected]'), | ||
) | ||
|
@@ -12,7 +16,7 @@ | |
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. | ||
'NAME': 'C:\Users\Olmo\Documents\Proyectos\plataforma\db.sqlite', # Or path to database file if using sqlite3. | ||
'NAME': 'db.sqlite', # 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. | ||
|
@@ -45,12 +49,12 @@ | |
|
||
# Absolute filesystem path to the directory that will hold user-uploaded files. | ||
# Example: "/home/media/media.lawrence.com/media/" | ||
MEDIA_ROOT = 'C:\Users\Olmo\Documents\Proyectos\plataforma\site_media' | ||
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'site_media') | ||
|
||
# URL that handles the media served from MEDIA_ROOT. Make sure to use a | ||
# trailing slash. | ||
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/" | ||
MEDIA_URL = 'http://localhost:8000/site_media/' | ||
MEDIA_URL = '/site_media/' | ||
|
||
# Absolute path to the directory static files should be collected to. | ||
# Don't put anything in this directory yourself; store your static files | ||
|
@@ -69,9 +73,7 @@ | |
|
||
# Additional locations of static files | ||
STATICFILES_DIRS = ( | ||
# Put strings here, like "/home/html/static" or "C:/www/django/static". | ||
# Always use forward slashes, even on Windows. | ||
# Don't forget to use absolute paths, not relative paths. | ||
os.path.join(PROJECT_ROOT, 'static') | ||
) | ||
|
||
# List of finder classes that know how to find static files in | ||
|
@@ -103,7 +105,7 @@ | |
ROOT_URLCONF = 'plataforma.urls' | ||
|
||
TEMPLATE_DIRS = ( | ||
'c:/Users/Olmo/Documents/Proyectos/plataforma/templates', | ||
os.path.join(PROJECT_ROOT, 'templates'), | ||
) | ||
|
||
INSTALLED_APPS = ( | ||
|
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters