aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMarko Tibold2011-12-24 13:18:48 +0100
committerMarko Tibold2011-12-24 13:18:48 +0100
commit500b0dcddc2d965a595eadadc70fb06d2648cc96 (patch)
tree6cf83142a0655d1c602a3676ef7242e0c790a311 /examples
parentee4cba90814e083343c969af1a12d47ce7996b59 (diff)
downloaddjango-rest-framework-500b0dcddc2d965a595eadadc70fb06d2648cc96.tar.bz2
Added epio configuration.
Diffstat (limited to 'examples')
-rw-r--r--examples/.epio-app1
-rw-r--r--examples/epio.ini61
-rw-r--r--examples/requirements-epio.txt3
-rw-r--r--examples/settings.py4
4 files changed, 67 insertions, 2 deletions
diff --git a/examples/.epio-app b/examples/.epio-app
new file mode 100644
index 00000000..47c4439d
--- /dev/null
+++ b/examples/.epio-app
@@ -0,0 +1 @@
+rest
diff --git a/examples/epio.ini b/examples/epio.ini
new file mode 100644
index 00000000..00a90bce
--- /dev/null
+++ b/examples/epio.ini
@@ -0,0 +1,61 @@
+# This is an example epio.ini file.
+# We suggest you edit it to fit your application's needs.
+# Documentation for the options is available at www.ep.io/docs/epioini/
+
+[wsgi]
+
+# Location of your requirements file
+requirements = requirements-epio.txt
+
+
+[static]
+
+# Serve the static directory directly as /static
+/static/admin = ../shortcuts/django-admin-media/
+
+
+[services]
+
+# Uncomment to enable the PostgreSQL service.
+postgres = true
+
+# Uncomment to enable the Redis service
+# redis = true
+
+
+[checkout]
+
+# By default your code is put in a directory called 'app'.
+# You can change that here.
+# directory_name = my_project
+
+
+[env]
+
+# Set any additional environment variables here. For example:
+# IN_PRODUCTION = true
+
+
+[symlinks]
+
+# Any symlinks you'd like to add. As an example, link the symlink 'config.py'
+# to the real file 'configs/epio.py':
+# config.py = configs/epio.py
+
+
+# #### If you're using Django, you'll want to uncomment some or all of these lines ####
+# [django]
+# # Path to your project root, relative to this directory.
+# base = .
+#
+# [static]
+# Serve the admin media
+# # Django 1.3
+# /static/admin = ../shortcuts/django-admin-media/
+# # Django 1.2 and below
+# /media = ../shortcuts/django-admin-media/
+#
+# [env]
+# # Use a different settings module for ep.io (i.e. with DEBUG=False)
+# DJANGO_SETTINGS_MODULE = production_settings
+
diff --git a/examples/requirements-epio.txt b/examples/requirements-epio.txt
new file mode 100644
index 00000000..76ab5bd2
--- /dev/null
+++ b/examples/requirements-epio.txt
@@ -0,0 +1,3 @@
+Pygments==1.4
+Markdown==2.0.3
+djangorestframework
diff --git a/examples/settings.py b/examples/settings.py
index 2eab2cfa..c47011fd 100644
--- a/examples/settings.py
+++ b/examples/settings.py
@@ -61,7 +61,7 @@ MEDIA_URL = ''
# but it does require the admin media be served. Django's test server will do
# this for you automatically, but in production you'll want to make sure you
# serve the admin media from somewhere.
-ADMIN_MEDIA_PREFIX = '/admin-media/'
+ADMIN_MEDIA_PREFIX = '/static/admin'
# Make this unique, and don't share it with anybody.
SECRET_KEY = 't&9mru2_k$t8e2-9uq-wu2a1)9v*us&j3i#lsqkt(lbx*vh1cu'
@@ -118,4 +118,4 @@ if os.environ.get('HUDSON_URL', None):
TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'
TEST_OUTPUT_VERBOSE = True
TEST_OUTPUT_DESCRIPTIONS = True
- TEST_OUTPUT_DIR = 'xmlrunner' \ No newline at end of file
+ TEST_OUTPUT_DIR = 'xmlrunner'