Guilherme Gondim avatar Guilherme Gondim committed 6adb290

remove deprecated documentation

Comments (0)

Files changed (1)

 
 Project page
     https://bitbucket.org/semente/django-diario
+Documentation
+    TODO
 Translations
     https://www.transifex.net/projects/p/django-diario/
 
 .. _`Django`: http://www.djangoproject.com
 
 
-Installing & Setup
-==================
-
-TODO
-
-Extending Entry model
----------------------
-
-You might want add a field (or remove, override and so on) to Diário's Entry
-model. Follows a step-by-step how you can add a category support to your
-entries to you figure out how do similar things:
-
-1. Create a app named ``mydiary`` (or whatever you want);
-
-2. In its ``models.py``, write::
-
-  from django.db import models
-  from django.utils.translation import ugettext_lazy as _
-
-  from diario.models import BaseEntry
-
-
-  class Category(models.Model):
-      name = models.CharField(_('name'), max_length=64)
-
-      class Meta:
-          app_label = 'diario'
-          verbose_name = _('category')
-          verbose_name_plural = _('categories')
-
-
-      def __unicode__(self):
-          return unicode(self.name)
-
-
-  class Entry(BaseEntry):
-      category = models.ManyToManyField(
-          'diario.Category',
-          verbose_name=_('category'),
-          related_name='entries'
-      )
-
-(If you don't want inherit from BaseEntry, be sure you model is abstract.)
-
-3. You might use ``django.contrib.admin``, so the app's ``admin.py`` must
-   be customized to show the category field::
-
-  from django.contrib import admin
-  from django.utils.translation import ugettext_lazy as _
-
-  from diario.admin import EntryAdmin
-  from diario.models import Entry
-  from mydiary.models import Category
-
-
-  class CategoryAdmin(admin.ModelAdmin):
-      list_display  = ('id', 'name')
-
-
-  class CustomEntryAdmin(EntryAdmin):
-      fieldsets = (
-          (None, {
-              'fields': ('title', 'slug', 'body', 'category')
-          }),
-          (_('Status'), {
-              'fields': ('visible', 'publish_on', 'pub_date')
-          }),
-          (_('Discussion'), {
-              'fields': ('enable_comments',)
-          }),
-      )
-    list_display  = ('title', 'pub_date', 'author', 'visible',
-                     'enable_comments', 'category')
-    list_filter   = ('visible', 'publish_on', 'enable_comments', 'pub_date',
-                     'category')
-
-
-  admin.site.register(Category, CategoryAdmin)
-  admin.site.unregister(Entry)
-  admin.site.register(Entry, CustomEntryAdmin)
-
-4. Now just add ``mydiary`` to your ``INSTALLED_APPS`` setting and set up
-   ``DIARIO_ENTRY_CLASS`` also in ``settings.py`` as follows::
-
-  DIARIO_ENTRY_CLASS = 'mydiary.models.Entry'
-
-5. Then just run ``syncdb`` and your are done... unless you are using `South`.
-   For `South` users, this setting will be useful::
-
-  SOUTH_MIGRATION_MODULES = {
-      'diario': 'mydiary.migrations',
-  }
-
-
-
-
-
 License
 =======
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.