from django.contrib import 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('class/', include('classroom.urls')),
    path('assignment-api/', include('assignment.urls', namespace='assignment')),
    path('feed/', include('feed.urls', namespace='feed')),
    path('users/', include('users.urls'), name="user-register")
]
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

[(7, 'django.urls.path', 'path', False, 'from django.urls import include, path\n'), (14, 'django.conf.urls.static.static', 'static', False, 'from django.conf.urls.static import static\n'), (8, 'django.urls.include', 'include', False, 'from django.urls import include, path\n'), (9, 'django.urls.include', 'include', False, 'from django.urls import include, path\n'), (10, 'django.urls.include', 'include', False, 'from django.urls import include, path\n'), (11, 'django.urls.include', 'include', False, 'from django.urls import include, path\n')]