from django.urls import path, include

from django.conf.urls.static import static
from django.conf import settings
from django.contrib.auth import views as auth_views

from . import views


# All url patterns that are used by hive
urlpatterns = [
    path("<username>/viewhives", views.viewhives, name="viewhives"),
    path("<username>/createhive", views.createhive, name="createhive"),
    path("<username>/exportall", views.createhivescsv, name="createhivescsv"),
    path("<username>/<hive_pk>", views.viewhive, name="viewhive"),
    path("<username>/<hive_pk>/delete", views.deletehive, name="deletehive"),
    path("<username>/<hive_pk>/edit", views.edithive, name="edithive"),
    path(
        "<username>/<hive_pk>/addentry", views.addtimelineentry, name="addtimelineentry"
    ),
    path("<username>/<hive_pk>/export", views.createhivecsv, name="createhivecsv"),
    path(
        "<username>/<hive_pk>/<timeline_pk>",
        views.viewtimelineentry,
        name="viewtimelineentry",
    ),
    path(
        "<username>/<hive_pk>/<timeline_pk>/delete",
        views.deleteevent,
        name="deleteevent",
    ),
    path("<username>/<hive_pk>/<timeline_pk>/edit", views.editevent, name="editevent"),
    path(
        "<username>/<hive_pk>/<data_type>/graphdata", views.graphdata, name="graphdata"
    ),
    path(
        "<username>/<hive_pk>/<timeline_pk>/upload",
        views.uploadimage,
        name="uploadimage",
    ),    
    path(
        "<username>/<hive_pk>/<timeline_pk>/images",
        views.viewimages,
        name="viewimages",
    ),   
    path(
        "<username>/<hive_pk>/<timeline_pk>/images/<img_pk>",
        views.viewimage,
        name="viewimage",
    ),   
    path(
        "<username>/<hive_pk>/<timeline_pk>/images/<img_pk>/delete",
        views.deleteimage,
        name="deleteimage",
    ),        
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
67b1ccbe50e443093dce45bb73d1a209908ff851
<mask token>

<mask token>
urlpatterns = [path('<username>/viewhives', views.viewhives, name=
    'viewhives'), path('<username>/createhive', views.createhive, name=
    'createhive'), path('<username>/exportall', views.createhivescsv, name=
    'createhivescsv'), path('<username>/<hive_pk>', views.viewhive, name=
    'viewhive'), path('<username>/<hive_pk>/delete', views.deletehive, name
    ='deletehive'), path('<username>/<hive_pk>/edit', views.edithive, name=
    'edithive'), path('<username>/<hive_pk>/addentry', views.
    addtimelineentry, name='addtimelineentry'), path(
    '<username>/<hive_pk>/export', views.createhivecsv, name=
    'createhivecsv'), path('<username>/<hive_pk>/<timeline_pk>', views.
    viewtimelineentry, name='viewtimelineentry'), path(
    '<username>/<hive_pk>/<timeline_pk>/delete', views.deleteevent, name=
    'deleteevent'), path('<username>/<hive_pk>/<timeline_pk>/edit', views.
    editevent, name='editevent'), path(
    '<username>/<hive_pk>/<data_type>/graphdata', views.graphdata, name=
    'graphdata'), path('<username>/<hive_pk>/<timeline_pk>/upload', views.
    uploadimage, name='uploadimage'), path(
    '<username>/<hive_pk>/<timeline_pk>/images', views.viewimages, name=
    'viewimages'), path(
    '<username>/<hive_pk>/<timeline_pk>/images/<img_pk>', views.viewimage,
    name='viewimage'), path(
    '<username>/<hive_pk>/<timeline_pk>/images/<img_pk>/delete', views.
    deleteimage, name='deleteimage')] + static(settings.STATIC_URL,
    document_root=settings.STATIC_ROOT)

from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
from django.contrib.auth import views as auth_views
from . import views
urlpatterns = [path('<username>/viewhives', views.viewhives, name=
    'viewhives'), path('<username>/createhive', views.createhive, name=
    'createhive'), path('<username>/exportall', views.createhivescsv, name=
    'createhivescsv'), path('<username>/<hive_pk>', views.viewhive, name=
    'viewhive'), path('<username>/<hive_pk>/delete', views.deletehive, name
    ='deletehive'), path('<username>/<hive_pk>/edit', views.edithive, name=
    'edithive'), path('<username>/<hive_pk>/addentry', views.
    addtimelineentry, name='addtimelineentry'), path(
    '<username>/<hive_pk>/export', views.createhivecsv, name=
    'createhivecsv'), path('<username>/<hive_pk>/<timeline_pk>', views.
    viewtimelineentry, name='viewtimelineentry'), path(
    '<username>/<hive_pk>/<timeline_pk>/delete', views.deleteevent, name=
    'deleteevent'), path('<username>/<hive_pk>/<timeline_pk>/edit', views.
    editevent, name='editevent'), path(
    '<username>/<hive_pk>/<data_type>/graphdata', views.graphdata, name=
    'graphdata'), path('<username>/<hive_pk>/<timeline_pk>/upload', views.
    uploadimage, name='uploadimage'), path(
    '<username>/<hive_pk>/<timeline_pk>/images', views.viewimages, name=
    'viewimages'), path(
    '<username>/<hive_pk>/<timeline_pk>/images/<img_pk>', views.viewimage,
    name='viewimage'), path(
    '<username>/<hive_pk>/<timeline_pk>/images/<img_pk>/delete', views.
    deleteimage, name='deleteimage')] + static(settings.STATIC_URL,
    document_root=settings.STATIC_ROOT)

from django.urls import path, include

from django.conf.urls.static import static
from django.conf import settings
from django.contrib.auth import views as auth_views

from . import views


# All url patterns that are used by hive
urlpatterns = [
    path("<username>/viewhives", views.viewhives, name="viewhives"),
    path("<username>/createhive", views.createhive, name="createhive"),
    path("<username>/exportall", views.createhivescsv, name="createhivescsv"),
    path("<username>/<hive_pk>", views.viewhive, name="viewhive"),
    path("<username>/<hive_pk>/delete", views.deletehive, name="deletehive"),
    path("<username>/<hive_pk>/edit", views.edithive, name="edithive"),
    path(
        "<username>/<hive_pk>/addentry", views.addtimelineentry, name="addtimelineentry"
    ),
    path("<username>/<hive_pk>/export", views.createhivecsv, name="createhivecsv"),
    path(
        "<username>/<hive_pk>/<timeline_pk>",
        views.viewtimelineentry,
        name="viewtimelineentry",
    ),
    path(
        "<username>/<hive_pk>/<timeline_pk>/delete",
        views.deleteevent,
        name="deleteevent",
    ),
    path("<username>/<hive_pk>/<timeline_pk>/edit", views.editevent, name="editevent"),
    path(
        "<username>/<hive_pk>/<data_type>/graphdata", views.graphdata, name="graphdata"
    ),
    path(
        "<username>/<hive_pk>/<timeline_pk>/upload",
        views.uploadimage,
        name="uploadimage",
    ),    
    path(
        "<username>/<hive_pk>/<timeline_pk>/images",
        views.viewimages,
        name="viewimages",
    ),   
    path(
        "<username>/<hive_pk>/<timeline_pk>/images/<img_pk>",
        views.viewimage,
        name="viewimage",
    ),   
    path(
        "<username>/<hive_pk>/<timeline_pk>/images/<img_pk>/delete",
        views.deleteimage,
        name="deleteimage",
    ),        
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)