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
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}}
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
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
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
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
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
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
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
> 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
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
>> 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
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 %
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.
--~--~-~--~~~---~-
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
> 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
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
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
18 matches
Mail list logo