Skip to content

Commit

Permalink
updates to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacul2 committed Apr 28, 2011
1 parent e6b23ed commit 04e7118
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
8 changes: 7 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,19 @@ To get this application up and running, please follow the steps below:
* Add 'bft.context_processors.bft' to the context processors::
from django.conf import global_settings
...
TEMPLATE_CONTEXT_PROCESSORS = (
'bft.context_processors.bft',
) + global_settings.TEMPLATE_CONTEXT_PROCESSORS
* Add 'bft.utils.upload_handlers.UploadProgressCachedHandler' to the file
upload handlers::
from django.conf import global_settings
...
FILE_UPLOAD_HANDLERS = (
'bft.utils.upload_handlers.UploadProgressCachedHandler',
) + global_settings.FILE_UPLOAD_HANDLERS
Expand Down Expand Up @@ -159,8 +165,8 @@ To get this application up and running, please follow the steps below:
11. Don't forget to collect your static files and sync your database::

$ python manage.py collectstatic
$ python manage.py syncdb
$ python manage.py collectstatic
__ https://github.com/django-bft/dango-bft/downloads
23 changes: 18 additions & 5 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,19 @@ To get this application up and running, please follow the steps below:
* Add 'bft.context_processors.bft' to the context processors::
from django.conf import global_settings
...
TEMPLATE_CONTEXT_PROCESSORS = (
'bft.context_processors.bft',
) + global_settings.TEMPLATE_CONTEXT_PROCESSORS
* Add 'bft.utils.upload_handlers.UploadProgressCachedHandler' to the file
upload handlers::
from django.conf import global_settings
...
FILE_UPLOAD_HANDLERS = (
'bft.utils.upload_handlers.UploadProgressCachedHandler',
) + global_settings.FILE_UPLOAD_HANDLERS
Expand Down Expand Up @@ -142,18 +148,25 @@ To get this application up and running, please follow the steps below:
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
9. Setup a cron job to handle file archiving and deletion. An example of this
9. Map your urls.py to django-bft's urls. An example of this would be::

urlpatterns = patterns('',
...
(r'', include('bft.urls')),
)
10. Setup a cron job to handle file archiving and deletion. An example of this
could be::

#!/bin/sh

./manage.py deleteuploads
./manage.py deletetempfiles
11. Don't forget to collect your static files and sync your database::

10. Don't forget to collect your static files and sync your database::

$ python manage.py collectstatic
$ python manage.py syncdb
$ python manage.py collectstatic
__ https://github.com/django-bft/dango-bft/downloads

0 comments on commit 04e7118

Please sign in to comment.