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
DEFAULT_FILE_STORAGE = 'backend.custom_azure.AzureMediaStorage' | |
STATICFILES_STORAGE = 'backend.custom_azure.AzureStaticStorage' | |
STATIC_LOCATION = "static" | |
MEDIA_LOCATION = "media" | |
AZURE_ACCOUNT_NAME = "djangoaccountstorage" | |
AZURE_CUSTOM_DOMAIN = f'{AZURE_ACCOUNT_NAME}.blob.core.windows.net' | |
STATIC_URL = f'https://{AZURE_CUSTOM_DOMAIN}/{STATIC_LOCATION}/' | |
MEDIA_URL = f'https://{AZURE_CUSTOM_DOMAIN}/{MEDIA_LOCATION}/' |
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
""" | |
Django ORM Optimization Tips | |
Caveats: | |
* Only use optimizations that obfuscate the code if you need to. | |
* Not all of these tips are hard and fast rules. | |
* Use your judgement to determine what improvements are appropriate for your code. | |
""" | |
# --------------------------------------------------------------------------- |
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
#!/usr/bin/env bash | |
# System wide Constants | |
# Ubuntu Code Name Ex:- trusty for Ubuntu 14.04 | |
CODE_NAME=$(lsb_release -cs) | |
## Install basic libraries required for ubuntu environment | |
sudo apt-get install libcurl4-openssl-dev libssl-dev -y | |
sudo apt-get install zsh -y | |
sudo apt-get install python-software-properties -y |