Templates in Django

2020-05-14 Thread אורי
Hi, I noticed that an app's template can't extend a template with exactly the same path in another app. Recently I had a need to extend such a template, called 'accounts/edit_profile/base.html', so I renamed it to 'accounts/edit_profile/core_base.html' and added a new template 'accounts/edit_profi

Re: New Question How to Let a user upload a Video and then show the content on Templates in Django?

2018-03-12 Thread djangorobert
Hi Carlos I figured it out actually i put this {{user.profile.vid.url}} On Monday, March 12, 2018 at 2:29:11 PM UTC-5, sacrac wrote: > > what use Imagefield?, you use FileField is you need the user upload a > video like mp4. avi, mpg etc. > and in your html use tag for render. {{object.video}}

Re: New Question How to Let a user upload a Video and then show the content on Templates in Django?

2018-03-12 Thread anuch thakker
try to create one folder "{% static 'your folder name /file name' %}"also create static folder On Tuesday, 13 March 2018 00:46:52 UTC+5:30, djangorobert wrote: > > Hi Im not sure if i am the only one in the Django community who has been > trying to add this feauture for a couple of years Basica

Re: New Question How to Let a user upload a Video and then show the content on Templates in Django?

2018-03-12 Thread carlos
what use Imagefield?, you use FileField is you need the user upload a video like mp4. avi, mpg etc. and in your html use tag for render. {{object.video}} example Your browser does not support the video tag. On Mon, Mar 12, 2018 at 1:16 PM, djangorobert wrote: > Hi Im not sure if i am th

New Question How to Let a user upload a Video and then show the content on Templates in Django?

2018-03-12 Thread djangorobert
Hi Im not sure if i am the only one in the Django community who has been trying to add this feauture for a couple of years Basically what i want is to let the user upload videos. I know that you could add the line in your models with a ImageField is that right? but then in the template with a

Custom Templates in Django Sitemaps Index

2015-11-06 Thread Andreas Dickow
See my new tutorial on Custom Templates in Django Sitemaps: https://biz-factory.de/django-sitemap-index-tutorial/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, sen

Order of finding static files and templates in django-apps

2014-01-10 Thread Aleksey Rezvov
It is duplicate of question in stackoverflow<http://stackoverflow.com/questions/21020472/order-of-finding-static-files-and-templates-in-django-apps> . For example I have 2 apps in my django project with templates and static files with identical subpath: app1 / static / sty

Using Cheetah Templates in django

2010-03-08 Thread srini
hi all, do anybody think that Using Cheetah Templates in django is more than any normal Html Thank you, -- 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 unsubs

Re: Is there a TRIM feature for templates in Django 0.91

2007-09-19 Thread Russell Keith-Magee
On 9/19/07, Frank Peterson <[EMAIL PROTECTED]> wrote: > > TRIM would delete any whitespace from the string (tabs, newlines, > spaces, ...). SPACELESS comes close as it will convert all the > whitespace into just 1 space. This behaviour has changed in the SVN version of Django. Now spaceless will

Re: Is there a TRIM feature for templates in Django 0.91

2007-09-19 Thread Tim Chase
> TRIM would delete any whitespace from the string (tabs, newlines, > spaces, ...). SPACELESS comes close as it will convert all the > whitespace into just 1 space. Should TRIM delete *all* whitespace, or just leading/trailing whitespace? Trim functions usually just remove leading/trailing whi

Re: Is there a TRIM feature for templates in Django 0.91

2007-09-19 Thread Frank Peterson
TRIM would delete any whitespace from the string (tabs, newlines, spaces, ...). SPACELESS comes close as it will convert all the whitespace into just 1 space. I'm stuck on 0.91 at work and I dont think they plan on upgrading anytime soon (its beyond my control) I'm not sure SPACELESS doesnt work

Re: Is there a TRIM feature for templates in Django 0.91

2007-09-18 Thread Tim Chase
>> I looked over the docs >> http://www.djangoproject.com/documentation/0_91/templates/ >> >> but the closest thing was SPACELESS > > - What does a TRIM filter do? Perhaps it change the colour of the trim > on your website? I suspect what some languages call Trim is the Python function/method "s

Re: Is there a TRIM feature for templates in Django 0.91

2007-09-18 Thread Russell Keith-Magee
On 9/19/07, Frank Peterson <[EMAIL PROTECTED]> wrote: > > I looked over the docs > http://www.djangoproject.com/documentation/0_91/templates/ > > but the closest thing was SPACELESS > > I tried to use it like this: > {% block data %}{% spaceless %}{{ story.tease }}{% endspaceless %}{% > endblock %

Is there a TRIM feature for templates in Django 0.91

2007-09-18 Thread Frank Peterson
I looked over the docs http://www.djangoproject.com/documentation/0_91/templates/ but the closest thing was SPACELESS I tried to use it like this: {% block data %}{% spaceless %}{{ story.tease }}{% endspaceless %}{% endblock %} But it didnt work. --~--~-~--~~~---~-

Re: Myghty Templates in Django - ver. 1

2006-08-02 Thread [EMAIL PROTECTED]
Thanks :) Wikified here: http://code.djangoproject.com/wiki/MyghtyTemplatesInDjango --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroup

Re: Myghty Templates in Django - ver. 1

2006-08-01 Thread Simon Willison
> 2a. The easy way to use mygthy templates is to render them and send the > result to a "Blank" django template which will show the results > a simple view: > [...] > def myview(request): > file = AFile() > #execute a template > interpreter.execute('mytemplate.myt', out_buf

Re: Myghty Templates in Django - ver. 1

2006-08-01 Thread Russell Keith-Magee
On 8/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 1. Install myghty (http://www.myghty.org) Hi,Thanks for the contribution. I would suggest adding this as a page to the Wiki so that it isn't forgotten. Create a page somewhere in the vicinity of: http://code.djangoproject.com/wiki/CookBookMygh

Myghty Templates in Django - ver. 1

2006-08-01 Thread [EMAIL PROTECTED]
1. Install myghty (http://www.myghty.org) 2. edit your views. 2a. The easy way to use mygthy templates is to render them and send the result to a "Blank" django template which will show the results a simple view: ## from django.shortcuts import render_to_response im