Comments (14)
@poeticabdul I ran into this error a few days before. This appears if a model has a foreign key to a user and if there is also a GenericRelation
to an object, which has also a foreign key to a user. Quite confusing, eh? =)
Well, this line throws the error. https://github.com/bitmazk/django-review/blob/master/review/models.py#L56
I will try to fix it the next days.
from django-review.
Allright, investigated. Simply install this app here, add generic_positions
to your INSTALLED_APPS and it won't appear again: https://github.com/bitmazk/django-generic-positions
I posted more information to: django-mptt/django-mptt#305
from django-review.
Please the error is still present despite installing and adding generic_positions to my installed apps.
from django-review.
Can you paste your installed apps settings please?
from django-review.
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'south',
'promo',
'review',
'hvad',
'haystack',
'easy_thumbnails',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.facebook',
'allauth.socialaccount.providers.twitter',
'storages',
'generic_positions',
)
from django-review.
Mhm strange, please add 'user_media',
, too and try again.
from django-review.
don't i need to install user_media?
from django-review.
django-user-media
is installed along with django-review
.
https://github.com/bitmazk/django-review/blob/master/setup.py#L56
from django-review.
this is the error i get now after adding user_media to my installed apps:
ProgrammingError at /admin/review/review/
relation "user_media_usermediaimage" does not exist
LINE 1: ...mb_w", "user_media_usermediaimage"."thumb_h" FROM "user_medi...
from django-review.
Now you need to execute the south migrations for django-user-media
by doing ./manage.py migrate user_media
.
from django-review.
it worked. Thanks so much
from django-review.
Add a line in documentation also to migrate the user_media app. I got this error and after reading the comments got to know that i had to migrate the user_media. Please mention it in documentation.
from django-review.
@sarfrajimpinge Done.
from django-review.
Thanks :)
from django-review.
Related Issues (20)
- render_category_averages breaks on reviews without ratings
- Outdated on Django Packages HOT 3
- Migration error HOT 1
- Approve reviews before they are shown in list of reviews HOT 1
- hvad.descriptors.NoTranslationError When creating a new review HOT 1
- NoReverseMatch error HOT 13
- 'str' object has no attribute '_meta' HOT 10
- ObjectID vs ID ? HOT 1
- Amount of reviews HOT 1
- Subject Field addition HOT 3
- Dot instead of comma HOT 1
- Content-type header is wrong? HOT 2
- TemplateDoesNotExist at ~ HOT 1
- Rest APi
- TypeError: 'class Meta' got invalid attribute(s): base_manager_name HOT 1
- 'Library' object has no attribute 'assignment_tag' error HOT 2
- review modles is missing an on_delete positional argument HOT 1
- Support for Django>=2.0 HOT 1
- Will there be a Django 3.0 support? HOT 3
- how to use it with react UI
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-review.