Hi JJ
I'd like to know how you changed the wording... I cannot seem to find the
source text, for example, for "Select ... to change"
and would appreciate seeing/knowing how you did it.
There are examples on various blogs, but Django has changed how it is works
since they were written.
Thanks
D
I want to extend a template file into the other file. I get fine
results when done simply but whenever I use the template containing
'for' tag into the other, it does not show any results.
My code for template which is to be extended is here :
#template file to be extended into the other
{% bloc
> how to use java script alert from view after sucessfull opreation in view
Simplest way is to set some context variable (a.k.a. "flag") in the
view (e.g. "operation_successful = True") and have a piece of JS code
in your template that runs only when this flag is set, e.g:
{% if operation_succe
I have little experience with Django/Python but have a problem that I need
to solve.
Currently I have a button action that allows users of a website to download
files from a displayed list. I want to add a button to allow users to
delete the files if required.
The current download button is se
Hello
I am aware of the options to set the content_type when using
TemplateResponse, but is it possible to make the response itself return
json converted rendered template and not just a rendered template?
Thank you
--
You received this message because you are subscribed to the Google Groups
>
> but i used function HttpResponse() not render_to _response(). So how
> to carry variable from view to template with httpresponse()
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://grou
Django provides a File class (django.core.files.File) with File.save() and
File.delete methods. You can associate an action to delete and use
File.delete() to do this task.
2012/9/17 xactive
> I have little experience with Django/Python but have a problem that I need
> to solve.
>
> Currently I
hey xactive...
a simple solution, without bells & whistles could be this (assuming
File.file_obj is defined as a Django FileField):
On 09/17/2012 01:15 PM, xactive wrote:
I have little experience with Django/Python but have a problem that I
need to solve.
Currently I have a button action th
heya...
On 09/17/2012 01:18 PM, David wrote:
I am aware of the options to set the content_type when using
TemplateResponse, but is it possible to make the response itself
return json converted rendered template and not just a rendered template?
maybe this will work for you:
import json
ret
On 16/09/2012 11:53 μμ, Fabian Weiss wrote:
Allright, I didnt know that! So here are the requirments! I deinstalled
django debian packet and used pip. Works very well! But some of the
requiered software is also available and installed on my system through
APT! For example python-dateutil. What to
You can feed variables back through HttpResponse() using json serializer.
eg.
from django.utils import simplejson
response = {'Name': Name, 'Email': activeUser.email}
json = simplejson.dumps(response)
return HttpResponse(json, mimetype="text/json")
You should really look into AJAX as suggested ea
Can you put the code of the template you are extending this one with?
What I would guess from what you said is that you might be using {% block
head %} {% endblock %} in the other template that extends this one.
In that case you would override that for loop. If you want to add to the
head and a
Many thanks, I'll give that a try.
On Monday, September 17, 2012 1:57:48 PM UTC+1, Sebastian Henschel wrote:
>
> hey xactive...
>
> a simple solution, without bells & whistles could be this (assuming
> File.file_obj is defined as a Django FileField):
>
> On 09/17/2012 01:15 PM, xactive wrote:
Hi,
I would like to announce the availability of Maymyo 0.3.3 Beta at
http://sourceforge.net/projects/maymyo/
Maymyo provides basic infrastructural services required by most enterprise
apps. These are non-public facing apps meant for an enterprise's internal
use. The following is copy and past
On Mon, Sep 17, 2012 at 7:31 PM, jondykeman wrote:
> Can you put the code of the template you are extending this one with?
Here is the file that is extending:
{% extends "report/report_header.html" %}
{% load i18n %}
{% block content %}
Date of testing :{{Date_of_test
i have used one HTML select box in my template having name of product as
two string but when i send this value by post method in view it takes only
one string?plz help
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussio
anyone tel me how to display images on html links using django..
what path should be given in settings.py file
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/dja
Hi,
I wanted to share a developer-oriented app I've started working on.
Short version: https://github.com/machinalis/django-template-previewer/(includes
description and screenshots)
Slightly longer version: This app allows a developer to render django
templates by just entering the template na
I'm currently going through the Django tutorial, and everything was going
perfectly smoothly until the template part. This is what I always get for
the polls/index.html:
http://pastebin.com/ng9iGNRp
I noticed that it gets everything right (the {{ poll.id }} is 1, there's no
other error) but ju
On Monday, September 17, 2012 10:36:55 PM UTC+5:30, Navnath Gadakh wrote:
>
> i have used one HTML select box in my template having name of product as
> two string but when i send this value by post method in view it takes only
> one string?plz help
>
how to submit form using jquery? an
I am SO SORRY, and in the future I promise to wait at least a week before
posting my problems to see if I can figure it out in the meantime. I fixed
this by saving the file in TextWrangler instead of TextEdit, and now it
interprets the HTML properly. If anyone knows *why* this fixes the problem,
Hevok so what are the steps for doing this?
Sure I know where the admin files are located but once I have copied them
does magic just happen and Django uses my new configurations?
Thanks,
JJ
PS. apparently after I left my website alone for a little the CSS
propagated through and now I see thi
Pretty sure you're in the wrong thread bud.
On Sunday, September 16, 2012 2:52:34 AM UTC-4, Gutso wrote:
>
> Hi Everyone,
>
> I have one query:
>
> Should we change the database(mySQL) table's engine through migration
> scripts or not? If not then why?
>
> Following were my proposal:
>
> def for
Derek,
You can see the custom changes I made here:
http://www.madtrak.com/admin
That is the extent of what I have done in relation to the default. Nothing
more then some colors in the CSS and text color. Additionally I changed the
actual wording for the to Log in | MadTrak Django
Admin oth
Text Wranger is a plain-text only editor, whereas TextEdit is a rich
text editor by default (you can toggle plain text). This means that when
you type HTML characters in to TextEdit, such as
*Blah*, you're not getting true *<>* characters, but
something like *<* (<) and *>* (>). So your template pr
To go a bit further: never use TextEdit to edit source code of any kind,
even in plain text mode. It's simply not designed for that. TextWrangler
makes a great source editor and has some very handy features. However,
for full-blown projects with many source files, etc. you may find it
easier to use
Well, yes. The magic pony is doing everything for you, if you just treat it
correctly!
Basically, put the modified admin templates and static files exactly there
were you are serving your own templates and static assets normally in you
project directory.
For instance, treat the admin as an app
Hello
u'r looking for "extra" Query method.
https://docs.djangoproject.com/en/dev/ref/models/querysets/#extra
An other option more sofisticated but still work in progress, is use the
postgres manager in the project django-orm-extension
in order to use the expressions functions.
http://django-orm
I'm a fresh man.I need help.
Now,I need filter the result by datediff in the admin site,and then write
them into excel.
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/
*Dear Djangonauts
After the positive experiences at djangocon 2012 in Zürich, we’d like to
further strengthen the swiss django user community and therefore invite you
to the first meetup of the django user group switzerland. We plan to have
bi-monthly meetings at alternating locations.
The fir
Hi
I had a similar problem, Django returned a json string well (but it takes
longer than normal to generate) but Apache proxy still fail with 502 error.
I raised up timeout limit in apache setting already.
Still looking for an explanation and a solution
Thanks and regards
On Monday, August 2,
So the header for loop is the one that is not working?
Is organisation being fed to the view properly?
If you put in {{ organisation }} in the section that is rendering properly
is it showing up as you expect?
JD
On Monday, September 17, 2012 10:59:16 AM UTC-6, Satinder Goraya wrote:
>
> On Mo
WOHO! THX Guys! :)
This worked! Why is the INSTALL of the tarball other than the instruction
on git???
So now it works and I am happy! :)
Am Montag, 17. September 2012 15:22:41 UTC+2 schrieb Nick Apostolakis:
>
> On 16/09/2012 11:53 οΏ½οΏ½, Fabian Weiss wrote:
> > Allright, I didnt know that
Just I cannot login! :-D
admin/admin doesn't work.. :/
Does it has something to do with settings.py?
ADMINS = (
# ('Your Name', 'your_em...@domain.com'),
)
Should I done this before I start installation??
--
You received this message because you are subscribed to the Google Groups
"Django
On Tue, Sep 18, 2012 at 9:45 AM, jondykeman wrote:
> So the header for loop is the one that is not working?
Yes, you are right.
> Is organisation being fed to the view properly?
Yes, it fed properly, as i checked it by making a template for the
organisation view, it correctly fetch values from th
Are there any open-source multi-tenant e-commerce solutions built with Django?
I.e.: where you can have multiple shops on the one site, and a
shop-create form on the frontend to add more shops.
If there aren't any, I'd be willing to start such a project.
Thanks for all suggestions,
Alec Taylor
The text I am referring to is the one that appears as a title on all the
change list pages; I cannot, however, find it in the change_list template.
But if you have not needed to change that, then you would not be able to
help.
(PS I was not asking to see the result of your changes, but where
37 matches
Mail list logo