diff --git a/.gitignore b/.gitignore index d7b8c14..2a1342a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,7 @@ myvenv/ /media/ /user/migrations/ .env -./user/templatetags/__pycache__ \ No newline at end of file +./user/templatetags/__pycache__ +./user/templatetags/__init__.py +./user/templatetags/__init__.pyc +.DS_Store \ No newline at end of file diff --git a/movie/urls.py b/movie/urls.py index 2776c28..eb8134c 100644 --- a/movie/urls.py +++ b/movie/urls.py @@ -13,14 +13,14 @@ 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.urls import path, include from django.conf.urls.static import static from django.conf import settings - +from django.views.generic import RedirectView urlpatterns = [ + path('', RedirectView.as_view(url='/user/shows/', permanent=False), name='root'), path('admin/', admin.site.urls), path('user/', include(('user.urls', 'user'), namespace='user')), ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ No newline at end of file diff --git a/user/templatetags/__pycache__/__init__.cpython-312.pyc b/user/templatetags/__pycache__/__init__.cpython-312.pyc index b7b2d07..629de7e 100644 Binary files a/user/templatetags/__pycache__/__init__.cpython-312.pyc and b/user/templatetags/__pycache__/__init__.cpython-312.pyc differ diff --git a/user/templatetags/__pycache__/star_rating.cpython-312.pyc b/user/templatetags/__pycache__/star_rating.cpython-312.pyc index aeaa34c..500a6ae 100644 Binary files a/user/templatetags/__pycache__/star_rating.cpython-312.pyc and b/user/templatetags/__pycache__/star_rating.cpython-312.pyc differ