Comments (2)
you need a django with vesion 2.0.2
from django-jquery-file-upload.
this seems a bug from django though:
Traceback (most recent call last): File "/home/jingpeng/workspace/django-jquery-file-upload/jwu/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper fn(*args, **kwargs) File "/home/jingpeng/workspace/django-jquery-file-upload/jwu/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run autoreload.raise_last_exception() File "/home/jingpeng/workspace/django-jquery-file-upload/jwu/lib/python3.6/site-packages/django/utils/autoreload.py", line 248, in raise_last_exception raise _exception[1] File "/home/jingpeng/workspace/django-jquery-file-upload/jwu/lib/python3.6/site-packages/django/core/management/__init__.py", line 337, in execute autoreload.check_errors(django.setup)() File "/home/jingpeng/workspace/django-jquery-file-upload/jwu/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper fn(*args, **kwargs) File "/home/jingpeng/workspace/django-jquery-file-upload/jwu/lib/python3.6/site-packages/django/__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/home/jingpeng/workspace/django-jquery-file-upload/jwu/lib/python3.6/site-packages/django/apps/registry.py", line 112, in populate app_config.import_models() File "/home/jingpeng/workspace/django-jquery-file-upload/jwu/lib/python3.6/site-packages/django/apps/config.py", line 198, in import_models self.models_module = import_module(models_module_name) File "/home/jingpeng/workspace/django-jquery-file-upload/jwu/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/jingpeng/workspace/django-jquery-file-upload/fileupload/models.py", line 5, in <module> class Picture(models.Model): File "/home/jingpeng/workspace/django-jquery-file-upload/fileupload/models.py", line 18, in Picture @models.permalink AttributeError: module 'django.db.models' has no attribute 'permalink'
If you use Django >= 2.0.0 you can't use @model.permalink. You should use like that:
def get_absolute_url(self):
return reverse('upload-new')
from django-jquery-file-upload.
Related Issues (20)
- Django >1.6 Support HOT 3
- Problem with User Field
- Why this happen on webpage? (showing source code) thanks! HOT 4
- no such table: fileupload_picture HOT 2
- Problem with ForeignKey
- Admin integration HOT 1
- How to add support for audio files? HOT 1
- csrf.js and cookie.js HOT 1
- on page for uploads: /upload/new edit so it only lists images for a service. HOT 1
- bug: cookies working offline but not online HOT 1
- no pagenation,better to move the upload file area to top div HOT 1
- Django version in requirements does not match HOT 4
- Getting SyntaxError SyntaxError: Unexpected token < in JSON at position 0 HOT 4
- problem with reverse() in deleteUrl HOT 1
- Broken link demo buttons
- internal server error HOT 1
- Listing Photos according to my Model with id of an object HOT 1
- chunked upload
- Quick explanation of interface with models
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-jquery-file-upload.