.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# Generated by Django 3.1.5 on 2021-02-15 11:44
|
||||
|
||||
import anatomy.models
|
||||
import django.core.files.storage
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('anatomy', '0031_auto_20210215_1043'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='anatomyquestion',
|
||||
name='image',
|
||||
field=models.ImageField(storage=django.core.files.storage.FileSystemStorage(base_url='/media/anatomy/', location='/home/django/rad/media//anatomy/'), upload_to=anatomy.models.image_directory_path),
|
||||
),
|
||||
]
|
||||
+2
-2
@@ -148,7 +148,7 @@ USE_TZ = True
|
||||
# https://docs.djangoproject.com/en/1.11/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
|
||||
STATIC_ROOT = '/home/django/rad/static/'
|
||||
|
||||
REMOTE_URL = "http://penracourses.org.uk"
|
||||
#
|
||||
@@ -156,7 +156,7 @@ REMOTE_URL = "http://penracourses.org.uk"
|
||||
# STATIC_URL = REMOTE_URL + STATIC_URL
|
||||
|
||||
MEDIA_URL = '/media/'
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
|
||||
MEDIA_ROOT = '/home/django/rad/media/'
|
||||
|
||||
#if DEBUG:
|
||||
# MEDIA_URL = REMOTE_URL + MEDIA_URL
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
# Generated by Django 3.1.5 on 2021-02-15 11:44
|
||||
|
||||
import django.core.files.storage
|
||||
from django.db import migrations, models
|
||||
import rapids.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('rapids', '0017_auto_20210215_1043'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='rapidimage',
|
||||
name='image',
|
||||
field=models.FileField(storage=django.core.files.storage.FileSystemStorage(base_url='/media/rapids/', location='/home/django/rad/media/rapids/'), upload_to=rapids.models.image_directory_path),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user