Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated demo project and added requirements.txt

  • Loading branch information...
commit e4d3033ef2fb0055886b5e6e7805a2a67e280d49 1 parent fc14a2b
@MegaMark16 authored
Showing with 13 additions and 21 deletions.
  1. +6 −0 demo/requirements.txt
  2. +7 −21 demo/settings.py
View
6 demo/requirements.txt
@@ -0,0 +1,6 @@
+Django==1.5.1
+South==0.8.1
+django-classy-tags==0.4
+django-cms==2.4.2
+django-mptt==0.5.2
+django-sekizai==0.7
View
28 demo/settings.py
@@ -2,7 +2,7 @@
import os
gettext = lambda s: s
-PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
+PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
@@ -16,12 +16,9 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(PROJECT_DIR, 'database.sqlite'),
+ 'NAME': os.path.join(PROJECT_PATH, 'database.sqlite'),
}
}
-CMS_TEMPLATES = (
- ('blank.html', 'Blank'),
-)
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
@@ -48,14 +45,14 @@
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/media.lawrence.com/media/"
-MEDIA_ROOT = os.path.join(PROJECT_DIR, "media")
+MEDIA_ROOT = os.path.join(PROJECT_PATH, "media")
MEDIA_URL = "/media/"
# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/media.lawrence.com/static/"
-STATIC_ROOT = os.path.join(PROJECT_DIR, "static")
+STATIC_ROOT = os.path.join(PROJECT_PATH, "static")
STATIC_URL = "/static/"
ADMIN_MEDIA_PREFIX = "/static/admin/"
@@ -109,9 +106,9 @@
)
TEMPLATE_DIRS = (
- # The docs say it should be absolute path: PROJECT_DIR is precisely one.
+ # The docs say it should be absolute path: PROJECT_PATH is precisely one.
# Life is wonderful!
- os.path.join(PROJECT_DIR, "templates"),
+ os.path.join(PROJECT_PATH, "templates"),
)
INSTALLED_APPS = (
@@ -121,21 +118,10 @@
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
- # Uncomment the next line to enable the admin:
'django.contrib.admin',
- # Uncomment the next line to enable admin documentation:
- # 'django.contrib.admindocs',
'cms',
- 'cms.plugins.file',
- 'cms.plugins.picture',
- 'cms.plugins.flash',
- 'cms.plugins.googlemap',
- 'cms.plugins.link',
'cms.plugins.snippet',
- 'cms.plugins.teaser',
'cms.plugins.text',
- 'cms.plugins.video',
- 'cms.plugins.twitter',
'mptt',
'menus',
'south',
@@ -144,7 +130,7 @@
)
LANGUAGES = [
- ('en', 'English'),
+ ('en-us', 'English'),
]
# A sample logging configuration. The only tangible logging
Please sign in to comment.
Something went wrong with that request. Please try again.