title: Default URL django
body: <p>how to configure my site url</p>
  
  <p>MY site URL should be</p>
  
  <p><a href="https://mydomain.com/myapp/" rel="nofollow">https://mydomain.com/myapp/</a>  (Default)</p>
  
  <p>in urls.py</p>
  
  <pre><code>if settings.DEBUG:
      urlpatterns += patterns('',
          (r'^media/(?P&lt;path&gt;.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
          (r'^static/(?P&lt;path&gt;.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
  )
  </code></pre>
  
  <p>in settings.py</p>
  
  <pre><code>DEFAULT_HOST = 'https://mydomain.com/myapp/'
  </code></pre>
  
  <p>if i configure the urls like above its returning 404 .</p>
  
  <p>instead of <a href="https://mydomain.com/myapp/static/" rel="nofollow">https://mydomain.com/myapp/static/</a> or <a href="https://mydomain.com/myapp/media/" rel="nofollow">https://mydomain.com/myapp/media/</a></p>
  
  <p>'^' this will remove /myapp/ from my url .</p>
  
  <p>and make it like</p>
  
  <p><a href="https://mydomain.com/static/" rel="nofollow">https://mydomain.com/static/</a> or <a href="https://mydomain.com/media/" rel="nofollow">https://mydomain.com/media/</a></p>
  
  <p>this url contained project is having different wsgi.py,settings.py,urls.py </p>