WIP
This commit is contained in:
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
18
exercise/migrations/0005_alter_exercise_description.py
Normal file
18
exercise/migrations/0005_alter_exercise_description.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -6,7 +6,7 @@ class Exercise(models.Model):
|
|||||||
created_at = models.DateTimeField(auto_now_add=True)
|
created_at = models.DateTimeField(auto_now_add=True)
|
||||||
updated_at = models.DateTimeField(auto_now=True)
|
updated_at = models.DateTimeField(auto_now=True)
|
||||||
name = models.CharField(null=True, blank=True, max_length=64)
|
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)
|
side = models.CharField(null=True, blank=True, max_length=64)
|
||||||
is_two_dumbbells = models.BooleanField(default=False)
|
is_two_dumbbells = models.BooleanField(default=False)
|
||||||
is_trackable_distance = models.BooleanField(default=False)
|
is_trackable_distance = models.BooleanField(default=False)
|
||||||
|
|||||||
@@ -14,6 +14,12 @@ urlpatterns = [
|
|||||||
# path('scripts/', include('scripts.urls')),
|
# path('scripts/', include('scripts.urls')),
|
||||||
] + static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)
|
] + 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:
|
# if settings.DEBUG:
|
||||||
# urlpatterns.append(url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}))
|
# urlpatterns.append(url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}))
|
||||||
Reference in New Issue
Block a user