-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(fix): Added get csrf token implementation
- Loading branch information
1 parent
0f775f0
commit 3917e9e
Showing
4 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
server/apps/research/migrations/0009_alter_article_thumb.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 5.0.8 on 2024-08-21 12:39 | ||
|
||
import apps.research.models.article | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('research', '0008_alter_article_content'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='article', | ||
name='thumb', | ||
field=models.ImageField(blank=True, default=apps.research.models.article.get_default_thumb, upload_to='images/'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from .base import * | ||
|
||
MEDIA_URL = '/media/' | ||
|
||
CSRF_TRUSTED_ORIGINS = [ | ||
'http://127.0.0.1:8000', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters