Skip to main content

Django app to build a planet, RSS/Atom feeds aggregator.

Project description


Changing your

Modifiy your projects ```` file following the next steps:

1. Check your ``INSTALLED_APPS``:

.. code-block:: python

# django required contrib apps
# 3rd-party required apps:
# and finally:

2. Configure your database. Here is an example using mysql:

.. code-block:: python

'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'planet', # Or path to database file if using sqlite3.
'USER': '<myuser>', # Not used with sqlite3.
'PASSWORD': '<mypass>', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.

3. Choose a site id:

.. code-block:: python


4. For Django 1.8 include the following context processors:

.. code-block:: python

'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
'APP_DIRS': True,
'context_processors': [

If you're still using Django 1.6.x or 1.7.x, then set `TEMPLATE_CONTEXT_PROCESSORS`
this way:

.. code-block:: python


5. Check your middlewares to include:

.. code-block:: python


Please do not forget ``pagination.middleware.PaginationMiddleware`` middleware!

5. Add planet configuration variables:

.. code-block:: python

"USER_AGENT": "My Planet/1.0",

6. Properly configure your static files root directory:

.. code-block:: python

STATIC_URL = '/static/'

7. Only for Django 1.6.x or 1.7.x set your projects templates root directory:

.. code-block:: python

# other paths...

and your template loaders:

.. code-block:: python

# some other template loaders here...

8. Finally in your project's templates directory create a ``site_base.html``
template if you don't already have one:

.. code-block:: html

{% extends "base.html" %}

9. Optionally, modify cookie names so you don't have login conflicts with other

.. code-block:: python

LANGUAGE_COOKIE_NAME = "myplanetlng"
SESSION_COOKIE_NAME = "myplanetid"

Congratulations! Your settings are complete. Now you'll need to change other
files in order to get a running project.

Enable planet urls

1. Add the planet urls include to your project's ```` (remember to
also include admin urls so you can use the admin to manage your planet!):

.. code-block:: python

from django.conf.urls import patterns, include, url

from django.contrib import admin

urlpatterns = patterns('',
url(r'^', include('planet.urls')),
url(r'^admin/', include(,
# ... other url bits...

Syncdb and add some feeds!

1. Then create the database structure::

./ syncdb

2. Add some feeds::

python planet_add_feed
python planet_add_feed

3. And surely you'll want to add a cron entry to periodically update them all::

30 * * * * python planet_update_all_feeds

This attempts to pull in new posts every 30 minutes.

4. Now you're done. Just run::

./ runserver

and browse your planet at http://localhost:8000/ in your favorite browser!

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-planet, version 0.10.1
Filename, size File type Python version Upload date Hashes
Filename, size django-planet-0.10.1.tar.gz (45.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page