"""django_celery_redis_periodic_task URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/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, include
from photos.views import PhotoView
from feedback.views import FeedbackView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', PhotoView.as_view(), name="home"),
    path('feedback/', FeedbackView.as_view(), name="feedback"),
    path('admin/statuscheck/', include('celerybeat_status.urls')),
]
Ejemplo n.º 2
0
"""picha 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 photos.views import PhotoView
from feedback.views import FeedbackView

urlpatterns = [
    url(r'^$', PhotoView.as_view(), name="home"),
    url(r'^feedback/$', FeedbackView.as_view(), name="feedback"),
    url(r'^admin/', include(admin.site.urls)),
]
Ejemplo n.º 3
0
from django.contrib import admin
from django.urls import path
from django.conf.urls.static import static
from django.conf import settings

from photos.views import PhotoView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', PhotoView.as_view(), name='photos'),
]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Ejemplo n.º 4
0
from django.conf.urls import include, url
from django.contrib import admin

from photos.views import PhotoView
from feedback.views import FeedbackView

urlpatterns = [
    url(r'^$', PhotoView.as_view(), name="home"),
    url(r'^feedback/$', FeedbackView.as_view(), name="feedback"),
    url(r'^admin/', include(admin.site.urls)),
]
Ejemplo n.º 5
0
from django.conf.urls import include, url
from django.contrib import admin
from photos.views import PhotoView
from feedback.views import FeedbackView

urlpatterns = [
    url(r"^$", PhotoView.as_view(), name="home"),
    url(r"^feedback/$", FeedbackView.as_view(), name="feedback"),
    url(r"^admin/", include(admin.site.urls)),
]
Ejemplo n.º 6
0
from django.conf.urls import url

from photos import views
from photos.views import PhotoView, PhotoDetailView, AddPhotoView, TagIndexView, photo_delete_view, make_new_lead, \
    make_lead_view

urlpatterns = [
    url(r'^makelead/$', make_lead_view, name='make_lead'),
    url(r'^makelead-form/$', make_new_lead, name='lead'),
    url(r'^main/$', PhotoView.as_view(), name='photo'),
    url(r'^photo/(?P<pk>\d+)/$', PhotoDetailView.as_view(), name='photo_detail'),
    url(r'^upload-photo/$', AddPhotoView.as_view(), name='add_photo'),
    url(r'^delete/(?P<pk>\d+)/$',photo_delete_view, name='delete_photo'),
    url(r'^like/$', views.like_photo, name='like_photo'),
    url(r'^tag/(?P<slug>[-\w]+)/$', TagIndexView.as_view(), name='tagged'),
    url(r'^lazy_load_list/$', views.lazy_load_list, name='lazy_load_list'),

]
Ejemplo n.º 7
0
from django.conf.urls import include, url
from django.contrib import admin

from bsub.urls import router
from feedback.views import FeedbackView
from photos.views import PhotoView
from rest_framework.authtoken.views import obtain_auth_token

urlpatterns = [
    url(r'^$', 'welcome.views.index', name='home'),
    url(r'^photos/$', PhotoView.as_view(), name="photos"),
    url(r'^health$', 'welcome.views.health'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^experiences/', include('experiences.urls', namespace='experiences')),
    url(r'^feedback/$', FeedbackView.as_view(), name='feedback'),
    url(r'^api/token/', obtain_auth_token, name='api-token'),
    url(r'^api/', include(router.urls)),
]