"""get_placed URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/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. Add an import:  from blog import urls as blog_urls
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import include, url
from django.contrib import admin
from rest_framework import routers
from my_backend import views 
from django.conf import settings
from django.conf.urls.static import static

## Specify viewset to load at a paticular URL pattern
# This will load the Company Login Viewset
routerCompanyLogin = routers.DefaultRouter()
## Specify viewset to load at a paticular URL pattern
# This will load Company Viewset
routerCompany = routers.DefaultRouter()
## Specify viewset to load at a paticular URL pattern## Specify viewset to load at a paticular URL pattern
# This will load the Student Viewset
routerStudent = routers.DefaultRouter()
## Specify viewset to load at a paticular URL pattern
# This will load the Offers Viewset
routerOffer = routers.DefaultRouter()
## Specify viewset to load at a paticular URL pattern
# This will load the Queries Viewset
routerQuery=routers.DefaultRouter()


routerCompanyLogin.register(r'company',views.CompanyLoginViewSet)
routerCompany.register(r'company',views.CompanyViewSet, 'company')
routerStudent.register(r'student', views.StudentViewSet, 'student')
routerOffer.register(r'offer', views.OffersViewSet)
routerQuery.register(r'query',views.QueriesViewSet)

## Specify URL pattern for various pages
# http://ip.address/admin : Loads viewset of Admin
#
# http://ip.address/login/company : Loades viewset for Login of Company
#
# http://ip.address/companies/company : Loads Viewset for Companies 
#
# http://ip.address/students/student : Loads viewset for Students
#
# http://ip.address/offers/offer : Loads viewset for Offers
#
# http://ip.address/queries : Loads viewset for Queries
#
# http://ip.address/admin : Page of Admin

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^login/', include(routerCompanyLogin.urls)),
    url(r'^companies/', include(routerCompany.urls)),
    url(r'^students/', include(routerStudent.urls)),
    url(r'^offers/', include(routerOffer.urls)),
    url(r'^queries/', include(routerQuery.urls)),
       
]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
#if settings.DEBUG:
 #   urlpatterns+=static(settings.MEDIA_url)
    


a2d1dbaebb2c5be278be64553fec51390479fa1d
<mask token>

<mask token>
routerCompanyLogin.register('company', views.CompanyLoginViewSet)
routerCompany.register('company', views.CompanyViewSet, 'company')
routerStudent.register('student', views.StudentViewSet, 'student')
routerOffer.register('offer', views.OffersViewSet)
routerQuery.register('query', views.QueriesViewSet)
<mask token>

<mask token>
routerCompanyLogin = routers.DefaultRouter()
routerCompany = routers.DefaultRouter()
routerStudent = routers.DefaultRouter()
routerOffer = routers.DefaultRouter()
routerQuery = routers.DefaultRouter()
routerCompanyLogin.register('company', views.CompanyLoginViewSet)
routerCompany.register('company', views.CompanyViewSet, 'company')
routerStudent.register('student', views.StudentViewSet, 'student')
routerOffer.register('offer', views.OffersViewSet)
routerQuery.register('query', views.QueriesViewSet)
urlpatterns = [url('^admin/', include(admin.site.urls)), url('^login/',
    include(routerCompanyLogin.urls)), url('^companies/', include(
    routerCompany.urls)), url('^students/', include(routerStudent.urls)),
    url('^offers/', include(routerOffer.urls)), url('^queries/', include(
    routerQuery.urls))] + static(settings.MEDIA_URL, document_root=settings
    .MEDIA_ROOT)

<mask token>
from django.conf.urls import include, url
from django.contrib import admin
from rest_framework import routers
from my_backend import views
from django.conf import settings
from django.conf.urls.static import static
routerCompanyLogin = routers.DefaultRouter()
routerCompany = routers.DefaultRouter()
routerStudent = routers.DefaultRouter()
routerOffer = routers.DefaultRouter()
routerQuery = routers.DefaultRouter()
routerCompanyLogin.register('company', views.CompanyLoginViewSet)
routerCompany.register('company', views.CompanyViewSet, 'company')
routerStudent.register('student', views.StudentViewSet, 'student')
routerOffer.register('offer', views.OffersViewSet)
routerQuery.register('query', views.QueriesViewSet)
urlpatterns = [url('^admin/', include(admin.site.urls)), url('^login/',
    include(routerCompanyLogin.urls)), url('^companies/', include(
    routerCompany.urls)), url('^students/', include(routerStudent.urls)),
    url('^offers/', include(routerOffer.urls)), url('^queries/', include(
    routerQuery.urls))] + static(settings.MEDIA_URL, document_root=settings
    .MEDIA_ROOT)

"""get_placed URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/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. Add an import:  from blog import urls as blog_urls
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import include, url
from django.contrib import admin
from rest_framework import routers
from my_backend import views 
from django.conf import settings
from django.conf.urls.static import static

## Specify viewset to load at a paticular URL pattern
# This will load the Company Login Viewset
routerCompanyLogin = routers.DefaultRouter()
## Specify viewset to load at a paticular URL pattern
# This will load Company Viewset
routerCompany = routers.DefaultRouter()
## Specify viewset to load at a paticular URL pattern## Specify viewset to load at a paticular URL pattern
# This will load the Student Viewset
routerStudent = routers.DefaultRouter()
## Specify viewset to load at a paticular URL pattern
# This will load the Offers Viewset
routerOffer = routers.DefaultRouter()
## Specify viewset to load at a paticular URL pattern
# This will load the Queries Viewset
routerQuery=routers.DefaultRouter()


routerCompanyLogin.register(r'company',views.CompanyLoginViewSet)
routerCompany.register(r'company',views.CompanyViewSet, 'company')
routerStudent.register(r'student', views.StudentViewSet, 'student')
routerOffer.register(r'offer', views.OffersViewSet)
routerQuery.register(r'query',views.QueriesViewSet)

## Specify URL pattern for various pages
# http://ip.address/admin : Loads viewset of Admin
#
# http://ip.address/login/company : Loades viewset for Login of Company
#
# http://ip.address/companies/company : Loads Viewset for Companies 
#
# http://ip.address/students/student : Loads viewset for Students
#
# http://ip.address/offers/offer : Loads viewset for Offers
#
# http://ip.address/queries : Loads viewset for Queries
#
# http://ip.address/admin : Page of Admin

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^login/', include(routerCompanyLogin.urls)),
    url(r'^companies/', include(routerCompany.urls)),
    url(r'^students/', include(routerStudent.urls)),
    url(r'^offers/', include(routerOffer.urls)),
    url(r'^queries/', include(routerQuery.urls)),
       
]+static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
#if settings.DEBUG:
 #   urlpatterns+=static(settings.MEDIA_url)
    

