title: How can I open Django app page within the domain name, not like domain/app_page_url?
body: <p><strong>Python == 3.6.5</strong></p>
  
  <p><strong>Django == 1.8</strong></p>
  
  <p>Recently purchased domain name, <i><a href="http://www.favourite.uz" rel="nofollow noreferrer">http://www.favourite.uz</a></i>. And placed my Django project to my hosting in cPanel. When I browse domain <i><a href="http://www.favourite.uz" rel="nofollow noreferrer">http://www.favourite.uz</a></i>, it throws to default page of cPanel. But when try <i><a href="http://www.favourite.uz/news" rel="nofollow noreferrer">http://www.favourite.uz/news</a></i> it opens my django app. I wanted to browse this <i><a href="http://www.favourite.uz/news" rel="nofollow noreferrer">http://www.favourite.uz/news</a></i> page <strong>within</strong> the domain name, without <i><a href="/news">/news.</a></i></p>
  
  <p>I placed used server's namespaces in Domain registrator's page. Tried to create another simple project from this tutorial,<a href="https://www.youtube.com/watch?v=ffqMZ5IcmSY" rel="nofollow noreferrer">https://www.youtube.com/watch?v=ffqMZ5IcmSY</a>. But it still opens default page of cPanel.</p>
  
  <p>Main <b>favourite/urls.py</b></p>
  
  <pre><code># from django.urls import path
  from django.conf.urls import include, url
  from django.conf import settings
  from django.conf.urls.static import static
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  from django.views.static import serve
  
  urlpatterns = [
      url(r'^admin/', include(admin.site.urls)),
      url(r'^news/', include('news.urls')),
      url(r'^i18n/', include('django.conf.urls.i18n')),
  ]
  
  if settings.DEBUG is False:
      urlpatterns += [
          url(r'^media/(?P&lt;path&gt;.*)$', serve, {
          'document_root' : settings.MEDIA_ROOT,}),
      ]
  </code></pre>
  
  <p>(news)app url, <b>news/urls.py</b></p>
  
  <pre><code>from . import views
  
  urlpatterns =[
      url(r'^$', views.NewsView.as_view(), name='posts'),
      url(r'^i18n/', include('django.conf.urls.i18n')),
      url(r'^index', views.search, name="search"),
      url(r'^chaining/', include('smart_selects.urls')),
      url(r'^league/(?P&lt;pk&gt;[0-9]+)/$', views.league_detail, name='league_detail'),
  ]
  </code></pre>
  
  <p>settings, <b>favourite/settings.py</b></p>
  
  <pre><code>Django settings for futbik_version_7 project.
  
  Generated by 'django-admin startproject' using Django 2.0.5.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/2.0/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/2.0/ref/settings/
  """
  
  import os
  from django.utils.translation import ugettext_lazy as _
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
  MEDIA_URL = "/media/"
  
  # Quick-start development settings - unsuitable for production
  # See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
  STATIC_URL = '/static/'
  STATIC_ROOT = 'news/static/'
  STATICFILES_DIRS =(
      os.path.join(BASE_DIR,'news/static/images'),
  )
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = 'az=5ur80-1ge@!951w3(bxaqg1zwo1+a#6+*s*dw(sgkywhb3z'
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = False
  
  ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'www.favourite.uz', 'favourite.uz']
  
  
  # Application definition
  
  INSTALLED_APPS = [
      'modeltranslation',
      'news.apps.NewsConfig',
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'django_userforeignkey',
      'simplesearch',
      'smart_selects',
  ]
  
  MIDDLEWARE_CLASSES = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
      'django_userforeignkey.middleware.UserForeignKeyMiddleware',
      'django.middleware.locale.LocaleMiddleware',
  ]
  
  LANGUAGES = (
      ('en', _('Uzbek')),
      ('ru', _('Русский')),
  )
  
  LOCALE_PATHS = (
      os.path.join(BASE_DIR, 'locale'),
  )
  
  # MODELTRANSLATION_DEFAULT_LANGUAGE = 'en'
  # MODELTRANSLATION_TRANSLATION_REGISTRY = 'news.translation'
  
  ROOT_URLCONF = 'futbik_version_7.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [
              # os.path.join(BASE_DIR, 'news/templates')
          ],
          'APP_DIRS': True,
          'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
                  'news.context_processors.add_variable_to_context',
              ],
          },
      },
  ]
  
  TEMPLATE_CONTEXT_PROCESSORS = (
      'django.core.context_processors.i18n',
  )
  
  WSGI_APPLICATION = 'futbik_version_7.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/2.0/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
      }
  }
  
  # SOUTH_DATABASE_ADAPTERS = {
  #     'default': 'south.db.sqlite3'
  # }
  
  # Password validation
  # https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators
  
  AUTH_PASSWORD_VALIDATORS = [
      {
          'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
      },
  ]
  
  
  # Internationalization
  # https://docs.djangoproject.com/en/2.0/topics/i18n/
  
  LANGUAGE_CODE = 'en'
  
  TIME_ZONE = 'Asia/Tashkent'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  USE_DJANGO_JQUERY = False
  
  
  # MODELTRANSLATION_DEBUG = True
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/2.0/howto/static-files/
  
  
  </code></pre>
  
  <p>I really appreciate, if someone encountered such situation and helps me to solve this little problem. <br>
  <i>P.s. I am beginner in Django!</i></p>