Closed alonisser closed 10 years ago
I forked and changed the dependency >=1.5. to work with my 1.6 installed version. but when running I get this error message:
planet.feed: 'site' has a relation with model <class 'django.contrib.sites.models.Site'>, which has either not >been installed or is abstract.
any way around this?
OK added the site.contrib. but other problems now, we'll report back
status of this? otherwise this can be closed
I tested django-planet with Django 1.6 and it was working nicely with some settings changes. This should work:
Make a new virtualenv and activate it: $ virtualenv virt $ source virt/bin/activate
Copy requirements.txt file under django-planet and change Django line to: Django==1.6
And add django-planet to get it from PyPI: django-planet
Install requirements: $ pip install -r requirements.txt
Start a new project: $ django-admin.py startproject test_prj
And edit test_prj/test_prj/settings.py following way:
Add following to INSTALLED_APPS: 'django.contrib.sites', 'planet', 'pagination', 'tagging', 'pinax_theme_bootstrap',
Add following to MIDDLEWARE_CLASSES: 'django.middleware.gzip.GZipMiddleware', 'pagination.middleware.PaginationMiddleware',
Add following template context processors:
TEMPLATE_CONTEXT_PROCESSORS = ( "django.contrib.auth.context_processors.auth", "django.core.context_processors.debug", "django.core.context_processors.media", 'django.core.context_processors.static', "django.core.context_processors.request", "django.core.context_processors.i18n", "django.contrib.messages.context_processors.messages", "planet.context_processors.context" )
Change ROOT_URLCONF to: ROOT_URLCONF = 'planet.urls'
Add following to the end of settings file:
STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.AppDirectoriesFinder', )
SITE_ID = 1 PLANET = {"USER_AGENT": "django-planet/0.1"}
And finally
$ cd test_prj $ python manage.py syncdb $ python manage.py runserver
So, can we close this ^_^ ?
Yes, we can close this.
No module named Planet
(virt)vijay@vijay-Ideapad-Z570:~/workspace/django-planet/test_tamil$ ./manage.py check
Traceback (most recent call last):
File "./manage.py", line 10, in
(virt)vijay@vijay-Ideapad-Z570:~/workspace/django-planet/tamil_project$ python manage.py
Traceback (most recent call last):
File "manage.py", line 8, in
after close my terminal now i run from vijay@vijay-Ideapad-Z570:~/workspace/django-planet/tamil_project$ ... now working fine ..
But in this case i cant able to access admin page ...?
As you know, 1.6 is now in the wild. for some reason when I tried to pip install the project., my django 1.6 got uninstalled and 1.5 installed instead. can this be solved or is there an incompatibility ?