Re: Customizing the Django Admin Interface

2012-09-17 Thread Derek
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

Multi-tenant open-source e-commerce solution?

2012-09-17 Thread Alec Taylor
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

Re: Extending templates

2012-09-17 Thread Satinderpal Singh
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

Re: tree.io installation with django

2012-09-17 Thread Fabian Weiss
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

Re: tree.io installation with django

2012-09-17 Thread Fabian Weiss
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

Re: Extending templates

2012-09-17 Thread jondykeman
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

Re: 502 Proxy Error trying to export PDF

2012-09-17 Thread Tien Phan
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,

Announcing django user group switzerland

2012-09-17 Thread Stefan Foulis
*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

How can I filter the result by datediff in the admin site,and then save into excel

2012-09-17 Thread CrazyNPC
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/

Re: Django & postgresql arrayfield support + filtering objects based on array contents

2012-09-17 Thread Gustavo Díaz Jaimes
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

Re: Customizing the Django Admin Interface

2012-09-17 Thread hevok
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

Re: Django tutorial part 3: Always shows raw HTML

2012-09-17 Thread Nikolas Stevenson-Molnar
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

Re: Django tutorial part 3: Always shows raw HTML

2012-09-17 Thread Nikolas Stevenson-Molnar
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

Re: Customizing the Django Admin Interface

2012-09-17 Thread JJ Zolper
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

Re: Customizing the Django Admin Interface

2012-09-17 Thread JJ Zolper
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

Re: Customizing the Django Admin Interface

2012-09-17 Thread JJ Zolper
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

Re: Django tutorial part 3: Always shows raw HTML

2012-09-17 Thread Helly
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,

Re: post method problem in django template

2012-09-17 Thread Navnath Gadakh
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

Django tutorial part 3: Always shows raw HTML

2012-09-17 Thread Helly
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

ANN: template previewer app (for developers)

2012-09-17 Thread Daniel Moisset
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

image problem

2012-09-17 Thread Harjot Mann
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

post method problem in django template

2012-09-17 Thread Navnath Gadakh
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

Re: Extending templates

2012-09-17 Thread Satinderpal Singh
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

ANN: Maymyo Business Application Infrastructre Beta 0.3.3

2012-09-17 Thread simcc
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

Re: Button action to delete files from server

2012-09-17 Thread xactive
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:

Re: Extending templates

2012-09-17 Thread jondykeman
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

Re: java script alert from view after sucessfull opreation

2012-09-17 Thread jondykeman
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

Re: tree.io installation with django

2012-09-17 Thread Nick Apostolakis
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

Re: TemplateResponse and json

2012-09-17 Thread Sebastian Henschel
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

Re: Button action to delete files from server

2012-09-17 Thread Sebastian Henschel
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

Re: Button action to delete files from server

2012-09-17 Thread Enyert Viñas
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

Re: java script alert from view after sucessfull opreation

2012-09-17 Thread Navnath Gadakh
> > 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

TemplateResponse and json

2012-09-17 Thread David
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

Button action to delete files from server

2012-09-17 Thread xactive
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

Re: java script alert from view after sucessfull opreation

2012-09-17 Thread Jirka Vejrazka
> 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

Extending templates

2012-09-17 Thread Satinderpal Singh
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

Re: Customizing the Django Admin Interface

2012-09-17 Thread Derek
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