Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] DEFAULT_FILE_STORAGE not set #2076

Open
1 task done
v6 opened this issue Sep 22, 2024 · 0 comments
Open
1 task done

[BUG] DEFAULT_FILE_STORAGE not set #2076

v6 opened this issue Sep 22, 2024 · 0 comments

Comments

@v6
Copy link

v6 commented Sep 22, 2024

Is there an existing issue for this?

  • I have searched the existing Issues

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. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant