Commit a5899433 authored by Merret Buurman's avatar Merret Buurman
Browse files

Renamed site and app.

parent 38541a0f
"""handlesite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
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.static import static
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('landingpage.urls')),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
# https://docs.djangoproject.com/en/1.9/howto/static-files/#serving-static-files-during-development
......@@ -4,4 +4,4 @@ from django.apps import AppConfig
class LandingpageConfig(AppConfig):
name = 'landingpage'
name = 'app'
......@@ -4,13 +4,13 @@ LOGGER = logging.getLogger(__name__)
LOGGER.addHandler(logging.NullHandler())
try:
CONFIG = json.loads(open('./landingpage/config.json').read())
CONFIG = json.loads(open('./landingpage/landingpageapp/config.json').read())
except IOError:
LOGGER.info('No config found.')
CONFIG = {}
try:
DEFAULTS = json.loads(open('./landingpage/defaults.json').read())
DEFAULTS = json.loads(open('./landingpage/landingpageapp/defaults.json').read())
except IOError:
msg = 'No default values found.'
LOGGER.error(msg)
......
import xml.etree.ElementTree as ET
from landingpage.config_and_defaults import DEFAULTS
from landingpage.landingpageapp.config_and_defaults import DEFAULTS
import retrieval
###
......
import json
import requests
from landingpage.config_and_defaults import CONFIG, DEFAULTS
from landingpage.landingpageapp.config_and_defaults import CONFIG, DEFAULTS
import logging
LOGGER = logging.getLogger(__name__)
......
from django.template import loader
import xml.etree.ElementTree as ET
import landingpage.handle.cmip6parser as parser
import landingpage.landingpageapp.handle.cmip6parser as parser
#
# API of this module:
......
......@@ -3,7 +3,7 @@ import requests
import json
import xml.etree.ElementTree as ET
import filelevel, datasetlevel
from landingpage.handle import retrieval, cmip6parser
from landingpage.landingpageapp.handle import retrieval, cmip6parser
def get_html_string(request, prefix, suffix):
......
from django.template import loader
import xml.etree.ElementTree as ET
import landingpage.handle.cmip6parser as parser
import landingpage.landingpageapp.handle.cmip6parser as parser
#
# API of this module:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment