General Options
Theme Options
Security Options
SEO Options
$ pip install django-storages-reduxAlso you must install Apache Libcloud:
$ pip install apache-libcloudAnd enable from settings.py by adding following lines:
DEFAULT_FILE_STORAGE = 'storages.backends.apache_libcloud.LibCloudStorage'If you don't create bucket, you can create from shell:
DEFAULT_LIBCLOUD_PROVIDER = 'google_storage'
LIBCLOUD_PROVIDERS = {
'google_storage': {
'type': 'libcloud.storage.types.Provider.GOOGLE_STORAGE',
'user': 'yourcloudstorageapikey:)',
'key': 'yourcloudstorageapisecretkey:)',
'bucket': 'default-bucket-name',
}
}
$ ./manage.py shell
$ from storages.backends.apache_libcloud import LibCloudStorage
$ LibCloudStorage('google_storage').driver.create_container('default-bucket-name')
[App 1]Ancak siz bu goruntuyu istemiyor, asagidaki gibi bir goruntu istiyorsunuz:
- Model 1
- Model 2
[App 2]
- Model 3
[App 1]Hosgeldiniz! Yapilmasi gereken islem, App 2 altinda bulunan Model 3'un Meta sinifinda o modelin app'inin aslinda App 1 oldugunu soylemek. Onu da boyle yapiyoruz:
- Model 1
- Model 2
- Model 3