stephenmcd / mezzanine

CMS framework for Django
http://mezzanine.jupo.org
BSD 2-Clause "Simplified" License
4.76k stars 1.65k forks source link

[BUG] DEFAULT_FILE_STORAGE not set #2076

Open v6 opened 1 month ago

v6 commented 1 month ago

Is there an existing issue for this?

Current Behavior

When I install Mezzanine using pip and follow the docs, I consistently get the following error:

mezzt/lib/python3.10/site-packages/django/conf/init.py", line 83, in getattr val = getattr(_wrapped, name) AttributeError: 'Settings' object has no attribute 'DEFAULT_FILE_STORAGE'

It's worked around by the following:

echo "DEFAULT_FILE_STORAGE='FileSystemStorage'" >> project_myblog0/settings.py

Then I rerun the commands from the docs.

Expected Behavior

The documentation should reflect the actual usage, and either there should already be a value preset for DEFAULT_FILE_STORAGE, or it should be listed as a prerequisite in the documentation.

Steps To Reproduce

Follow the docs here: https://mezzanine.readthedocs.io/en/latest/overview.html#installation

pip install mezzanine mezzanine-project project_name cd project_name python manage.py createdb --noinput python manage.py runserver

Environment

- Operating System: DISTRIB_DESCRIPTION="Linux Mint 21.3 Virginia"
- Python version: Python 3.10.12
- Django version:
- Database engine and version:
- Mezzanine version:

Report from when I worked around the issue: 

    .p'                `q.
    .d'                   `b.
   .d'                     `b.   * Mezzanine 6.0.0
   ::                       ::   * Django 5.1.1
  ::    M E Z Z A N I N E    ::  * Python 3.10.12
   ::                       ::   * SQLite 3.37.2
   `p.                     .q'   * Linux 5.15.0-116-generic
    `p.                   .q'


### Anything else?

Any advice on how to sling a basic blog or something up with this to use as a starting point would help me out, but I guess that the mailing list is likely better for that.

If this is a matter of the docs on here being ahead of the code, too, that's easy to fix.

https://mezzanine.readthedocs.io/en/latest/overview.html#installation says that its latest version is 4.3.1, so if the docs need some TLC I'm happy to contribute a few extra lines here and there.