Skip to content

Commit 05573be

Browse files
authored
Merge pull request #17 from akirachix/feature/deployments
feat: big fixes
2 parents fa77220 + a30e644 commit 05573be

File tree

6 files changed

+26
-52
lines changed

6 files changed

+26
-52
lines changed

.github/workflows/cicd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
python-version: [3.8]
13+
python-version: [3.13.4]
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
@@ -31,4 +31,5 @@ jobs:
3131
- name: Run tests with coverage
3232
run: |
3333
python manage.py test
34+
3435

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
web: gunicorn carbon_track.wsgi --log-file -
1+
web: gunicorn feedlink.wsgi --log-file -
22

33

44

feedlink/settings.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# Quick-start development settings - unsuitable for production
2727
# See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
28-
SECRET_KEY = os.getenv('SECRET_KEY', 'replace-this-with-a-secure-key')
28+
SECRET_KEY = os.getenv('SECRET_KEY', 'fake-secret-key-for-tests-12345')
2929

3030

3131
# SECURITY WARNING: don't run with debug turned on in production!
@@ -35,7 +35,7 @@
3535

3636

3737

38-
CORS_ALLOW_CREDENTIALS = True
38+
CORS_ORIGIN_ALLOW_ALL= True
3939

4040

4141

@@ -72,6 +72,7 @@
7272
'django.middleware.common.CommonMiddleware',
7373
'django.middleware.csrf.CsrfViewMiddleware',
7474
'django.contrib.auth.middleware.AuthenticationMiddleware',
75+
'whitenoise.middleware.WhiteNoiseMiddleware',
7576
'django.contrib.messages.middleware.MessageMiddleware',
7677
'django.middleware.clickjacking.XFrameOptionsMiddleware',
7778
]
@@ -203,7 +204,14 @@
203204
# https://docs.djangoproject.com/en/5.2/howto/static-files/
204205

205206

206-
STATIC_URL = 'static/'
207+
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
208+
STATIC_URL = '/static/'
209+
STATICFILES_DIRS = (
210+
os.path.join(BASE_DIR, 'static'),
211+
)
212+
213+
MEDIA_URL = "/media/"
214+
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
207215

208216

209217
# Default primary key field type

requirements.tx

Lines changed: 0 additions & 36 deletions
This file was deleted.

requirements.txt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,36 @@ black==24.8.0
44
certifi==2025.8.3
55
charset-normalizer==3.4.3
66
click==8.1.8
7+
dj-database-url==1.0.0
78
django==4.2.24
8-
django-cors-headers==4.4.0
9+
django-cors-headers==4.6.0
910
django-environ==0.11.2
10-
django-filter==24.3
11+
django-filter==25.1
1112
djangorestframework==3.15.2
1213
djangorestframework-simplejwt==5.3.1
1314
drf-spectacular==0.28.0
15+
drf-spectacular-sidecar==2025.6.1
16+
gunicorn==23.0.0
1417
idna==3.10
1518
inflection==0.5.1
16-
jsonschema-specifications==2023.12.1
17-
inflection==0.5.1
1819
jsonschema==4.23.0
20+
jsonschema-specifications==2023.12.1
1921
mypy-extensions==1.0.0
2022
packaging==24.2
2123
pathspec==0.12.1
2224
pillow==10.4.0
2325
platformdirs==4.3.6
26+
psycopg==3.2.10
27+
psycopg2-binary==2.9.10
2428
pyjwt==2.9.0
29+
python-dotenv==1.0.0
2530
pyyaml==6.0.2
2631
referencing==0.35.1
27-
python-dotenv==1.0.0
2832
requests==2.32.4
33+
rpds-py==0.20.1
2934
sqlparse==0.5.3
3035
tomli==2.2.1
3136
typing-extensions==4.13.2
3237
uritemplate==4.1.1
3338
urllib3==2.2.3
34-
django-environ==0.11.2
35-
django-cors-headers
36-
psycopg==3.2.10
37-
psycopg2-binary==2.9.10
38-
dj-database-url==1.0.0
39+
whitenoise==6.11.0

runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.11
1+
python-3.11.0

0 commit comments

Comments
 (0)