From b619a2b57a6c9e5321de7e5ea6a45c5c2cf7c1c6 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 12 Jun 2015 21:45:33 +0200 Subject: [PATCH] mount djangocms on / again - found working nginx config Signed-off-by: Nico Schottelius --- DEPLOY.rst | 12 ++++++++++++ dynamicweb/urls.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/DEPLOY.rst b/DEPLOY.rst index 70c4cae2..ab5e06e9 100644 --- a/DEPLOY.rst +++ b/DEPLOY.rst @@ -62,3 +62,15 @@ configure the values for the ssh host, user, port and target directory. There's an example for the nginx proxy in configs/nginx.proxy.conf. For the stating server one can just copy configs/nginx.proxy.conf -> /etc/nginx/conf.d/ungleich.proxy.conf. Remember to comment/delete/change the configuration /etc/nginx/sites-enabled/default. + +Other stuff (unsorted): + + python manage.py makemigrations + + + - restart + - should have sudo! + /etc/init.d/uwsgi restart + + - staticfiles: + python manage.py collectstatic diff --git a/dynamicweb/urls.py b/dynamicweb/urls.py index f941f063..7bafdf28 100644 --- a/dynamicweb/urls.py +++ b/dynamicweb/urls.py @@ -10,7 +10,7 @@ urlpatterns = [ namespace="digitalglarus")), url(r'^railshosting/', include('railshosting.urls', namespace="railshosting")), - url(r'^cms/', include('cms.urls')), + url(r'^', include('cms.urls')), url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)