Skip to content
Browse files

Fixed indentation in README.md

  • Loading branch information...
1 parent 026cea8 commit b52053f0af54bcd05973bf3f56b8aefd4b36d762 @dbunskoek dbunskoek committed Dec 21, 2012
Showing with 40 additions and 40 deletions.
  1. +40 −40 README.md
View
80 README.md
@@ -7,7 +7,7 @@
---
-**Announcement**: We've upgraded to Django REST Framework 2. This means that if you want to use the latest
+**Announcement**: We've upgraded to Django REST Framework 2. This means that if you want to use the latest
Fiber and you use Django REST Framework 0.3.X or 0.4.X for your own project, you'll have to bite the bullet and upgrade your local REST Framework code.
---
@@ -25,75 +25,75 @@ Convinced? Want to use Django Fiber in your own Django project? Then follow the
We're assuming you are using Django 1.3.x or 1.4.
- $ pip install django-fiber
+ $ pip install django-fiber
## Requirements
These dependencies are automatically installed:
- Pillow==1.7.7
- djangorestframework==0.3.3
- django-mptt==0.5.1
- django-compressor>=0.7.1
+ Pillow==1.7.7
+ djangorestframework==0.3.3
+ django-mptt==0.5.1
+ django-compressor>=0.7.1
## Settings
### settings.py
- import django.conf.global_settings as DEFAULT_SETTINGS
+ import django.conf.global_settings as DEFAULT_SETTINGS
- MIDDLEWARE_CLASSES = DEFAULT_SETTINGS.MIDDLEWARE_CLASSES + (
- 'fiber.middleware.ObfuscateEmailAddressMiddleware',
- 'fiber.middleware.AdminPageMiddleware',
- )
+ MIDDLEWARE_CLASSES = DEFAULT_SETTINGS.MIDDLEWARE_CLASSES + (
+ 'fiber.middleware.ObfuscateEmailAddressMiddleware',
+ 'fiber.middleware.AdminPageMiddleware',
+ )
- TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
- 'django.core.context_processors.request',
- )
+ TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
+ 'django.core.context_processors.request',
+ )
- INSTALLED_APPS = (
- ...
- 'django.contrib.staticfiles',
- 'mptt',
- 'compressor',
- 'fiber',
+ INSTALLED_APPS = (
...
- )
+ 'django.contrib.staticfiles',
+ 'mptt',
+ 'compressor',
+ 'fiber',
+ ...
+ )
- import os
- BASE_DIR = os.path.abspath(os.path.dirname(__file__))
+ 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',
- )
+ 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
+ from django.conf import settings
- urlpatterns = patterns('',
- ...
- (r'^api/v2/', include('fiber.rest_api.urls')),
- (r'^admin/fiber/', include('fiber.admin_urls')),
- (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', {'packages': ('fiber',),}),
- ...
- (r'', 'fiber.views.page'),
- )
+ urlpatterns = patterns('',
+ ...
+ (r'^api/v2/', include('fiber.rest_api.urls')),
+ (r'^admin/fiber/', include('fiber.admin_urls')),
+ (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', {'packages': ('fiber',),}),
+ ...
+ (r'', 'fiber.views.page'),
+ )
## Post-installation
Create database tables:
- $ python manage.py syncdb
+ $ python manage.py syncdb
All static Fiber files need to be symlinked in (or copied to) your media folder:
- $ python manage.py collectstatic --link
+ $ python manage.py collectstatic --link
## Further documentation
@@ -102,4 +102,4 @@ For further usage and configuration details take a look at our documentation pro
## Changelog
See CHANGELOG.md for the latest changes.
-[changelog]: CHANGELOG.md
+[changelog]: CHANGELOG.md

0 comments on commit b52053f

Please sign in to comment.
Something went wrong with that request. Please try again.