add app user management allauth
This commit is contained in:
@@ -16,8 +16,19 @@ Including another URLconf
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
from django.conf.urls.static import static
|
||||
from django.conf import settings
|
||||
from aseusers.views import profile_view
|
||||
from wallet_api.views import *
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('wallet/', include('wallet_api.urls')),
|
||||
path('accounts/', include('allauth.urls')),
|
||||
path('', include('wallet_api.urls')),
|
||||
path('profile/', include('aseusers.urls')),
|
||||
path('@<username>/', profile_view, name="profile"),
|
||||
]
|
||||
|
||||
# Only used when DEBUG=True, whitenoise can serve files when DEBUG=False
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
Reference in New Issue
Block a user