forked from django-fiber/django-fiber
-
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.
Simplified installation, removed some dependencies, improved document…
…ation - use brodie branch for Django piston (like Bitbucket itself does as well) - removed django-staticfiles (is already in Django 1.3 contrib) - removed unused Beautifulsoup - split README into INSTALL and usage docs (in separate docs folder) - installation instructions target Django 1.3, moved 1.2.x installation instructions to separate document - added contributors - bumped version to 0.9.4.5
- Loading branch information
Showing
8 changed files
with
546 additions
and
221 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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
======================================== | ||
Installation instructions for Django 1.3 | ||
======================================== | ||
|
||
|
||
Installation: | ||
============= | ||
|
||
We're assuming you are using Django 1.3. If you need to install Django Fiber with an older Django version, you can find instructions in the docs folder. | ||
|
||
:: | ||
|
||
$ pip install django-fiber | ||
|
||
|
||
Requirements: | ||
============= | ||
|
||
These dependencies are automatically installed: | ||
|
||
:: | ||
|
||
PIL>=1.1.7 | ||
django-piston==0.2.3rc1 | ||
django-mptt>=0.4.2 | ||
django-compressor>=0.7.1 | ||
|
||
|
||
Settings: | ||
========= | ||
|
||
settings.py | ||
----------- | ||
|
||
:: | ||
|
||
import django.conf.global_settings as DEFAULT_SETTINGS | ||
|
||
MIDDLEWARE_CLASSES = DEFAULT_SETTINGS.MIDDLEWARE_CLASSES + ( | ||
'fiber.middleware.ObfuscateEmailAddressMiddleware', | ||
'fiber.middleware.AdminPageMiddleware', | ||
'fiber.middleware.PageFallbackMiddleware', | ||
) | ||
|
||
TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + ( | ||
'django.core.context_processors.request', | ||
'fiber.context_processors.page_info', | ||
) | ||
|
||
INSTALLED_APPS = ( | ||
... | ||
'django.contrib.staticfiles', | ||
'piston', | ||
'mptt', | ||
'compressor', | ||
'fiber', | ||
... | ||
) | ||
|
||
import os | ||
BASE_DIR = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
STATIC_ROOT = os.path.join(BASE_DIR, 'static') | ||
STATIC_URL = '/static/' | ||
STATICFILES_FINDERS = DEFAULT_SETTINGS.STATICFILES_FINDERS + ( | ||
'compressor.finders.CompressorFinder', | ||
) | ||
|
||
urls.py | ||
------- | ||
|
||
:: | ||
|
||
from django.conf import settings | ||
|
||
urlpatterns = patterns('', | ||
... | ||
(r'^api/v1/', include('fiber.api.urls')), | ||
(r'^admin/fiber/', include('fiber.admin_urls')), | ||
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', {'packages': ('fiber',),}), | ||
... | ||
) | ||
|
||
if settings.DEBUG: | ||
urlpatterns += patterns('django.contrib.staticfiles.views', | ||
url(r'^static/(?P<path>.*)$', 'serve'), | ||
) | ||
|
||
|
||
Post-installation: | ||
================== | ||
|
||
Create database tables:: | ||
|
||
$ python manage.py syncdb | ||
|
||
All static Fiber files need to be symlinked in (or copied to) your media folder:: | ||
|
||
$ python manage.py collectstatic --link | ||
|
||
|
||
Documentation: | ||
============== | ||
|
||
You can find usage instructions, and other documentation, in the docs folder. |
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
Oops, something went wrong.