deprecate url_pattern
move ports to conf.py
settings