This is a fork of cschwede / django-swiftbrowser that uses django-storage-swift instead of the formpost middleware. It also adds django-jfu as the file upload form.
-
Install swiftbrowser:
git clone git://github.com/bkawula/django-swiftbrowser.git cd django-swiftbrowser sudo python setup.py install
Optional: run tests
python runtests.py
-
Create a new Django project:
django-admin.py startproject myproj cd myproj cp ~/django-swiftbrowser/example/settings.py myproj/settings.py mkdir myproj/database
-
Adopt myproj/settings.py to your needs, especially settings for Swift and static file directories.
-
Update myproj/urls.py and include swiftbrowser.urls:
import swiftbrowser.urls
urlpatterns = patterns('', url(r'^', include(swiftbrowser.urls)), )
-
Sync Database
python manage.py syncdb
-
Collect static files:
python manage.py collectstatic
-
Run development server:
python manage.py runserver
Important: Either use 'python manage.py runserver --insecure' or set DEBUG = True in myproj/settings.py if you want to use the local development server. Don't use these settings in production!