title: Failed load PDF from file DJANGO using embed tag
body: <p>Im trying to load a PDF</p>
  
  <p>My .html</p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-lg-12"&gt;
              &lt;embed src="{{ documento.adjunto.url }}" type="application/pdf" width="100%" height="600px" /&gt;
          &lt;/div&gt;&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Where documento.adjunto its the url where the document its saved (in my case  "curriculums/CV_2017.pdf")</p>
  
  <p>It throws me Failed to load resourse: 404 not found <a href="http://127.0.0.1:8000/INTRANET/uploads/curriculums/CV_2017.pdf" rel="nofollow noreferrer">http://127.0.0.1:8000/INTRANET/uploads/curriculums/CV_2017.pdf</a></p>
  
  <p>But there is where the PDF is saved</p>
  
  <p>Model:</p>
  
  <pre><code>UPLOAD_CVS = "curriculums/"
  class Curriculum(models.Model):
      rut_candidato = models.ForeignKey(Candidato, on_delete=models.CASCADE)
      adjunto = models.FileField(upload_to=UPLOAD_CVS)
      fecha_ingreso_cv = models.DateField(_("Date"), auto_now_add=True)
  
      def get_ultima_actualizacion(self):
          actual = datetime.now().date()
          return int(round((actual - self.fecha_ingreso_cv).days / 365,0))
  
      def get_cv_name(self):
          return 
         "CV_"+self.rut_candidato.nombre+"_"+self.rut_candidato.apellido+"_"+ str(self.fecha_ingreso_cv)
  </code></pre>
  
  <p>Settings.py: </p>
  
  <pre><code>import os
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  DEBUG = True
  ALLOWED_HOSTS = []
  
  
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'INTRANET.apps.IntranetConfig',
      'localflavor',
  ]
  
  MIDDLEWARE = [
      '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',
  ]
  
  ROOT_URLCONF = 'etalentNET.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': ['./templates',],
          'APP_DIRS': True,
          'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.media',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
              ],
          },
      },
  ]
  
  WSGI_APPLICATION = 'etalentNET.wsgi.application'
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
      }
  }
  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',
      },
  ]
  LANGUAGE_CODE = 'en-us'
  
  #Cambiar a chile
  TIME_ZONE = 'Chile/Continental'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  MEDIA_URL = '/INTRANET/uploads/'
  MEDIA_ROOT = os.path.join(BASE_DIR, 'INTRANET/uploads')
  STATIC_URL = '/static/'
  
  # Por ahora, mientras no se configure envio email https://docs.djangoproject.com/en/2.0/topics/email/
  EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  
  # Redirect to home URL after login (Default redirects to /accounts/profile/)
  LOGIN_REDIRECT_URL = '/'
  </code></pre>