still... I just had the same error message and eventually solved it by
changing the order of my INSTALLED_APPS. So maybe you have slightly
different settings on your local and live servers, and the apps are
ordered differently on each?
For example if I did this:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.comments',
'django.contrib.admin',
'django.contrib.markup',
'django.contrib.flatpages',
'taggit',
'myproject.weblog',
'myproject.aggregator',
'myproject.comments', # My custom comment app
)
then I got the error. But if I did this:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.comments',
'django.contrib.admin',
'django.contrib.markup',
'django.contrib.flatpages',
'taggit',
'myproject.comments', # My custom comment app
'myproject.weblog',
'myproject.aggregator',
)
(ie, move 'myproject.comments', my custom comments app, further up)
then it worked fine. It just seems to need to be above
'myproject.weblog', so maybe it's some dependency in my code I don't
fully understand. Anyway, hope that helps.
On Thu, Aug 26, 2010 at 1:54 PM, Groady <willdady@gmail.com> wrote:
> I'm having an issue with setting up a Django website which uses the
> Django comments framework on my server. The site runs fine when run
> locally (using manage.py runserver) but when pushed live I'm getting
> the error:
>
> ImproperlyConfigured at /
> The COMMENTS_APP setting refers to a non-existing package.
>
> My server is an apache/mod_wsgi setup. My site contains 2 applications
> called weblog and weblog_comments. I've appended my site's path and
> it's parent directories to my django.wsgi file as per the guide
> located here: http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
> I can comment out the COMMENTS_APP line from my settings.py and the
> site runs fine so I know site is on the python path correctly.
>
> My custom comment model is called WeblogComment and extends the
> default Comment model. It only extends this to add methods to the
> model, it doesn't change Comment model fields thus It has proxy=True
> in it's Meta class.
>
> Any advice would be great.
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment