A seguir: Agora você pode testar o login acessando
This commit is contained in:
parent
a195d0853c
commit
91243baf92
Binary file not shown.
@ -14,16 +14,16 @@ Including another URLconf
|
||||
1. Import the include() function: from django.urls import include, path
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.contrib import admin
|
||||
# from django.contrib import admin # Removed standard admin
|
||||
from django.urls import include, path
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
|
||||
urlpatterns = [
|
||||
path("admin/", admin.site.urls),
|
||||
# path("admin/", admin.site.urls), # Removed standard admin path
|
||||
path("", include("core.urls")),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static("/assets/", document_root=settings.BASE_DIR / "assets")
|
||||
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
Binary file not shown.
@ -9,7 +9,8 @@ class StudioConfig(models.Model):
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if not self.admin_access_key:
|
||||
self.admin_access_key = str(uuid.uuid4())
|
||||
# Using the key requested by the user as default
|
||||
self.admin_access_key = "61823dbc-ee05-455f-8924-764f15104fc1"
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
def __str__(self):
|
||||
@ -108,4 +109,4 @@ class CgiAsset(models.Model):
|
||||
assigned_artist = models.CharField(max_length=100, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.name} ({self.get_asset_type_display()})"
|
||||
return f"{self.name} ({self.get_asset_type_display()})"
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
<a class="nav-link" href="{% url 'asset_library' %}">Asset Library</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/admin/">Django Admin</a>
|
||||
<a class="nav-link" href="{% url 'studio_ai' %}">Studio AI</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -100,4 +100,4 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
{% block extra_js %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user