18 lines
465 B
Python
18 lines
465 B
Python
# Scraping
|
|
import os
|
|
|
|
LOCATIONS_URL = "https://brn-ybus-pubapi.sa.cz/restapi/consts/locations"
|
|
SEARCH_URL = "https://brn-ybus-pubapi.sa.cz/restapi/routes/search/simple"
|
|
|
|
# Cache
|
|
# CACHE_HOST = "redis.pythonweekend.skypicker.com"
|
|
CACHE_HOST = "localhost"
|
|
CACHE_PORT = 6379
|
|
CACHE_DB = 0
|
|
CACHE_SURNAME = "bence"
|
|
CACHE_BACKEND = "regiojet_search.cache.RedisCache"
|
|
# CACHE_BACKEND = "regiojet_search.cache.DummyCache"
|
|
|
|
# DB
|
|
DATABASE_URL = os.environ.get("DATABASE_URL")
|