A curated list of awesome Python frameworks, libraries, software and resources.
Inspired by awesome-php.
/* Useful celery config. | |
app = Celery('tasks', | |
broker='redis://localhost:6379', | |
backend='redis://localhost:6379') | |
app.conf.update( | |
CELERY_TASK_RESULT_EXPIRES=3600, | |
CELERY_QUEUES=( | |
Queue('default', routing_key='tasks.#'), |
server{ | |
server_name shop-api.algomock.in; | |
location / { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $host; | |
proxy_pass http://127.0.0.1:8000; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; |
A curated list of awesome Python frameworks, libraries, software and resources.
Inspired by awesome-php.
ALLOWED_HOSTS=x.x.x.x | |
ALLOWED_CLIENT_HOSTS=x.x.x.x | |
DEBUG=True | |
SECRET_KEY=12345678 | |
INTERNAL_IPS=127.0.0.1,x.x.x.x, | |
DEFAULT_COUNTRY=IN | |
DEFAULT_CURRENCY=INR | |
APP_MOUNT_URI=/dashboard/ | |
API_URI=http://x.x.x.x:8000/graphql/ |
## Ref: https://phoenixnap.com/kb/how-to-install-python-3-ubuntu | |
1. sudo add-apt-repository ppa:deadsnakes/ppa | |
2. sudo apt update | |
3. sudo apt install python3.7 | |
4. python ––version |
# Update below variables in ~/.bashrc file. | |
# change below x.x.x.x to your server ip or 127.0.0.1 for localhost | |
export ALLOWED_HOSTS=x.x.x.x | |
export ALLOWED_CLIENT_HOSTS=x.x.x.x | |
export DEBUG=True | |
export SECRET_KEY=123456 | |
export INTERNAL_IPS=127.0.0.1,x.x.x.x, | |
export DEFAULT_COUNTRY=IN | |
export DEFAULT_CURRENCY=INR | |
export APP_MOUNT_URI=/dashboard/ |
# setup storefront | |
git clone https://github.com/mirumee/saleor-storefront.git | |
cd saleor-storefront | |
git checkout 2.10.1 | |
npm i | |
vim package.json : --host 0.0.0.0 | |
npm start |
export APP_MOUNT_URI=/dashboard/ | |
export API_URI=http://3.6.136.178:8000/graphql/ | |
cd /home/ubuntu/codes/backend/saleor-dashboard && npm start |
export APP_MOUNT_URI=/dashboard/ | |
export API_URI=http://3.6.136.178:8000/graphql/ | |
cd /home/ubuntu/codes/backend/storefront && npm start |
cd /home/ubuntu/codes/backend/saleor | |
source /home/ubuntu/codes/backend/venv/bin/activate | |
export ALLOWED_HOSTS=3.6.136.178 | |
export ALLOWED_CLIENT_HOSTS=3.6.136.178 | |
export DEBUG=True | |
export SECRET_KEY=123456 | |
export INTERNAL_IPS=127.0.0.1,3.6.136.178, | |
export API_URI=http://3.6.136.178:8000/graphql/ | |
export APP_MOUNT_URI=/dashboard/ | |
export DEFAULT_COUNTRY=IN |