15 lines
545 B
Python
15 lines
545 B
Python
from django.conf.urls.static import static
|
|
from django.urls import path, include
|
|
|
|
from thoughts import views
|
|
from whispermaphone import settings
|
|
|
|
urlpatterns = [
|
|
path("", views.index, name="index"),
|
|
path("about", views.about, name="about"),
|
|
path("login", views.login, name="login"),
|
|
path("post", views.post, name="post"),
|
|
path("search", views.search, name="thoughts_search"),
|
|
path('__debug__/', include('debug_toolbar.urls')),
|
|
] + (static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) if settings.DEBUG else [])
|