Changes of Installation for Django 1.10 - uw-it-aca/myuw GitHub Wiki

If you have an installation that's older than about October 2016, use this guide to update to your build. If you are making a new build, you can ignore this page.

settings.py

Add the following in the INSTALLED_APPS:

       'compressor',
       'templatetag_handlebars',
       'restclients',
       'django_mobileesp',
       'supporttools',
       'userservice',
       'django_client_logger',
       'myuw',

Change MIDDLEWARE to MIDDLEWARE_CLASSES, and add in MIDDLEWARE_CLASSES:

       'django_mobileesp.middleware.UserAgentDetectionMiddleware',
       'userservice.user.UserServiceMiddleware',

Add in TEMPLATES context_processors:

          'django.template.context_processors.i18n',
          'django.template.context_processors.media',
          'django.template.context_processors.static',
          'django.template.context_processors.tz',
          'django.contrib.messages.context_processors.messages',
          'supporttools.context_processors.supportools_globals',
          'supporttools.context_processors.has_less_compiled'

Add:

          MEDIA_URL = '/media/'
          MEDIA_ROOT = 'media/'
          STATIC_URL = '/static/'
          STATIC_ROOT = 'static/'

project/urls.py

      from django.conf.urls import include, url


      urlpatterns = [
          url(r'^support', include('userservice.urls')),
          url(r'^restclients', include('restclients.urls')),
          url(r'^logging', include('django_client_logger.urls')),
          url(r'^', include('myuw.urls')),
      ]

Create DB:

          python manage.py migrate