This commit is contained in:
Trey t
2023-06-26 15:49:18 -05:00
parent fec72b4050
commit 15c0047fba
4 changed files with 25 additions and 1 deletions

Binary file not shown.

View File

@@ -0,0 +1,18 @@
# Generated by Django 4.2.2 on 2023-06-26 20:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('exercise', '0004_remove_exercise_duration'),
]
operations = [
migrations.AlterField(
model_name='exercise',
name='description',
field=models.CharField(blank=True, max_length=1024, null=True),
),
]

View File

@@ -6,7 +6,7 @@ class Exercise(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
name = models.CharField(null=True, blank=True, max_length=64)
description = models.CharField(null=True, blank=True, max_length=255)
description = models.CharField(null=True, blank=True, max_length=1024)
side = models.CharField(null=True, blank=True, max_length=64)
is_two_dumbbells = models.BooleanField(default=False)
is_trackable_distance = models.BooleanField(default=False)

View File

@@ -14,6 +14,12 @@ urlpatterns = [
# path('scripts/', include('scripts.urls')),
] + static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)
if settings.DEBUG:
import debug_toolbar
urlpatterns += [
path('__debug__/', include(debug_toolbar.urls)),
]
# if settings.DEBUG:
# urlpatterns.append(url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}))