forked from BotBotMe/botbot-web
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to django 1.11, upgrade django pipeline, use whitenoise for s…
…tatic Based on LeoVerto's work at #11 thanks Leo! Running in docker means that using whitenoise for static files is easier than serving static files with nginx or other.
- Loading branch information
Showing
18 changed files
with
71 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from django.conf.urls import patterns, url | ||
from django.conf.urls import url | ||
|
||
from . import views | ||
|
||
urlpatterns = patterns('', | ||
urlpatterns = [ | ||
url(r'^manage/$', views.ManageChannel.as_view(), name='manage_channel'), | ||
url(r'^delete/$', views.DeleteChannel.as_view(), name='delete_channel'), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from django.conf.urls import patterns, include | ||
from django.conf.urls import include, url | ||
from django.contrib import admin | ||
|
||
admin.autodiscover() | ||
|
||
urlpatterns = patterns('', | ||
(r'^admin/doc/', include('django.contrib.admindocs.urls')), | ||
(r'^admin/', include(admin.site.urls)), | ||
) | ||
urlpatterns = [ | ||
url(r'^admin/doc/', include('django.contrib.admindocs.urls')), | ||
url(r'^admin/', include(admin.site.urls)), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
from django.conf import settings | ||
from django.conf.urls import patterns, url, include | ||
from django.conf.urls import url, include | ||
from django.shortcuts import render | ||
|
||
from botbot.apps.bots.views import ChannelList | ||
from botbot.apps.preview.views import LandingPage | ||
|
||
channel_patterns = patterns('', | ||
channel_patterns = [ | ||
url(r'', include('botbot.apps.logs.urls')), | ||
) | ||
] | ||
|
||
urlpatterns = patterns('', | ||
(r'^$', LandingPage.as_view()), | ||
url(r'^sitemap\.xml$', include('botbot.apps.sitemap.urls')), | ||
urlpatterns = [ | ||
url(r'^$', LandingPage.as_view()), | ||
url(r'^sitemap\.xml', include('botbot.apps.sitemap.urls')), | ||
|
||
url(r'^(?P<bot_slug>[\-\w\:\.]+(\@[\w]+)?)/(?P<channel_slug>[\-\w\.]+)/', | ||
include(channel_patterns)), | ||
url(r'^(?P<network_slug>[\-\w\.]+)/$', ChannelList.as_view()) | ||
) | ||
] | ||
|
||
if settings.INCLUDE_DJANGO_ADMIN: | ||
from .admin import urlpatterns as admin_urlpatterns | ||
# Prepend the admin urls. | ||
urlpatterns = admin_urlpatterns + urlpatterns | ||
|
||
if settings.DEBUG: | ||
urlpatterns += patterns('django.shortcuts', | ||
url(r'^404/$', 'render', {'template_name': '404.html'}), | ||
url(r'^500/$', 'render', {'template_name': '500.html'}), | ||
) | ||
urlpatterns += [ | ||
url(r'^404/$', lambda r: render(r, template_name='404.html')), | ||
url(r'^500/$', lambda r: render(r, template_name='500.html')), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters