from django.urls import path, include

from django.contrib import admin

admin.autodiscover()

import hello.views as hello
import game.views as game
import study.views as study

from django.conf import settings
from django.conf.urls.static import static

# To add a new path, first import the app:
# import blog
#
# Then add the new path:
# path('blog/', blog.urls, name="blog")
#
# Learn more here: https://docs.djangoproject.com/en/2.1/topics/http/urls/

urlpatterns = [
    path("", include('hello.urls'), name="hello"),
    path("game/", include('game.urls'), name="game"),
    path("study/", include('study.urls'), name="study"),
    path('img_process/', include('img_process.urls'), name='img_process'),
    path("uploadapp/", include('uploadapp.urls'), name="uploadapp"),
    path("abstrans/", include('abstrans.urls'), name="abstrans"),
    # 画像アップロード機能は作ってみたけど今の所いらない
    path('markdownx/', include('markdownx.urls')),
    path("db/", hello.db, name="db"),
    path("admin/", admin.site.urls),
]

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
