Skip to main content

Not Another Django Blog app!

Project description

django-nadb (Not Another Django Blog app)

django-nadb is a Django blog app. The source repository can be found at https://github.com/earonne/django-nadb/

Installation

Installing django-nadb is as simple as checking out the source and adding it to your project or PYTHONPATH.

Use git, pip or easy_install to check out django-nadb from Github or get a release from PyPI.

1. Download and install the package from the python package index (PyPI):

easy_install django-nadb

or if you prefer pip:

pip install django-nadb

2. Install the latest development version from GitHub. This requires to install git of course:

git clone git://github.com/earonne/django-nadb.git

then install it manually:

cd django-nadb
python setup.py install

Please note that the dev version is not fully tested and may contain bugs.

Usage

1. To install django-nadb just add the package to your INSTALLED_APPS setting:

# settings.py
INSTALLED_APPS = (
    ...
    'nadb',
    'django_markup',
)

# Notice you also need to add django_markup to your INSTALLED_APPS.

2. Run the syncdb command:

$ ./manage.py syncdb

3. Add a line like this in your root URLConf to set up the default URLs for django-nadb:

# urls.py
urlpatterns = patterns('',
    url(r'^blog/', include('nadb.urls')),
)

4. django-nadb supports markup filters (e.g. Markdown, RestructuredText, etc.). Add the following to your settings.py:

# settings.py
NADB_MARKUP_FILTER = 'markdown'

MARKUP_SETTINGS = {
    'markdown': {
        'safe_mode': True,
        'extensions': ['codehilite']
    }
}

5. Create a nadb directory inside your templates directory and add the following templates:

base_nadb.html
post_list.html
post_detail.html
post_archive_year.html
post_archive_month.html
post_archive_day.html
category_list.html
category_detail.html

Project details


Download files

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

Source Distribution

django-nadb-0.1a1.tar.gz (75.0 kB view details)

Uploaded Source

File details

Details for the file django-nadb-0.1a1.tar.gz.

File metadata

  • Download URL: django-nadb-0.1a1.tar.gz
  • Upload date:
  • Size: 75.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-nadb-0.1a1.tar.gz
Algorithm Hash digest
SHA256 bb4f1e44b2dd4ac01bef831630245255f0e0a3b8883e6c6aeaf81485578d5cca
MD5 e174de1c8bc31b12f8310d28cb47d1d3
BLAKE2b-256 f6825ed0903047d6c98194dd936dfe31d37a42ed493aaac1378ecec5685d1fba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page