Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango. Mezzanine new project not importing all files
    text
    copied!<p>I wanted to start playing around with Django again (I'm not an expert in Python/Django, but I can make nice things work tho). I used Mezzanine once just to see how it worked. The 'mezzanine-project myproject' command worked like a charm as I had a nice small app running quickly. So, today I downloaded the new Mezzanine 1.3 along with Django 1.4.3 and all its dependencies (pillow, pytz, html5lib, etc) and tried to create another project so I could now work on it in a more consistent manner for personal purposes. </p> <p>For my surprise, when I ran the server, I got lots of 404 errors pointing to missing /static/ files. Also, after creating the database (with <code>manage.py createdb</code> command), the only thing created was the static folder containing only the pictures of the predefined gallery that come along with Mezzanine. Also, there is no Log in or signup buttons as well.</p> <p>I've tried making a clean install of all Python and its site-packages with the same result. I also tried copying/pasting the folders containing missing files from the /site-packages/mezzanine folder into my project, but the result was just reducing the number of 404 messages. </p> <p>I've been doing an extensive research on this issue (with no luck but maybe because of the release being recent?) and even trying to contact someone on the Mezzanine IRC channel with no success.</p> <p>I hope I'm not missing something silly. Do I have to change anything (note that I'm ok with the old mezzanine default settings) in my <code>settings.py</code> or in a specific file before running <code>manage.py createdb</code> command?</p> <p>For the record: before running <code>createdb</code>, The only thing I edited was <code>settings.py</code> and changed the database parameters to make it work with my MySQL Server and commenting the local_settings configuration as I do not need it. </p> <p>Some parameters that could be of help: </p> <p><code>PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))</code></p> <p><code>STATIC_URL = '/static/'</code></p> <p><code>STATIC_ROOT = os.path.join(PROJECT_ROOT, STATIC_URL.strip("/"))</code></p>
 

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