Bladeren bron

Logo de reymota

Tino 1 maand geleden
bovenliggende
commit
9764643fa0

BIN
explorer/static/explorer/reymota.png


+ 5 - 2
explorer/templates/explorer/base.html

@@ -6,9 +6,11 @@
     <title>{% block title %}Registry Browser{% endblock %}</title>
     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
     <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
+    {% load static %}
     <style>
         body { background-color: #f8f9fa; }
         .navbar-brand { font-weight: 600; }
+        .navbar-brand img { height: 36px; width: auto; }
         .card { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075); border: 1px solid rgba(0,0,0,.08); }
         .registry-card { transition: transform 0.15s ease-in-out; }
         .registry-card:hover { transform: translateY(-2px); }
@@ -23,8 +25,9 @@
 <body>
     <nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-4">
         <div class="container">
-            <a class="navbar-brand" href="{% url 'dashboard' %}">
-                <i class="bi bi-box-seam"></i> Registry Browser
+            <a class="navbar-brand d-flex align-items-center gap-2" href="{% url 'dashboard' %}">
+                <img src="{% static 'explorer/reymota.png' %}" alt="Reymota">
+                Registry Browser
             </a>
             <div class="navbar-nav ms-auto">
                 {% if user.is_authenticated %}

BIN
regbrowser/__pycache__/settings.cpython-312.pyc


+ 7 - 1
regbrowser/settings.py

@@ -74,7 +74,13 @@ STATIC_URL = 'static/'
 STATIC_ROOT = os.environ.get('STATIC_ROOT', BASE_DIR / 'staticfiles')
 STORAGES = {
     'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'},
-    'staticfiles': {'BACKEND': 'whitenoise.storage.CompressedManifestStaticFilesStorage'},
+    'staticfiles': {
+        'BACKEND': (
+            'whitenoise.storage.CompressedManifestStaticFilesStorage'
+            if not DEBUG
+            else 'django.contrib.staticfiles.storage.StaticFilesStorage'
+        )
+    },
 }
 DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
 

+ 3 - 5
run.sh

@@ -1,13 +1,11 @@
 #!/bin/bash
-# Script para ejecutar Registry Browser
+# Script para ejecutar Registry Browser en desarrollo
 cd "$(dirname "$0")"
 
 # Activar entorno virtual
 source venv/bin/activate
 
-# Ejecutar servidor de desarrollo
+export DEBUG=${DEBUG:-true}
+
 echo "Iniciando Registry Browser en http://localhost:8000"
-echo "Usuario: admin"
-echo "Contraseña: admin"
-echo ""
 python manage.py runserver 0.0.0.0:8000