Permalink
Browse files

Updated the example app so that it works out of the box.

  • Loading branch information...
KristianOellegaard committed Feb 15, 2012
1 parent e42b93b commit c8bbde75cef66c55e7898d78a0ccde571737a6b6
Showing with 49 additions and 12 deletions.
  1. +19 −3 example/{read_me_first.txt → README}
  2. +15 −0 example/requirements.txt
  3. +15 −9 example/settings.py
@@ -2,13 +2,29 @@ settings.py
Find and edit the lines marked with # <-- EDIT
+
+####################
+# Setup virtualenv #
+####################
+
+virtualenv .
+source bin/activate
+pip install -r requirements.txt
+
+####################
+# Setup manually #
+####################
+
Modules you'll need available:
Django 1.3
-Django CMS 2.13
+Django CMS 2.1.3
pyquery 0.6.1
-typogrify
-easy_thumbnailss
+django-typogrify
+easy_thumbnails
+django-celery
+django_polymorphic
+
also:
https://github.com/stefanfoulis/django-filer
View
@@ -0,0 +1,15 @@
+Django >= 1.3
+django-cms
+pyquery == 0.6.1
+django-typogrify
+easy_thumbnails
+BeautifulSoup >= 3.0.8.1
+django-classy-tags
+django-filer
+django-appmedia
+django-celery
+django_polymorphic
+
+-e git+git://github.com/evildmp/django-filer.git@video#egg=django-filer-video
+-e hg+https://bitbucket.org/evildmp/semanticeditor#egg=semanticeditor
+-e git+git://github.com/evildmp/django-widgetry.git#egg=django-widgetry
View
@@ -3,6 +3,10 @@
import os
import os.path
+# Make it work straight from the checkout!
+import sys
+sys.path.append(os.path.join(os.path.dirname(__file__), '../'))
+
DEBUG = True
TEMPLATE_DEBUG = DEBUG
@@ -151,15 +155,17 @@
)
# ------------------------ Django Celery
-
-import djcelery
-djcelery.setup_loader()
-
-BROKER_HOST = "localhost"
-BROKER_PORT = 5672
-BROKER_USER = "guest"
-BROKER_PASSWORD = "guest"
-BROKER_VHOST = "/"
+try:
+ import djcelery
+ djcelery.setup_loader()
+
+ BROKER_HOST = "localhost"
+ BROKER_PORT = 5672
+ BROKER_USER = "guest"
+ BROKER_PASSWORD = "guest"
+ BROKER_VHOST = "/"
+except ImportError:
+ pass
# ------------------------ Django CMS

0 comments on commit c8bbde7

Please sign in to comment.