Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update cors settings and readme #69

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/blackfox_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,5 @@ jobs:
echo FATSECRET_CONSUMER_KEY=${{ secrets.FATSECRET_CONSUMER_KEY }} >> .env
echo FATSECRET_CONSUMER_SECRET=${{ secrets.FATSECRET_CONSUMER_SECRET }} >> .env
echo FATSECRET_CALLBACK_URL=${{ secrets.FATSECRET_CALLBACK_URL }} >> .env
echo VITE_BASE_URL=${{ secrets.VITE_BASE_URL }} >> .env
sudo docker-compose pull
sudo docker-compose up -d
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ python3 -m pip install -r requirements.txt
```
5. Configure the .env file like this
```bash
ALLOWED_HOSTS=127.0.0.1
ALLOWED_HOSTS=localhost
DJANGO_SECRET_KEY=django_secret_key
DB_ENGINE=django.db.backends.postgresql
DB_HOST=db
DB_PORT=5432
POSTGRES_DB_NAME=postgres_db_name
POSTGRES_DB=postgres_db
POSTGRES_USER=postgres_user
POSTGRES_PASSWORD=postgres_password
FATSECRET_CONSUMER_KEY=fatsecret_consumer_key
FATSECRET_CONSUMER_SECRET=fatsecret_consumer_secret
FATSECRET_CALLBACK_URL=https://fatsecret.callback.url/
FATSECRET_CALLBACK_URL=https://fatsecret.callback.url
```
6. To create the database use command
```bash
Expand All @@ -53,7 +53,7 @@ http://localhost:8000/api/swagger/
http://localhost:8000/api/redoc/

### Technology
[Python](https://www.python.org), [Django REST framework](https://www.django-rest-framework.org), [FatSecret API](https://platform.fatsecret.com/), [Django Crontab](https://pypi.org/project/django-crontab/), [PostgreSQL](https://www.postgresql.org/), [Docker](https://www.docker.com/), [GitHub Actions](https://github.com/features/actions)
[Python](https://www.python.org), [Django REST framework](https://www.django-rest-framework.org), [FatSecret API](https://platform.fatsecret.com), [Django Crontab](https://pypi.org/project/django-crontab), [PostgreSQL](https://www.postgresql.org/), [Docker](https://www.docker.com), [GitHub Actions](https://github.com/features/actions)

### Author
[Evgeniy Golodnykh](https://github.com/Evgeniy-Golodnykh)
Expand Down
2 changes: 0 additions & 2 deletions blackfox/blackfox/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@

CORS_ALLOW_ALL_ORIGINS = True

CORS_ALLOW_HEADERS = ['content-type', 'authorization', 'x-csrftoken']


# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
Expand Down
Loading