git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /usr/share/nginx/html; | |
| location ~ /.+ { | |
| try_files $uri $uri.html $uri =404; | |
| } |
| # source: | |
| # https://stackoverflow.com/questions/6051877/loading-magnet-link-using-rasterbar-libtorrent-in-python | |
| # | |
| # ATTENTION: This is only a example of to use a python bind of torrent library in Python for educational purposes. | |
| # I am not responsible for your download of illegal content or without permission. | |
| # Please respect the laws license permits of your country. | |
| import libtorrent as lt | |
| import time |
| from django.utils.translation import ugettext_lazy as _ | |
| from rest_framework import serializers | |
| class SomeSerializer(serializers.ModelSerializer): | |
| """ | |
| Demostrating How to Override DRF UniqueTogetherValidator Message | |
| """ | |
| class Meta: |
| # Colors | |
| end="\033[0m" | |
| black="\033[0;30m" | |
| blackb="\033[1;30m" | |
| white="\033[0;37m" | |
| whiteb="\033[1;37m" | |
| red="\033[0;31m" | |
| redb="\033[1;31m" | |
| green="\033[0;32m" | |
| greenb="\033[1;32m" |
| from datetime import datetime | |
| from sqlalchemy import Column, Integer, DateTime, ForeignKey | |
| from sqlalchemy.orm import relationship | |
| from sqlalchemy.ext.declarative import declared_attr | |
| from flask_security import current_user | |
| class AuditMixin(object): | |
| created_at = Column(DateTime, default=datetime.now) | |
| updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now) |