Compare commits

..

No commits in common. "151f98bf528cb8ea3ea3f4de5a60fe8ddec3fa3a" and "b87da3b032f031510e71207d1408eb75d7b10d52" have entirely different histories.

View File

@ -1,50 +1,33 @@
# ATTENTION: DEPRECATED! #### This website uses imdb api to send users new episode notifications of their recorded series via e-mail.
This project has been deprecated because the `imdb-api.com` service it used to retrieve series data has been discontinued. <br />
<br /> <br />
## This website uses imdb api to send users new episode notifications of their recorded series via e-mail.
## Installition for Dev (Debian based OS) ## Installition for Dev
```sh **pip install -r requirements.txt<br />
pip install -r requirements.txt cd src/<br />**
cd src/
```
add SECRET_KEY, EMAIL_HOST_PASSWORD to .env.example file<br /> add SECRET_KEY, EMAIL_HOST_PASSWORD to .env.example file<br />
rename .env.example to .env<br /> rename .env.example to .env<br />
```sh
python3 manage.py makemigrations account --settings=config.settings.development **python3 manage.py makemigrations account --settings=config.settings.development<br />
python3 manage.py makemigrations series --settings=config.settings.development python3 manage.py makemigrations series --settings=config.settings.development<br />
python3 manage.py migrate --settings=config.settings.development python3 manage.py migrate --settings=config.settings.development<br />**<br />
```
## Run for Dev ## Run for Dev
```sh **python3 manage.py runserver --settings=config.settings.development**<br /><br /><br />
python3 manage.py runserver --settings=config.settings.development
```
## Run Periodic Tasks with RabbitMQ ## Run Periodic Tasks with RabbitMQ
### Installition RabbitMQ ### Installition RabbitMQ
```sh **sudo apt-get install rabbitmq-server**<br />
sudo apt-get install rabbitmq-server **sudo systemctl start rabbitmq-server**<br />
sudo systemctl start rabbitmq-server
```
### Run Celery ### Run Celery
```sh **celery -A config worker -l info**<br />
celery -A config worker -l info **celery -A config beat -l info**<br /><br />
celery -A config beat -l info
```
## Run Periodic Tasks with Redis ## Run Periodic Tasks with Redis
### **add these two settings to base settings**<br /> ### **add these two settings to base settings**<br />
```sh **CELERY_BROKER_URL = "redis://localhost:6379"<br />
CELERY_BROKER_URL = "redis://localhost:6379" CELERY_RESULT_BACKEND = "redis://localhost:6379"**
CELERY_RESULT_BACKEND = "redis://localhost:6379"
```
### Installition Redis ### Installition Redis
```sh **sudo apt install redis**<br />
sudo apt install redis **redis-server**<br />
redis-server
```
### Run Celery ### Run Celery
``` **celery -A config worker -l info**<br />
celery -A config worker -l info **celery -A config beat -l info**
celery -A config beat -l info
```