icle_context_rendered(self):
> t = templates.from_string(self.article_context)
> return t.render({'info':self};
>
> And in the template use info.article_context_rendered. Play with __dict__
> for more fun.
>
> On Thu, Feb 18, 2010 at 11:45 PM, Stephan
Hi,
I use in the Admin interface the tinymce editor. It is possible to enter some
template code in the editor which is displayed in the template?
Example:
the view:
def client_info(request):
info = request.META
content = Article.objects.all()
template =
Am Freitag, 27. März 2009 21:05:09 schrieb Karen Tracey:
> On Fri, Mar 27, 2009 at 9:44 AM, Stephan John <em...@stephanjohn.de> wrote:
>
> Your calls to admin.site.register should not be in your models.py file.
> They should be in a file named admin.py and a call to admin.auto
Am Freitag, 27. März 2009 14:43:08 schrieb Joshua Partogi:
> bel = forms.ChoiceField(choices=({'one':'one','two':'two'}) )
it must be tuples:
bel = forms.ChoiceField(choices=(('one', 'one'), ('two', 'two' ) )
--~--~-~--~~~---~--~~
You received this message
Am Freitag, 27. März 2009 14:28:28 schrieb Karen Tracey:
> On Fri, Mar 27, 2009 at 9:19 AM, Stephan John <em...@stephanjohn.de> wrote:
> > I registered the models with:
> > admin.site.register(Beitrag, BeitragAdmin)
> > admin.site.register(Container, ContainerAdmin)
>
Am Freitag, 27. März 2009 14:01:37 schrieb Karen Tracey:
> On Fri, Mar 27, 2009 at 8:10 AM, Stephan John <em...@stephanjohn.de> wrote:
> > Hi all,
> >
> > I have some trouble with my Admin-URLs. When I set DEBUG=False (in the
> > settings.py) I become th
Hi all,
I have some trouble with my Admin-URLs. When I set DEBUG=False (in the
settings.py) I become this error (I've changed some lines in the file
../django/core/handlers/base.py to see the error in no-debug-mode):
Using the URLconf defined in project.urls, Django tried these URL patterns,
7 matches
Mail list logo