How do you create a view that returns the next object in a given list?

2010-10-27 Thread tricks...@googlemail.com
I have a view that displays object information when the correct URL is provided however I would like to create a similar view that returns url information from the record that is located next. So in essence take the info from my first view, list/order it in some way preferably by date and return t

Re: django page cms get_absolute_url return an empty strings andURL issues.

2010-10-26 Thread tricks...@googlemail.com
Sorted. The get absolute url had not been set and the ordering of urls was incorrect. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email

django page cms get_absolute_url return an empty strings andURL issues.

2010-10-25 Thread tricks...@googlemail.com
I am having issues with get_absolute_url in my django templates when using django page cms. It returns an empty string and does not link to my required page. I have the following Models, URLs templates and views Models class Body(models.Model): ... url = models.SlugField(unique=True, help_text='

Re: Problems displaying image objects in a Django template using a custom template tag? (coding included)

2010-10-21 Thread tricks...@googlemail.com
Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this gro

Problems displaying image objects in a Django template using a custom template tag? (coding included)

2010-10-20 Thread tricks...@googlemail.com
I have the following code that fails to display object images. But displays normal images fine. My Model class News(models.Model): title--- image = models.ImageField(upload_to='images') body Template tag coding from django import template register = template.Library() from -

Re: Django 1.2.1. admin WYSIWYG editor

2010-09-22 Thread tricks...@googlemail.com
What do you have in your settings.py? Make Sure you have the following configs TINYMCE_JS_URL (default: settings.MEDIA_URL + 'js/tiny_mce/ tiny_mce.js') TINYMCE_JS_ROOT (default: settings.MEDIA_ROOT + 'js/tiny_mce') TINYMCE_DEFAULT_CONFIG (default: {'theme': "simple", 'relative_urls': False})

django tinyMCE is normal text field instead of rich text formatting? a fix please.

2010-09-13 Thread tricks...@googlemail.com
I installed Django tiny mce however i am getting a normal text area in my admin. Can anyone help me to correct this to a rich text area where i can access text formatting? Any help would be greatly appreciated. Here are my settings.py import os PROJECT_DIR = os.path.dirname(__file__) D