mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
modifications on the docs and version bump
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@50 cfb8ba98-e953-0410-9cff-959ffddf5974 committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974> --HG-- extra : convert_revision : 423a7f908aa2f6b9a3e9c00c57a946fd40047c7f
This commit is contained in:
parent
56c4701737
commit
b9fd0c4466
2 changed files with 34 additions and 33 deletions
62
README.rst
62
README.rst
|
|
@ -12,34 +12,34 @@ How to use it in your own Django application
|
|||
1. Follow the instructions in the INSTALL file
|
||||
2. Edit the settings.py of your Django project:
|
||||
|
||||
Add ``dbtemplates`` to the ``INSTALLED_APPS`` of your django project
|
||||
|
||||
Check if ``django.contrib.sites`` and ``django.contrib.admin`` are in
|
||||
``INSTALLED_APPS`` and add if necessary.
|
||||
|
||||
It should look something like this::
|
||||
|
||||
INSTALLED_APPS = (
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.sites',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.flatpages',
|
||||
'dbtemplates',
|
||||
'myapp.blog',
|
||||
)
|
||||
|
||||
Add ``dbtemplates.loader.load_template_source`` to the
|
||||
``TEMPLATE_LOADERS`` list in the settings.py of your Django project
|
||||
|
||||
It should look something like this::
|
||||
|
||||
TEMPLATE_LOADERS = (
|
||||
'django.template.loaders.filesystem.load_template_source',
|
||||
'django.template.loaders.app_directories.load_template_source',
|
||||
'dbtemplates.loader.load_template_source',
|
||||
)
|
||||
Add ``dbtemplates`` to the ``INSTALLED_APPS`` of your django project
|
||||
|
||||
Check if ``django.contrib.sites`` and ``django.contrib.admin`` are in
|
||||
``INSTALLED_APPS`` and add if necessary.
|
||||
|
||||
It should look something like this::
|
||||
|
||||
INSTALLED_APPS = (
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.sites',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.flatpages',
|
||||
'dbtemplates',
|
||||
'myapp.blog',
|
||||
)
|
||||
|
||||
Add ``dbtemplates.loader.load_template_source`` to the
|
||||
``TEMPLATE_LOADERS`` list in the settings.py of your Django project
|
||||
|
||||
It should look something like this::
|
||||
|
||||
TEMPLATE_LOADERS = (
|
||||
'django.template.loaders.filesystem.load_template_source',
|
||||
'django.template.loaders.app_directories.load_template_source',
|
||||
'dbtemplates.loader.load_template_source',
|
||||
)
|
||||
|
||||
3. Sync your database via shell (hint: "./manage.py syncdb" within project dir)
|
||||
4. Restart your Django server
|
||||
|
|
@ -47,9 +47,9 @@ How to use it in your own Django application
|
|||
with filename like identifiers, for example "blog/entry_list.html"
|
||||
6. Use it with ``Flatpages``, ``Generic views`` and your own custom views
|
||||
|
||||
What? Hm, doesn't work here. || Aaah nice, BUT...
|
||||
=================================================
|
||||
Support
|
||||
=======
|
||||
|
||||
Please leave your questions and messages on the designated Google Code site:
|
||||
|
||||
http://code.google.com/p/django-databasetemplateloader/
|
||||
http://code.google.com/p/django-databasetemplateloader/
|
||||
|
|
|
|||
5
setup.py
5
setup.py
|
|
@ -1,9 +1,10 @@
|
|||
from distutils.core import setup
|
||||
|
||||
setup(
|
||||
name='dbtemplates',
|
||||
version='0.4.5',
|
||||
name='django-dbtemplates',
|
||||
version='0.4.6',
|
||||
description='Template loader for database stored templates',
|
||||
long_description=open('README.rst').read(),
|
||||
author='Jannis Leidel',
|
||||
author_email='jannis@leidel.info',
|
||||
url='http://code.google.com/p/django-databasetemplateloader/',
|
||||
|
|
|
|||
Loading…
Reference in a new issue