Enhance entrypoint script with sleep for MySQL readiness, update VerificationCode model to use CharField, and add responsive logo images in base template.
This commit is contained in:
+2
-1
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
figlet Proyecto MVC
|
figlet Proyecto MVC
|
||||||
|
echo "Sleeping due to mysql..."
|
||||||
|
sleep 10
|
||||||
echo "Running DB migrations..."
|
echo "Running DB migrations..."
|
||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
echo "Collecting STATIC..."
|
echo "Collecting STATIC..."
|
||||||
|
|||||||
Binary file not shown.
@@ -18,6 +18,6 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='verificationcode',
|
model_name='verificationcode',
|
||||||
name='code',
|
name='code',
|
||||||
field=models.TextField(default='', unique=True),
|
field=models.CharField(default='', max_length=64, unique=True),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|||||||
BIN
Binary file not shown.
+1
-1
@@ -20,7 +20,7 @@ class VerificationCode(models.Model):
|
|||||||
RESET_PASSWORD = "RP"
|
RESET_PASSWORD = "RP"
|
||||||
|
|
||||||
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="user_belongsto", null=False, blank=False)
|
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="user_belongsto", null=False, blank=False)
|
||||||
code = models.TextField(default = "", unique=True)
|
code = models.CharField(max_length=64, default="", unique=True)
|
||||||
code_mode = models.CharField(
|
code_mode = models.CharField(
|
||||||
max_length=2,
|
max_length=2,
|
||||||
choices = VerificationModes.choices,
|
choices = VerificationModes.choices,
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 430 B |
Binary file not shown.
|
After Width: | Height: | Size: 6.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
@@ -76,7 +76,18 @@
|
|||||||
<nav class="navbar navbar-expand-md header">
|
<nav class="navbar navbar-expand-md header">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<a class="navbar-brand" href="{% url 'home' %}">
|
<a class="navbar-brand" href="{% url 'home' %}">
|
||||||
<img src="{% static 'img/logo.png' %}" alt="Logo" style="height: 40px;">
|
<picture>
|
||||||
|
<source
|
||||||
|
type="image/webp"
|
||||||
|
srcset="{% static 'img/logo-40.webp' %} 1x, {% static 'img/logo-80.webp' %} 2x">
|
||||||
|
<img
|
||||||
|
src="{% static 'img/logo-40.png' %}"
|
||||||
|
srcset="{% static 'img/logo-40.png' %} 1x, {% static 'img/logo-80.png' %} 2x"
|
||||||
|
alt="Logo"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
decoding="async">
|
||||||
|
</picture>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|||||||
Reference in New Issue
Block a user