"""Urls file.""" from django.urls import path from frontend.views import IndexView urlpatterns = [ path('', IndexView.as_view(), name='index'), ]
from frontend.views import IndexView, Sitemap, FriendsView from .feeds import AllEntriesFeed, IssuesFeed, ItemArticleFeed, \ ItemBookDocFeed, ItemEventFeed, ItemNewsFeed, \ ItemPackagesFeed, ItemRecommendFeed, ItemReleaseFeed, \ ItemVideoFeed, RussianEntriesFeed, TwitterEntriesFeed, ItemAuthorsFeed, \ RawEntriesFeed app_name = 'frontend' urlpatterns = [ url(r'^rss/$', AllEntriesFeed(), name='rss'), url(r'^rss/raw$', RawEntriesFeed(), name='rss_raw'), url(r'^rss/direct/$', AllEntriesFeed(), name='rss_direct'), url(r'^rss/twitter/$', TwitterEntriesFeed(), name='rss_twitter'), url(r'^rss/ru/$', RussianEntriesFeed(), name='russian_rss'), url(r'^rss/issues/$', IssuesFeed(), name='issues_rss'), # hindi # solution url(r'^rss/video/$', ItemVideoFeed(), name='video_rss'), url(r'^rss/recommend/$', ItemRecommendFeed(), name='recommend_rss'), url(r'^rss/news/$', ItemNewsFeed(), name='news_rss'), url(r'^rss/bookdoc/$', ItemBookDocFeed(), name='book_doc_rss'), url(r'^rss/event/$', ItemEventFeed(), name='event_rss'), url(r'^rss/article/$', ItemArticleFeed(), name='article_rss'), url(r'^rss/authors/$', ItemAuthorsFeed(), name='authors_rss'), url(r'^rss/release/$', ItemReleaseFeed(), name='release_rss'), url(r'^rss/packages/$', ItemPackagesFeed(), name='packages_rss'), url(r'^sitemap\.xml$', Sitemap.as_view(), name='sitemap'), url(r'^$', IndexView.as_view(), name='index'), url(r'^friends/$', FriendsView.as_view(), name='friends'), ]
"""sendfood URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 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 from frontend.views import IndexView, MenuView urlpatterns = [ path('admin/', admin.site.urls), path('', IndexView.as_view()), path('menu', MenuView.as_view()), ]
"""vocab URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import url from django.contrib import admin from frontend.views import IndexView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', IndexView.as_view()) ]
from django.conf import settings from django.contrib import admin from django.contrib.auth.views import LogoutView from django.views.generic.base import RedirectView from django.urls import path, include from django.http import HttpResponse from frontend.views import IndexView from repository.urls import urlpatterns as repository_urls urlpatterns = [ path('', IndexView.as_view(), name="index"), path('auth/', include('social_django.urls', namespace='social')), path('logout/', LogoutView.as_view(), kwargs={'next_page': '/'}, name="logout"), path('package/', include(repository_urls)), path( 'favicon.ico', RedirectView.as_view(url="%s%s" % (settings.STATIC_URL, 'favicon.ico'))), path('djangoadmin/', admin.site.urls), path('healthcheck/', lambda request: HttpResponse("OK"), name="healthcheck") ]
from django.urls import path from frontend.views import IndexView urlpatterns = [ path("", IndexView.as_view()), path("games/", IndexView.as_view()), path("add_game/", IndexView.as_view()), ]
urlpatterns = [] # System views urlpatterns += [ url(r'^admin/', admin.site.urls), url(r'^accounts/', include('accounts.urls', namespace='accounts')), url(r'^accounts/', include('allauth.urls')), url(r'^login/', allauth_views.login, name="account_login"), url(r'^logout/', allauth_views.logout, name="account_logout"), ] # Apps urlpatterns += [ url(r'^news/', include('news.urls')), url(r'', include('api.urls')), url(r'', include('personalization.urls')), url(r'^news-reader/', NewsReaderView.as_view(), name='news-reader'), url(r'^$', IndexView.as_view(), name='home'), ] # For local dev, serve static files directly from Django # In deployment, these should be served from a real server if settings.DEPLOYMENT == 'local': from django.contrib.staticfiles.urls import staticfiles_urlpatterns urlpatterns += staticfiles_urlpatterns() import debug_toolbar urlpatterns = [ url(r'^__debug__/', include(debug_toolbar.urls)), ] + urlpatterns
UserViewSet, AvatarViewSet, AuthSetup, GuestRegistration, ) router = routers.DefaultRouter() router.register(r"avatars", AvatarViewSet) router.register(r"users", UserViewSet) schema_view = get_schema_view(title='Rest API') urlpatterns = [ #coming from frontend app using react every thing we connect in App.js in components will be #rendered here in IndexView using Same Django app Server path('', IndexView.as_view(), name="home"), path('admin/', admin.site.urls), path("api/", include(router.urls)), path("api-auth/", include("rest_framework.urls")), path("auth/", include("dj_rest_auth.urls")), path("auth/registration/", include("dj_rest_auth.registration.urls")), path("auth/setup/", AuthSetup.as_view(), name="auth-setup"), path("auth/guest/", GuestRegistration.as_view(), name="guest-registration"), path('docs/', include_docs_urls(title='Rest API')), path('schema/', schema_view), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) if settings.DEBUG: try: import debug_toolbar