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', (['"""admin/"""', 'admin.site.urls'], {}), False, 'from django.urls import include, path\n'), (14, 'django.conf.urls.static.static', 'static', (['settings.MEDIA_URL'], {'document_root': 'settings.MEDIA_ROOT'}), False, 'from django.conf.urls.static import static\n'), (8, 'django.urls.include', 'include', (['"""classroom.urls"""'], {}), False, 'from django.urls import include, path\n'), (9, 'django.urls.include', 'include', (['"""assignment.urls"""'], {'namespace': '"""assignment"""'}), False, 'from django.urls import include, path\n'), (10, 'django.urls.include', 'include', (['"""feed.urls"""'], {'namespace': '"""feed"""'}), False, 'from django.urls import include, path\n'), (11, 'django.urls.include', 'include', (['"""users.urls"""'], {}), False, 'from django.urls import include, path\n')]