mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
Rewrite of Comic lists so that tehy have thumbnails. (#26)
This commit is contained in:
@@ -39,6 +39,7 @@ INSTALLED_APPS = (
|
||||
"comic",
|
||||
"comic_auth",
|
||||
'django_extensions',
|
||||
'imagekit',
|
||||
)
|
||||
|
||||
MIDDLEWARE = [
|
||||
@@ -108,6 +109,11 @@ STATICFILES_DIRS = [
|
||||
|
||||
STATIC_ROOT = os.getenv('STATIC_ROOT', None)
|
||||
|
||||
|
||||
MEDIA_ROOT = os.getenv('MEDIA_ROOT', None)
|
||||
|
||||
MEDIA_URL = '/media/'
|
||||
|
||||
LOGIN_REDIRECT_URL = "/comic/"
|
||||
|
||||
LOGIN_URL = "/login/"
|
||||
|
||||
@@ -16,5 +16,8 @@ server {
|
||||
location /static/ {
|
||||
alias /static/;
|
||||
}
|
||||
location /media/ {
|
||||
alias /media/;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -13,10 +13,10 @@ 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 django.conf import settings
|
||||
|
||||
from django.conf.urls import include, url
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib import admin
|
||||
|
||||
import comic.views
|
||||
import comic_auth.views
|
||||
@@ -28,7 +28,7 @@ urlpatterns = [
|
||||
url(r"^setup/", comic.views.initial_setup),
|
||||
url(r"^comic/", include("comic.urls")),
|
||||
url(r"^admin/", admin.site.urls),
|
||||
# url(r'^silk/', include('silk.urls', namespace='silk'))
|
||||
|
||||
]
|
||||
if settings.SILK_ENABLED:
|
||||
urlpatterns += [url(r'^silk/', include('silk.urls', namespace='silk'))]
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user