my mysite/templates/admin/base_site.html is ignored (tutorial unclear?)

2014-11-16 Thread RLF_UNIQUE
Obviously you've restarted the server and refreshed the page in such a way to ensure it's not a caching issue ? -- 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, send an email to

my mysite/templates/admin/base_site.html is ignored (tutorial unclear?)

2014-11-16 Thread Andreas Ka
I am working through https://docs.djangoproject.com/en/1.7/intro/tutorial02 so far all went fine - but now *templates changes just don't work.* I think there must be a flaw in that tutorial, something missing, or something different in django 1.7.1 ? https://docs.djangoproject.com/en/1.7/intro

Django i18n in JS templates

2014-11-10 Thread Alex Isayko
We actively use django-pipeline package and its builtin solution for javascript templates <https://django-pipeline.readthedocs.org/en/latest/templates.html> The problems begins when we needed to use i18n in this templates, for ex.: <%= gettext('To translate') %> Sta

Re: Generating a list of available templates

2014-10-29 Thread Collin Anderson
Hi William, > for loader in settings.TEMPLATE_LOADERS: > loader_module = > importlib.import_module('.'.join(loader.split('.')[:-1])) > print '\n'.join(source for source in > loader_module.Loader().get_template_sources('')) > You could also get the loader like this: from

Re: Generating a list of available templates

2014-10-28 Thread William Stewart
t; from proj.settings import TEMPLATE_DIRS, INSTALLED_APPS > import os > > def recursive_search(path): > result = [] > for i in os.listdir(path): > if not os.path.isdir(os.path.join(path, i)): > result.append(i) > else: > result.extend(recursive_search(os.path.join(path, i))) >

Djago-Brackets (templates support for Adobe Brackets)

2014-10-12 Thread Aliane Abdelouahab
Hi, For Brackets users, here a small extension: https://github.com/abdelouahabb/django-brackets CodeMirror already supports django, but i dont know why they dident added it to Brackets, so with the extension it will be possible. Good templating :) -- You received this message because you are

Re: templates: if and static tags incompatible?

2014-09-29 Thread Fred Stluka
The problem is that static is not being recognized as a valid Django tag. Add this line to the top of the template file to define it. {% load staticfiles %} --Fred Fred Stluka -- mailto:f...@bristle.com --

templates: if and static tags incompatible?

2014-09-29 Thread chansonsyiddish
Hello, I've got a small problem: here is the code in my template: {% if p.fleches %} %}" > {% endif %} and the django development server tells me: Django Version: 1.4.5 Exception Type: TemplateSyntaxError Exception Value: Invalid block tag: 'static', expected

Re: using historic changes from django-admin to templates?

2014-08-18 Thread Collin Anderson
from django.contrib.contenttypes.models import ContentType from django.contrib.admin.models import LogEntry for log in LogEntry.objects.filter(content_type=ContentType.objects.get_for_model(YourModel)): print log -- You received this message because you are subscribed to the Google Groups

Re: using historic changes from django-admin to templates?

2014-08-18 Thread somenxavier
Thanks, Collin. This is what I want. How can I import LogEntry and use it? I'm yet a newbee ;-) El dilluns 18 d’agost de 2014 2:30:28 UTC+2, Collin Anderson va escriure: > > Or, is the data on the admin "history" page good enough? You could just > import LogEntry and start querying it. The model

Re: using historic changes from django-admin to templates?

2014-08-17 Thread Collin Anderson
Or, is the data on the admin "history" page good enough? You could just import LogEntry and start querying it. The model is undocumented and not guaranteed to be a stable API, but you can see the model here: https://github.com/django/django/blob/master/django/contrib/admin/models.py -- You

Re: using historic changes from django-admin to templates?

2014-08-17 Thread Cal Leeming [iops.io]
/django-reversion Cal On Sun, Aug 17, 2014 at 4:47 PM, <somenxav...@gmail.com> wrote: > Hi, > > I just ask if it's possible (and how) to use the "historic changes" of > django-admin interface to templates for showing what changes I've made in > my models in my site.

using historic changes from django-admin to templates?

2014-08-17 Thread somenxavier
Hi, I just ask if it's possible (and how) to use the "historic changes" of django-admin interface to templates for showing what changes I've made in my models in my site. Can anyone follow the Poll examples of the tutorial. Thanks in advance, Xan -- You received this message b

Re: Compositional Templates Django

2014-07-29 Thread Tom Evans
On Tue, Jul 29, 2014 at 9:41 AM, Secret <secretmappe...@gmail.com> wrote: > What is the best way to create modular templates? > > For example, if I have something like this: > > #base file: > {header} > {block content} > {footer} > > #main file: > {ex

Compositional Templates Django

2014-07-29 Thread Secret
What is the best way to create modular templates? For example, if I have something like this: #base file:{header}{block content}{footer} #main file:{extends base}{block content definition} #product file:{extends base}{block content definition} This is the django way from what I understand

Re: django templates

2014-07-22 Thread ngangsia akumbo
please give me an exmaple , all my urls for the various apps are all in the main project urls file On Tuesday, July 22, 2014 12:37:37 PM UTC+1, Akshay Mukadam wrote: > > > > On Tuesday, July 22, 2014 1:20:14 PM UTC+5:30, ngangsia akumbo wrote: >> >> Hi Django Users >> >> I have a question. >> >>

Re: django templates

2014-07-22 Thread Akshay Mukadam
On Tuesday, July 22, 2014 1:20:14 PM UTC+5:30, ngangsia akumbo wrote: > > Hi Django Users > > I have a question. > > I have created all my apps for my websites which are events , blog, and > gallery. > They all extends to the base.html file . > > From my development server i can access this

Re: django templates

2014-07-22 Thread ngangsia akumbo
Ok i have created all my apps and extended to the base.html file so what next? On Tuesday, July 22, 2014 8:50:14 AM UTC+1, ngangsia akumbo wrote: > > Hi Django Users > > I have a question. > > I have created all my apps for my websites which are events , blog, and > gallery. > They all

django templates

2014-07-22 Thread ngangsia akumbo
Hi Django Users I have a question. I have created all my apps for my websites which are events , blog, and gallery. They all extends to the base.html file . >From my development server i can access this individual app by just typing localhost:8000/blogs and the blog template will appear. My

Re: imagens com django templates

2014-07-15 Thread erico
dos comandos de templates, > caso como o que tenho que usar o caminho do path todo, não está > reconhecendo o media. As configurações do settings.py foram feitas e > apontam para a pasta das imagens. Se alguém poder me ajudar agradeço, não > coloquei trechos do código para não receber

imagens com django templates

2014-07-14 Thread Carlos Andre
Olá pessoal, estou tentando usar um slideshow e uso um for para iterar as imagens que passam vidas de um repositório, problemas que funciona sem o comando for no template, quando adiciono ele mostra nada para! Pelo que vejo há problemas no reconhecimento dos comandos de templates, caso como o que

Re: Possible error at usage of reverse URL in templates.

2014-06-22 Thread Russell Keith-Magee
Hi Sebastian, There is a very significant difference between the third pattern and the last - the extra set of braces. That extra set of braces means that the regex group that is being matched is (?P\d+)/ That is - one or more numerical digits, identified as playerId, that *must* be followed by

Possible error at usage of reverse URL in templates.

2014-06-21 Thread Sebastian Piskorski
I'd like to make sure that this is an error not the feature. I use following code in template {{ player.id }} : "{{ player.name}}" And in urls.py everything goes fine with those rules: 1. url(r'^player/select/(?P\d+)/$', myapp.views.player.select, name="player-select"), result URL is:

Re: Static files in templates with VARIABLES

2014-05-05 Thread Damián Adriel Pérez Valdés
thanks On Mon, May 5, 2014 at 10:29 AM, Charly Román <chack14r...@gmail.com> wrote: > {% static LOGO %} > > 2014-05-05 10:27 GMT-05:00 Damián Pérez <damian.adr...@gmail.com>: > > Hello everyone: > > > > I'm using for the templates {% static 'images/log

Re: Static files in templates with VARIABLES

2014-05-05 Thread Charly Román
{% static LOGO %} 2014-05-05 10:27 GMT-05:00 Damián Pérez <damian.adr...@gmail.com>: > Hello everyone: > > I'm using for the templates {% static 'images/logo.png' %}, but what can i > do if I have the logo url on the variable ?, something like static LOGO > >

Static files in templates with VARIABLES

2014-05-05 Thread Damián Pérez
Hello everyone: I'm using for the templates {% static 'images/logo.png' %}, but what can i do if I have the logo url on the variable ?, something like static LOGO thanks. best regards, -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: get user profile info in templates

2014-04-24 Thread Ramón Carrillo
ustomuser and profile > > i want get user profile information in templates who is logged in. > try everypossible solution but didn't achieve anything > > this is my profile models code below: > > from django.db import models > from django.utils.translation i

get user profile info in templates

2014-04-24 Thread sourav
hi i am a newbie in django i am creating an app with customuser and profile i want get user profile information in templates who is logged in. try everypossible solution but didn't achieve anything this is my profile models code below: from django.db import models from django.utils.translation

Re: Django cannot find my templates directory

2014-03-10 Thread Mike Dewhirst
On 11/03/2014 1:25pm, Cherrymae Tulfo wrote: hi everyone! i am looking for solutions with regards to templates directory . . i have this results.html where the data should be displayed after it is queried through views.py. . it should display the barangay id and the name of the barangay itself

Django cannot find my templates directory

2014-03-10 Thread Cherrymae Tulfo
hi everyone! i am looking for solutions with regards to templates directory . . i have this results.html where the data should be displayed after it is queried through views.py. . it should display the barangay id and the name of the barangay itself. . *{% block content %} {% if results

Re: Using Django without templates?

2014-02-28 Thread bobhaugen
On Thursday, February 27, 2014 8:37:45 PM UTC-6, somecallitblues wrote: > You do have to be careful with templates if you're using too many > inclusions or if you have too much logic in them. There's a good django > debug toolbar add-on that informs you about the time a templ

Re: Using Django without templates?

2014-02-27 Thread Mario Gudelj
You do have to be careful with templates if you're using too many inclusions or if you have too much logic in them. There's a good django debug toolbar add-on that informs you about the time a template takes to compile. On 27/02/2014 9:47 am, "ApathyBear" <nircher...@gmail.com

Re: Using Django without templates?

2014-02-27 Thread Camilo Torres
On Wednesday, February 26, 2014 6:16:39 PM UTC-4:30, ApathyBear wrote: > > He mentioned something that I hadn't really gotten a chance to ask him > more about > He told me to be careful with django templates because in terms of scale, > they can cause problems and almost alway

Using Django without templates?

2014-02-26 Thread ApathyBear
I was briefly talking with a developer from Google whom I had met. He mentioned something that I hadn't really gotten a chance to ask him more about He told me to be careful with django templates because in terms of scale, they can cause problems and almost always need to be re-written

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

Re: Email Templates and the full website URL

2013-12-03 Thread Joseph Mutumi
Its not that easy to do but instead of generating the link say: http://myrealsite.com/admin/change_password If HTTP_HOST is somehow messed up say by Man In the Browser, in the email, you could get something like: http://hackersite.com/admin/change_password If the user isn't paying attention,

Re: Email Templates and the full website URL

2013-12-02 Thread Vibhu Rishi
Not sure how the header injection will work in this case ? As I see it, I am using this in the email text for the email body. This is generated and sent in a view function I have. So, how will the http header get inserted in this flow ? Vibhu On Fri, Nov 29, 2013 at 7:39 PM, Joseph Mutumi

Re: Email Templates and the full website URL

2013-11-30 Thread Fred Stluka
I had the same problem. Wrote this: def get_web_server_base_url(request, settings_override_name=None): # Allow the value in the settings file to override any computed value. url = None if settings_override_name: url = getattr(settings, settings_override_name, None) if

Re: Email Templates and the full website URL

2013-11-29 Thread Tom Evans
On Fri, Nov 29, 2013 at 2:09 PM, Joseph Mutumi wrote: > That could work but isn't it a bit insecure? I think it will be susceptible > to a header injection(http://en.wikipedia.org/wiki/HTTP_header_injection). I > would rather create a setting with the domain name in

Re: Email Templates and the full website URL

2013-11-29 Thread Felipe Coelho
2013/11/29 Joseph Mutumi > That could work but isn't it a bit insecure? I think it will be > susceptible to a header injection( > http://en.wikipedia.org/wiki/HTTP_header_injection). I would rather > create a setting with the domain name in settings.py and then call it from >

Re: Email Templates and the full website URL

2013-11-29 Thread Joseph Mutumi
That could work but isn't it a bit insecure? I think it will be susceptible to a header injection(http://en.wikipedia.org/wiki/HTTP_header_injection). I would rather create a setting with the domain name in settings.py and then call it from the template or write a custom template tag. On Fri,

Re: Email Templates and the full website URL

2013-11-29 Thread Rafael E. Ferrero
Good work!! 2013/11/29 Vibhu Rishi > Thanks for the links. I had done the google searches and gone through > them, but they seemed to me a lot of work to get something simple. > > I finally did the following. Any comments welcome if this is not a good > way to do. > > In

Re: Email Templates and the full website URL

2013-11-29 Thread Vibhu Rishi
Thanks for the links. I had done the google searches and gone through them, but they seemed to me a lot of work to get something simple. I finally did the following. Any comments welcome if this is not a good way to do. In my view, I pass a context object of the request to the email template. I

Re: Email Templates and the full website URL

2013-11-29 Thread Rafael E. Ferrero
and this can help too http://stackoverflow.com/questions/2119342/python-url-template-tags-giving-only-part-of-a-absolute-url-must-be-a-lack-o 2013/11/29 Rafael E. Ferrero > >

Re: Email Templates and the full website URL

2013-11-29 Thread Rafael E. Ferrero
https://docs.djangoproject.com/en/dev/ref/contrib/sites/#getting-the-current-domain-for-full-urls 2013/11/29 Vibhu Rishi > hi, > > I have a setup where I have a project details page, and I can do a "send > email" which should send the email with the URL. > > Email is

Email Templates and the full website URL

2013-11-29 Thread Vibhu Rishi
hi, I have a setup where I have a project details page, and I can do a "send email" which should send the email with the URL. Email is working fine. The problem is that i am getting a relative url in the tempalte I have the following in the html email template : {{ project }} This give me a

Re: Editing html templates from front end

2013-11-24 Thread Mario Gudelj
In this case you need to store templates in db which means you need to have a custom loader for your templates. I think that this app does what you need https://pypi.python.org/pypi/django-dbtemplates Cheers, M On 25/11/2013 1:39 AM, "Harjot Mann" <harjotmann1...@gmail.com> wro

Re: Translation from templates doesn't work.

2013-11-24 Thread Ramiro Morales
On Sun, Nov 24, 2013 at 4:21 AM, Shahar Or wrote: > String in my template don't translate. They stay English even though they do > pop up in the po files using `makemessages`. Do you comvert these -po files to .mo files using the compilemessages Django command or the

Editing html templates from front end

2013-11-24 Thread Harjot Mann
In django Is there any way through which we can edit the html templates from front end and those changes should also be updated in database like an edit button on the page? -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily Dairy: http://harjotmann.wordpress.com/daily-diary

Re: Translation from templates doesn't work.

2013-11-24 Thread gilberto dos santos alves
please could you post url or some more details! Em domingo, 24 de novembro de 2013 07h21min12s UTC, Shahar Or escreveu: > > String in my template don't translate. They stay English even though they > do pop up in the po files using `makemessages`. > > To make sure that the current `lang` is

Translation from templates doesn't work.

2013-11-23 Thread Shahar Or
String in my template don't translate. They stay English even though they do pop up in the po files using `makemessages`. To make sure that the current `lang` is indeed what I expect it to be, I use `{{ lang }}` in the template somewhere. I have `{% load i18n %}` in the template somewhere near

Re: Customizing your project's templates

2013-10-26 Thread Sheharyar Hamayun
Hey Yes, thank you. It worked! Btw sorry for the late reply, my previous 'thank you' reply didn't seem to go through it seems. On Monday, October 21, 2013 2:52:48 PM UTC+11, Sheharyar Hamayun wrote: > > Ok, so i've copied the *base_site html* > to*lotus/pollapp/mysite/polls/templa

Re: Customizing your project's templates

2013-10-21 Thread Leonardo Giordani
('\\', '/')) at the beginning of your settings.py file. Then you can write TEMPLATE_DIRS = ( *os.path.join(ABSOLUTE_PATH, 'lotus/pollapp/mysite/polls/**templates'),* # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use f

Customizing your project's templates

2013-10-21 Thread Sheharyar Hamayun
Ok, so i've copied the *base_site html* to*lotus/pollapp/mysite/polls/templates/admin * . I've opened the html file in a text editor and changed * {% trans 'Django administration' %}* to *{% trans 'Pollapp' %}* However this change doesn't show on the website. My *Template DIRS

"original" not set in admin template django/contrib/admin/templates/admin/submit_line.html after upgrade

2013-09-25 Thread Gloria W
Hi all, I recently upgraded a site from 1.4 to 1.5.4, and it seems like in the submit_line template, "original" is not set. This line fails for that reason: {% if show_delete_link %}{% trans "Delete" %}{% endif %} The template chain at this point is so nested that it's hard to figure out

Re: Django Templates: Using the "with" statement and "block.super" together

2013-09-24 Thread Russell Keith-Magee
On Wed, Sep 25, 2013 at 1:59 AM, Warren Smith <war...@wandrsmith.net> wrote: > On occasion, I've used the following technique in my django templates: > > # parent.html > > {% block someblock %} > …stuff… > {% if cool_optional_feature_is_enabled %} > …

Re: Django Templates: Using the "with" statement and "block.super" together

2013-09-24 Thread Vijay Katam
Seems legit to me. Some documentation could help get more usage. On Tuesday, September 24, 2013 12:59:27 PM UTC-5, Warren Smith wrote: > > On occasion, I've used the following technique in my django templates: > > # parent.html > > {% block som

Re: Django Templates: Using the "with" statement and "block.super" together

2013-09-24 Thread Tomas Ehrlich
I use it too. Maybe it would be nice to document it somewhere. Cheers, Tom Dne Tue, 24 Sep 2013 10:59:27 -0700 (PDT) Warren Smith <war...@wandrsmith.net> napsal(a): > On occasion, I've used the following technique in my django templates: > > # parent.html > &g

Re: Django Templates: Using the "with" statement and "block.super" together

2013-09-24 Thread Bill Freeman
Smith <war...@wandrsmith.net> wrote: > On occasion, I've used the following technique in my django templates: > > # parent.html > > {% block someblock %} > …stuff… > {% if cool_optional_feature_is_enabled %} > …optional stuff... > {% endif %} > …stuff...

Django Templates: Using the "with" statement and "block.super" together

2013-09-24 Thread Warren Smith
On occasion, I've used the following technique in my django templates: # parent.html {% block someblock %} …stuff… {% if cool_optional_feature_is_enabled %} …optional stuff... {% endif %} …stuff... {% endblock %} # child.html {% extends "parent.html" %} {% block

Re: Paginattion: How do I pass current page number around views, forms and templates?

2013-09-17 Thread Marcin Szamotulski
You can also pass it around as a GET argument. Best regards, Marcin On 02:10 Mon 16 Sep , DJ-Tom wrote: > > I think I could use the views name as the key to the current page - that > way the system "remembers" the page number for each view. > > Am Dienstag, 10. September 2013 18:59:19

Re: Paginattion: How do I pass current page number around views, forms and templates?

2013-09-16 Thread DJ-Tom
I think I could use the views name as the key to the current page - that way the system "remembers" the page number for each view. Am Dienstag, 10. September 2013 18:59:19 UTC+2 schrieb ke1g: > > The remaining trick will be when to remove it from the session. You don't > want to go into

Re: Paginattion: How do I pass current page number around views, forms and templates?

2013-09-10 Thread DJ-Tom
ah ok - now all makes sense :-) Am Dienstag, 10. September 2013 18:23:12 UTC+2 schrieb ke1g: > > Sorry. I meant session. > > > On Tue, Sep 10, 2013 at 12:15 PM, DJ-Tom > wrote: > >> Hi, >> >> hmmm, I don't think I understand what you mean with "setting" >> >> Thomas >> >>

Re: Paginattion: How do I pass current page number around views, forms and templates?

2013-09-10 Thread Bill Freeman
Sorry. I meant session. On Tue, Sep 10, 2013 at 12:15 PM, DJ-Tom wrote: > Hi, > > hmmm, I don't think I understand what you mean with "setting" > > Thomas > > Am Dienstag, 10. September 2013 17:47:41 UTC+2 schrieb ke1g: > >> Assuming that you can't get the edit view to

Re: Paginattion: How do I pass current page number around views, forms and templates?

2013-09-10 Thread Bill Freeman
The remaining trick will be when to remove it from the session. You don't want to go into another list and start at page 5. On Tue, Sep 10, 2013 at 12:43 PM, DJ-Tom wrote: > ah ok - now all makes sense :-) > > Am Dienstag, 10. September 2013 18:23:12 UTC+2 schrieb ke1g:

Paginattion: How do I pass current page number around views, forms and templates?

2013-09-10 Thread DJ-Tom
Hi, I'm currently using django's default pagination and it works as expected. The problem i still have is that when I'm on (lets say) page 5 of 10, go into edit the edit form of one of the objects, I don't know how I can preserve/access the current page number from the edit view/form template

Re: Paginattion: How do I pass current page number around views, forms and templates?

2013-09-10 Thread Bill Freeman
Assuming that you can't get the edit view to cooperate, maybe store it on the setting? On Tue, Sep 10, 2013 at 11:34 AM, DJ-Tom wrote: > Hi, > > I'm currently using django's default pagination and it works as expected. > > The problem i still have is that when I'm on

Re: Paginattion: How do I pass current page number around views, forms and templates?

2013-09-10 Thread DJ-Tom
Hi, hmmm, I don't think I understand what you mean with "setting" Thomas Am Dienstag, 10. September 2013 17:47:41 UTC+2 schrieb ke1g: > > Assuming that you can't get the edit view to cooperate, maybe store it on > the setting? > > -- You received this message because you are subscribed to

Help with templates

2013-09-05 Thread Daniel Roseman
You should not do this from the standard Python shell, but via the preconfigured Django one which is started with `manage.py shell`. Also, DON'T SHOUT. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Help with templates

2013-09-05 Thread itsme . vikasmishra
THIS IS THE ERROR I ENCOUNTER WHEN I IMPORT DJANGO IN MY SHELL AND TRY TO USE TEMPLATES THERE from django import template >>> t=template.Template('My name is {{ name }}.') Traceback (most recent call last): File "", line 1, in File "django/template/base.py

Re: Django-registration reset password templates not getting picked up

2013-09-03 Thread Kelvin Wong
I put the overridden templates (auth, registration, etc) in a project templates folder in the project root. You have to set it up though in your settings.py as I noted earlier. The filesystem loader is still right there above the app_directories loader. To me the overridden templates don't seem

Re: Django-registration reset password templates not getting picked up

2013-09-03 Thread Vibhu Rishi
Hi Kevin, You were absolutely correct. Moving 'homepage' to the top made it work. Thanks! I was doing all my templates within a single directory pre 1.5 . But then in 1.5 they changed it, so I got a bit confused but then started putting the templates within the app. Not sure if this is good

Re: Django-registration reset password templates not getting picked up

2013-09-02 Thread Kelvin Wong
Check that your 'homepage' app is above the 'registration' app: INSTALLED_APPS = ( 'homepage', # Order matters, this is loaded before others 'registration', 'django.contrib.auth', ... ) Order of the apps is significant. Review https://docs.djangoproject.com/en/dev/ref/templates

Re: Django-registration reset password templates not getting picked up

2013-09-02 Thread Vibhu Rishi
.ri...@gmail.com> wrote: > I have a module called homepage and they reside in that. Path is as > follows : > > $ ls homepage/templates/registration/ > *activate.htmlpassword_change_form.html > *activation_complete.html password_reset_complete.html > *a

Re: Django-registration reset password templates not getting picked up

2013-09-02 Thread Vibhu Rishi
I have a module called homepage and they reside in that. Path is as follows : $ ls homepage/templates/registration/ *activate.htmlpassword_change_form.html *activation_complete.html password_reset_complete.html *activation_email_subject.txt password_reset_confirm.html

Re: Django-registration reset password templates not getting picked up

2013-09-02 Thread Kelvin Wong
If you are not using a templates folder in your project root, where are your registration templates located? K On Monday, September 2, 2013 9:42:50 AM UTC-7, Vibhu Rishi wrote: > > > So far, all the other template html files get picked up - except the ones > related to the passwor

Re: Django-registration reset password templates not getting picked up

2013-09-02 Thread Vibhu Rishi
Thanks Kelvin for the response. However, I am not sure I understand why this is to be done. currently my TEMPLATE_DIRS is not having anything. it is as follows: TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".

Re: Django-registration reset password templates not getting picked up

2013-09-01 Thread Kelvin Wong
TEMPLATE_DIRS needs to have the location of the templates. As long as those templates are being picked up and one is called 'password_reset_form.html' it should work. One of my apps has this form at: /my_project/templates_global/registration/password_reset_form.html In /my_project/my_project

Django-registration reset password templates not getting picked up

2013-09-01 Thread Vibhu Rishi
I am getting a bit of a problem with django-registration django-registration was installed in a venv using pip. I have version 1.0 of django-registration and 1.5.1 of Django . I have the templates/registration directory with the templates for the pages that are to display the different pages

Re: html templates and dynamic loading

2013-08-26 Thread Bastien Amiel
Le 24/08/2013 04:44, Mantas Zilinskis a écrit : this might help you http://stackoverflow.com/questions/1879872/django-update-div-with-ajax let me know if you need more help Thank you for this good pointer. On Fri, Aug 23, 2013 at 10:51 AM, Bastien Amiel

Re: html templates and dynamic loading

2013-08-23 Thread Mantas Zilinskis
this might help you http://stackoverflow.com/questions/1879872/django-update-div-with-ajax let me know if you need more help On Fri, Aug 23, 2013 at 10:51 AM, Bastien Amiel wrote: > Le 23/08/2013 17:01, Mantas Zilinskis a écrit : > > can you post all of chat.html > > > >

Re: html templates and dynamic loading

2013-08-23 Thread Bastien Amiel
Le 23/08/2013 17:01, Mantas Zilinskis a écrit : can you post all of chat.html On Fri, Aug 23, 2013 at 7:04 AM, Bastien Amiel > wrote: Le 23/08/2013 11:26, Huu Da Tran a écrit : On Thursday, August 22, 2013 8:42:04 AM UTC-4, Bastien Amiel

Re: html templates and dynamic loading

2013-08-23 Thread Mantas Zilinskis
can you post all of chat.html On Fri, Aug 23, 2013 at 7:04 AM, Bastien Amiel wrote: > Le 23/08/2013 11:26, Huu Da Tran a écrit : > > On Thursday, August 22, 2013 8:42:04 AM UTC-4, Bastien Amiel wrote: > > >> I need to update the chat when an event come but : >> >> 1. >>

Re: html templates and dynamic loading

2013-08-23 Thread Bastien Amiel
Le 23/08/2013 11:26, Huu Da Tran a écrit : On Thursday, August 22, 2013 8:42:04 AM UTC-4, Bastien Amiel wrote: I need to update the chat when an event come but : 1. If I update my chat sub page, inputs are reset (seems logic since html is recreated). You can always have

Re: html templates and dynamic loading

2013-08-23 Thread Huu Da Tran
On Thursday, August 22, 2013 8:42:04 AM UTC-4, Bastien Amiel wrote: > I need to update the chat when an event come but : > > 1. > If I update my chat sub page, inputs are reset (seems logic since html > is recreated). > You can always have some field that keep when the chat was started (in

html templates and dynamic loading

2013-08-22 Thread Bastien Amiel
Hi list, I'm testing Django for a few days now and I have 2 questions. I created for my tests a simple chat integrated in a base page (one template for the main page, and one for the chat). I need to update the chat when an event come but : 1. If I update my chat sub page, inputs are reset

Re: multiple templates fro single view

2013-08-01 Thread Fred Stluka
result of a view is rendered HTML page which you send to browser, what do you mean by rendering multiple templates? are you talking about template inheritance = one root template which all other templates use? in that case, use {% extends 'root.html' %} tag, or are you talking about splitting yo

Re: multiple templates fro single view

2013-08-01 Thread Lukas Nemec
On 08/01/2013 03:04 PM, Harjot Mann wrote: On Thu, Aug 1, 2013 at 6:10 PM, Lukas Nemec <lu.ne...@gmail.com> wrote: Well, after some consideration, result of a view is rendered HTML page which you send to browser, what do you mean by rendering multiple templates? are you talking about te

Re: multiple templates fro single view

2013-08-01 Thread Harjot Mann
On Thu, Aug 1, 2013 at 6:10 PM, Lukas Nemec <lu.ne...@gmail.com> wrote: > Well, after some consideration, > > result of a view is rendered HTML page which you send to browser, > > what do you mean by rendering multiple templates? > are you talking about template inherit

Re: multiple templates fro single view

2013-08-01 Thread Lukas Nemec
Well, after some consideration, result of a view is rendered HTML page which you send to browser, what do you mean by rendering multiple templates? are you talking about template inheritance = one root template which all other templates use? in that case, use {% extends 'root.html' %} tag

multiple templates fro single view

2013-08-01 Thread Harjot Mann
In my project I have a view which renders to an html template but I want to render two templates at the same time from one view. How ca I do it?? -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "D

Html templates editor autocomplete Eclipse(PyDev)

2013-07-25 Thread Новак Бошков
I can't find any settings for Django editor in PyDev to possibly adjust autocompletion for html code. Now when I type there is no any suggestions for html code, I have to type every single tag. I've made .htmlfile by right click on project root->New->file and just named file template.html. How

Re: django templates

2013-07-17 Thread Kamal Kaur
On Wed, Jul 17, 2013 at 9:13 PM, Harjot Mann wrote: > It is used only for one report and there is some error,so it is there > but not working. Then fix it! -- Kamaljeet Kaur Blog:http://kamalkaur188.wordpress.com/ -- You received this message because you are

Re: django templates

2013-07-17 Thread Harjot Mann
On Wed, Jul 17, 2013 at 8:26 PM, Kamal Kaur wrote: > Hope this helps: > https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ > > http://stackoverflow.com/questions/1377446/html-to-pdf-for-a-django-site @ Kamal thnks but its already there. -- Harjot Kaur Mann

Re: django templates

2013-07-17 Thread Harjot Mann
On Wed, Jul 17, 2013 at 8:53 PM, Kamal Kaur wrote: > It must work if it is there?? It is used only for one report and there is some error,so it is there but not working. -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ -- You received this message because

Re: django templates

2013-07-17 Thread Tom Evans
On Wed, Jul 17, 2013 at 4:01 PM, Harjot Mann wrote: > On Wed, Jul 17, 2013 at 8:20 PM, Tom Evans wrote: >> Does your website currently produce pdfs, or are you asking how to >> turn multiple HTML pages from your site into a single PDF? > > >

Re: django templates

2013-07-17 Thread Kamal Kaur
On Wed, Jul 17, 2013 at 8:33 PM, Harjot Mann wrote: > @ Kamal thnks but its already there. It must work if it is there?? -- Kamaljeet Kaur Blog:http://kamalkaur188.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Django

Re: django templates

2013-07-17 Thread Kamal Kaur
On Wed, Jul 17, 2013 at 8:04 PM, Harjot Mann <harjotmann1...@gmail.com> wrote: > No, this is not admin problem. I am getting the reports templates but > these are not saved anywhere, valuse are coming from database. But I > want to take the print outs i.e the hard copy of all th

Re: django templates

2013-07-17 Thread Harjot Mann
On Wed, Jul 17, 2013 at 8:20 PM, Tom Evans wrote: > Does your website currently produce pdfs, or are you asking how to > turn multiple HTML pages from your site into a single PDF? Yes, I want this it has reportlab and pisa modules to produce pdfs. -- Harjot Kaur Mann

Re: django templates

2013-07-17 Thread Larry Martell
st - >> and your action can then generate the data, passing this into a single >> "master template" (composite of your other templates) for the user to print >> (or you could have an action just to generate all the lab reports for the >> selected jobs - its quite flexible).

<    1   2   3   4   5   6   7   8   9   10   >