Code Monkey home page Code Monkey logo

Comments (4)

asfaltboy avatar asfaltboy commented on August 26, 2024

Hi @gone , thank you for reporting the issue. I have to admit I have not tried using django-advanced-filters with a custom STATICFILES_STORAGE class.

Can you provide a traceback for the error you experience? Also it would help to know the version of Django and django-advanced filters you're using, and which file storage engine you use; so that the issue can be reproduced.

from django-advanced-filters.

metamatik avatar metamatik commented on August 26, 2024

Hi!

First of all, thank you for your work on this app, it is much appreciated :)

I apologize for barging in, but I think my team may be dealing with the same issue right now.

We just added your app to our project, which is hosted on Heroku, and which uses, as recommended, WhiteNoise for static files management.

The software package versions are as follows:

Django==1.11.7
django-advanced-filters==1.0.6

When we try to deploy that branch on a new Heroku test instance, collectstatic fails with the following traceback:

remote: -----> $ python manage.py collectstatic --noinput
remote:        INFO 2017-12-12 14:20:50,045 [apps] Mailjet PRODUCTION_MODE is disabled: only emails with ADMINS as recipients will be sent.
remote:        Traceback (most recent call last):
remote:          File "manage.py", line 21, in <module>
remote:            execute_from_command_line(sys.argv)
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
remote:            utility.execute()
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 338, in execute
remote:            django.setup()
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/__init__.py", line 27, in setup
remote:            apps.populate(settings.INSTALLED_APPS)
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/apps/registry.py", line 116, in populate
remote:            app_config.ready()
remote:          File "/tmp/build_fdefc15dce78bea7bdd5352049add3a7/bureauxlocaux/apps/dashboards/apps.py", line 21, in ready
remote:            admin.autodiscover()
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/admin/__init__.py", line 26, in autodiscover
remote:            autodiscover_modules('admin', register_to=site)
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/utils/module_loading.py", line 50, in autodiscover_modules
remote:            import_module('%s.%s' % (app_config.name, module_to_search))
remote:          File "/app/.heroku/python/lib/python3.6/importlib/__init__.py", line 126, in import_module
remote:            return _bootstrap._gcd_import(name[level:], package, level)
remote:          File "<frozen importlib._bootstrap>", line 978, in _gcd_import
remote:          File "<frozen importlib._bootstrap>", line 961, in _find_and_load
remote:          File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
remote:          File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
remote:          File "<frozen importlib._bootstrap_external>", line 678, in exec_module
remote:          File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/advanced_filters/admin.py", line 15, in <module>
remote:            from .forms import AdvancedFilterForm
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/advanced_filters/forms.py", line 248, in <module>
remote:            class AdvancedFilterForm(CleanWhiteSpacesMixin, forms.ModelForm):
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/advanced_filters/forms.py", line 254, in AdvancedFilterForm
remote:            class Media:
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/advanced_filters/forms.py", line 256, in Media
remote:            ('vendor/jquery/' if USE_VENDOR_DIR else '')),
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/templatetags/static.py", line 166, in static
remote:            return StaticNode.handle_simple(path)
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/templatetags/static.py", line 117, in handle_simple
remote:            return staticfiles_storage.url(path)
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/storage.py", line 162, in url
remote:            return self._url(self.stored_name, name, force)
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/storage.py", line 141, in _url
remote:            hashed_name = hashed_name_func(*args)
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/storage.py", line 432, in stored_name
remote:            raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)
remote:        ValueError: Missing staticfiles manifest entry for 'admin/js/vendor/jquery/jquery.min.js'

Hope that helps, thanks in advance ^^

(PS: flagging @CedricMichaud here so he gets notifications for further messages on this topic)

from django-advanced-filters.

metamatik avatar metamatik commented on August 26, 2024

Just opened a PR for an empirical fix to this issue.

@gone, if you still experience this problem, feel free to try this fix :)

from django-advanced-filters.

asfaltboy avatar asfaltboy commented on August 26, 2024

I'm going to close this for now as @metamatik's fix should resolve this IIRC. Please feel free to reopen if not fixed.

from django-advanced-filters.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.