matagus / django-planet

:globe_with_meridians: A django planet and feeds (RSS and ATOM) aggregator application for Django
https://django-planet.fly.dev/
Other
174 stars 56 forks source link

problem with django 1.6 #22

Closed alonisser closed 10 years ago

alonisser commented 10 years ago

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 ?

alonisser commented 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?

alonisser commented 10 years ago

OK added the site.contrib. but other problems now, we'll report back

angvp commented 10 years ago

status of this? otherwise this can be closed

eluttine commented 10 years ago

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

angvp commented 10 years ago

So, can we close this ^_^ ?

eluttine commented 10 years ago

Yes, we can close this.

rajasimon commented 10 years ago

No module named Planet

rajasimon commented 10 years ago

(virt)vijay@vijay-Ideapad-Z570:~/workspace/django-planet/test_tamil$ ./manage.py check Traceback (most recent call last): File "./manage.py", line 10, in execute_from_command_line(sys.argv) File "/home/vijay/workspace/django-planet/virt/local/lib/python2.7/site-packages/django/core/management/init.py", line 399, in execute_from_command_line utility.execute() File "/home/vijay/workspace/django-planet/virt/local/lib/python2.7/site-packages/django/core/management/init.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/vijay/workspace/django-planet/virt/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv self.execute(_args, *_options.dict) File "/home/vijay/workspace/django-planet/virt/local/lib/python2.7/site-packages/django/core/management/base.py", line 280, in execute translation.activate('en-us') File "/home/vijay/workspace/django-planet/virt/local/lib/python2.7/site-packages/django/utils/translation/init.py", line 130, in activate return _trans.activate(language) File "/home/vijay/workspace/django-planet/virt/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 188, in activate _active.value = translation(language) File "/home/vijay/workspace/django-planet/virt/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 177, in translation default_translation = _fetch(settings.LANGUAGE_CODE) File "/home/vijay/workspace/django-planet/virt/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 159, in _fetch app = import_module(appname) File "/home/vijay/workspace/django-planet/virt/local/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module import(name) ImportError: No module named planet

rajasimon commented 10 years ago

(virt)vijay@vijay-Ideapad-Z570:~/workspace/django-planet/tamil_project$ python manage.py Traceback (most recent call last): File "manage.py", line 8, in from django.core.management import execute_from_command_line ImportError: No module named django.core.management (virt)vijay@vijay-Ideapad-Z570:~/workspace/django-planet/tamil_project$

rajasimon commented 10 years ago

after close my terminal now i run from vijay@vijay-Ideapad-Z570:~/workspace/django-planet/tamil_project$ ... now working fine ..

rajasimon commented 10 years ago

But in this case i cant able to access admin page ...?