Comments (2)
I simply changed
-from middleware import threadlocals to
+from .middleware import threadlocals
It works.
from django-audiofield.
Yup, same problem here when running python manage.py syncdb --migrate
(with south installed) I get the following traceback
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/<project_root>/env/lib/python3.3/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/<project_root>/env/lib/python3.3/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/<project_root>/env/lib/python3.3/site-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/<project_root>/env/lib/python3.3/site-packages/django/core/management/base.py", line 284, in execute
self.validate()
File "/<project_root>/env/lib/python3.3/site-packages/django/core/management/base.py", line 310, in validate
num_errors = get_validation_errors(s, app)
File "/<project_root>/env/lib/python3.3/site-packages/django/core/management/validation.py", line 34, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/<project_root>/env/lib/python3.3/site-packages/django/db/models/loading.py", line 196, in get_app_errors
self._populate()
File "/<project_root>/env/lib/python3.3/site-packages/django/db/models/loading.py", line 78, in _populate
self.load_app(app_name)
File "/<project_root>/env/lib/python3.3/site-packages/django/db/models/loading.py", line 99, in load_app
models = import_module('%s.models' % app_name)
File "/usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1586, in _gcd_import
File "<frozen importlib._bootstrap>", line 1567, in _find_and_load
File "<frozen importlib._bootstrap>", line 1534, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
File "<frozen importlib._bootstrap>", line 1024, in load_module
File "<frozen importlib._bootstrap>", line 1005, in load_module
File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
File "<frozen importlib._bootstrap>", line 870, in _load_module
File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
File "/<project_root>/env/lib/python3.3/site-packages/audiofield/models.py", line 19, in <module>
from audiofield.fields import AudioField
File "/<project_root>/env/lib/python3.3/site-packages/audiofield/fields.py", line 20, in <module>
from middleware import threadlocals
ImportError: No module named 'middleware'
Sorry - should have said, this is python 3.3, django 1.6 and latest django-audiofield installed with pip.
from django-audiofield.
Related Issues (20)
- Integrate with pydub
- 404 Failed to load on Admin HOT 3
- player is not shown on admin HOT 1
- I have debugs messages down the admin HOT 1
- NotImplementedError: This backend doesn't support absolute paths. HOT 1
- Converted audio file isn't replaced with the original one HOT 1
- Allow for tag metadata in files/editing from within Django HOT 1
- Display Bar UI in-place
- Virus detected through antivirus? HOT 2
- Using with Django 1.11 - audiofield middleware is no longer compatible HOT 4
- How to perform custom audio manipulation using pysox or sox
- [WinError 2] The system cannot find the file specified when save audio field HOT 2
- AudioField not working with Django 2.1 HOT 13
- fix error please calery
- How do I get the metadata of audio file? HOT 2
- Not find audio after upload
- ModuleNotFoundError: No module named 'audiofieldspeech'
- The permission codenamed 'view_audiofile' clashes with a builtin permission for model 'audiofield.AudioFile' HOT 2
- Hi All HOT 1
- Install error: error in anyjson setup command: use_2to3 is invalid. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-audiofield.