Note that there are some explanatory texts on larger screens.

plurals
  1. POgoogle app engine not loading admin static media files
    primarykey
    data
    text
    <p>I am new to django. I am using Google App-engine and Google CloudSQL to serve a django1.2 project. I've been following the tutorial <a href="https://docs.djangoproject.com/en/1.2/intro/tutorial02/" rel="nofollow">here</a> and have hit a snag.</p> <p>I enabled the admin back end in my settings.py, but when I go to <a href="http://www.examplesite.com/admin/" rel="nofollow">http://www.examplesite.com/admin/</a> the css files aren't found. </p> <p>The admin html page loads fine, but the static files give a 404.</p> <p>Here's my app.yml:</p> <pre><code>application: myapp version: 1 runtime: python27 api_version: 1 threadsafe: true libraries: - name: django version: "1.2" builtins: - django_wsgi: on </code></pre> <p>I left these as default in settings.py:</p> <pre><code># Absolute filesystem path to the directory that will hold user-uploaded files. # Example: "/home/media/media.lawrence.com/" MEDIA_ROOT = '' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/" MEDIA_URL = '' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. # Examples: "http://foo.com/media/", "/media/". ADMIN_MEDIA_PREFIX = '/media/' </code></pre> <p>I know the files are located at google_appengine/lib/django_1_2/django/contrib/admin/media/</p> <p>Do I need to copy those static resources into my project directory somewhere? Or do I have a setting wrong?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload