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)