Update static file storage settings and add migration for unique category names; clean up CSS and HTML structure
This commit is contained in:
@@ -203,7 +203,11 @@ STORAGES = {
|
||||
'BACKEND': 'django.core.files.storage.FileSystemStorage',
|
||||
},
|
||||
'staticfiles': {
|
||||
'BACKEND': 'whitenoise.storage.CompressedManifestStaticFilesStorage',
|
||||
'BACKEND': (
|
||||
'django.contrib.staticfiles.storage.StaticFilesStorage'
|
||||
if DEBUG
|
||||
else 'whitenoise.storage.CompressedManifestStaticFilesStorage'
|
||||
),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 6.0.4 on 2026-04-17 07:05
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('tienda', '0005_savedpaymentmethod'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='category',
|
||||
name='name',
|
||||
field=models.CharField(max_length=200, unique=True),
|
||||
),
|
||||
]
|
||||
Binary file not shown.
@@ -274,4 +274,3 @@ p.price {
|
||||
color: #6c757d;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=custom.css.map */
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
</style>
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<body class="d-flex flex-column min-vh-100">
|
||||
{% cache 500 sidebar request.user.username %}
|
||||
<nav class="navbar navbar-expand-md header" role="banner">
|
||||
<div class="container-fluid">
|
||||
@@ -135,7 +135,7 @@
|
||||
</nav>
|
||||
{% endcache %}
|
||||
|
||||
<div class="container-fluid" role="main">
|
||||
<div class="container-fluid flex-grow-1 d-flex flex-column" role="main">
|
||||
<!-- Mensajes -->
|
||||
{% if messages %}
|
||||
<div class="row mt-3">
|
||||
|
||||
Reference in New Issue
Block a user