Re: Django Chartit Installed, How do I run the demo???

2013-07-16 Thread Nigel Legg
You need to include it as an app in a Django project. Regards, Nigel Legg 07914 740972 http://www.trevanianlegg.co.uk http://twitter.com/nigellegg http://uk.linkedin.com/in/nigellegg On 17 July 2013 06:44, Tony Guilin wrote: > BTW, I'm using http://chartit.shutupandship.com/docs/#how-to-use >

Re: new user having trouble displaying images stored on local disk drive

2013-07-16 Thread Lukas Nemec
Hi, You are not the first to have trouble when serving images from django's built-in server. It is not only images, but all staticfiles. I'd like to clarify your settings.py The directory you have put in STATICFILES_DIRS will be available to django as /static/ in your web app, but you need t

Re: django template prints

2013-07-16 Thread Lukas Nemec
If you have some DB model where is the data saved, you can do this from project.app.models import NameOfModel # try this, but if it will not work, look at django models help filtered_data = NameOfModel.objects.filter(job_id___gt=29).filter(job_id__lt=401) for d in filtered_data: print d

Re: Big Picture?

2013-07-16 Thread Doug Ballance
A suggestion: Make the return arrow from views more clearly indicate that return path goes through the middleware (since it passes through once as a request, and back through the middleware in reverse with the response) and back through the webserver layers. I'm probably asking for a lot, but i

Re: Django Chartit Installed, How do I run the demo???

2013-07-16 Thread Tony Guilin
BTW, I'm using http://chartit.shutupandship.com/docs/#how-to-use On Tuesday, July 16, 2013 10:43:39 PM UTC-7, Tony Guilin wrote: > > I'm a complete noob. > > I've been able to go through the Djano tutorial with minimal issues. > > I successfully installed this according to: > Installation¶

Django Chartit Installed, How do I run the demo???

2013-07-16 Thread Tony Guilin
I'm a complete noob. I've been able to go through the Djano tutorial with minimal issues. I successfully installed this according to: Installation¶ You can install Django-Chartit from PyPI. Just do $ pip install django_chartit You also need

django template prints

2013-07-16 Thread Harjot Mann
In my project the lab reports, reciepts, and bills are made from html templates but thse are not saved anywhere but now I need to take the print outs of all the reports which are made till now for example form job_id 30 to 400. I want to make function for this so that it can be done in a one script

Re: Design for storing likes/dislikes?

2013-07-16 Thread donarb
On Tuesday, July 16, 2013 5:29:47 PM UTC-7, Victor Hooi wrote: > > Hi, > > We have a list of users, who are going to like/dislike various widgets. > > My question is regarding how to store the like/dislikes. > > Essentially, there can be three states between a user and a widget - like, > dislike,

Design for storing likes/dislikes?

2013-07-16 Thread Victor Hooi
Hi, We have a list of users, who are going to like/dislike various widgets. My question is regarding how to store the like/dislikes. Essentially, there can be three states between a user and a widget - like, dislike, and unrated, so it's not just a straight Boolean. I'm thinking of just doing

Re: SQLite3 refuses to work when running syncdb

2013-07-16 Thread Rafael E. Ferrero
hahaha... its ok... you will find that its really cool coding webs with Django... See ya! 2013/7/16 Alex Hall > Well, disregard my email. I was selecting the dictionary to copy into my > reply when I noticed I'd transposed two letters in the path, meaning that > Django was trying to access a pa

Re: SQLite3 refuses to work when running syncdb

2013-07-16 Thread Alex Hall
Well, disregard my email. I was selecting the dictionary to copy into my reply when I noticed I'd transposed two letters in the path, meaning that Django was trying to access a path that does not exist. That will certainly throw errors! :) Thanks anyway, and I'm sure I'll have more questions as

Re: SQLite3 refuses to work when running syncdb

2013-07-16 Thread Rafael E. Ferrero
maybe pastebin your code helps... you have permission on folders where sqlite file will be created? I have this in settings.py (django 1.3.1): ... 'default': { # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'ENGINE': 'django.db.backends.sqlite3', #

SQLite3 refuses to work when running syncdb

2013-07-16 Thread Alex Hall
Hello list, I am well versed in Python, and I hate web development, but I have to make a website for my business. So, I thought I'd use Python to make the task more tolerable. I'm working through the official Django tutorial, and am at the part where I am to run "python manage.py syncdb". Howev

Re: duda

2013-07-16 Thread Rafael E. Ferrero
Espectacular Ernesto... Yo tambien me pegué unos frentazos bárbaros cuando empecé a quere hacer mi propio sistema de administración :P Saludos El 16 de julio de 2013 17:38, Ernesto Pulgaron escribió: > bueno vicherot ho pretendo empezar a documentarme, muchas gracias, te > avisare en cto term

Re: duda

2013-07-16 Thread Ernesto Pulgaron
bueno vicherot ho pretendo empezar a documentarme, muchas gracias, te avisare en cto termine El lunes, 15 de julio de 2013 16:39:08 UTC-4, vicherot escribió: > > Fijate aca > https://docs.djangoproject.com/en/1.5/topics/auth/default/#module-django.contrib.auth.viewsque > tenes herramientas par

Re: Mysterious WHERE clause when updating an object

2013-07-16 Thread J. Barber
Thanks, Tom. I overlooked the primary keys. Justin On Tuesday, July 16, 2013 9:44:04 AM UTC-6, Tom Evans wrote: > > On Mon, Jul 15, 2013 at 3:05 PM, J. Barber > > wrote: > > I am having trouble updating an existing table using django on ms sql > > server. Here is the query I am using: > > >

trouble displaying images stored on disk drive

2013-07-16 Thread evh
Hello, I am having trouble displaying images stored on my local disk drive. Displaying images pulled from the web work fine, it is only the local ones that are not showing up. I am developing in a Windows environment and am not using a production server yet - everything is on a single computer

new user having trouble displaying images stored on local disk drive

2013-07-16 Thread evh
Working in a Windows environment without a production server - everything on one machine for ease of development (or so I thought). Can display images pulled from the web, but not any stored on local hard drive. Some of the relevant items in my settings.py looks like this: MEDIA_ROOT = 'C:/djc

django templates

2013-07-16 Thread Harjot Mann
In my project the lab reports, reciepts, and bills are made from html templates but thse are not saved anywhere but now I need to take the print outs of all the reports which are made till now for example form job_id 30 to 400. I want to make function for this so that it can be done in a one script

Re: First-time user: Creating first project in tutorial

2013-07-16 Thread Tom Evans
On Mon, Jul 15, 2013 at 6:43 PM, Joshua Phillips wrote: > Hello All, >I'm running django for the first time using the enthought canopy IDE for > python. I'm trying to work through the tutorial and although the cmd line > tells me I have successfully installed django 1.5.1 . But when I try runn

Re: First-time user: Creating first project in tutorial

2013-07-16 Thread gilberto dos santos alves
Please what is your environment (windows, os x, linux), what procedure you use to start? these details are very import for we help you. Em segunda-feira, 15 de julho de 2013 14h43min11s UTC-3, Joshua Phillips escreveu: > > Hello All, >I'm running django for the first time using the enthought

Re: Mysterious WHERE clause when updating an object

2013-07-16 Thread Tom Evans
On Mon, Jul 15, 2013 at 3:05 PM, J. Barber wrote: > I am having trouble updating an existing table using django on ms sql > server. Here is the query I am using: > c = Candidacy.objects.get(id_num=610020956, stage__in=('150 ', '350 ')) c.enroll_dep_amt = 146 c.save() > > But t

mutable verbose_name and help_text

2013-07-16 Thread Mike Dewhirst
Is there a way to adjust inherited verbose_name and help_text in child tables depending on which child table is inheriting? Sergiy Khohlov very kindly offered a generic OOP solution[1] to a recent question I asked "how can an abstract class know which class inherits it" I tried Sergiy's solut

Re: save data from html table

2013-07-16 Thread Bill Freeman
I presume that you mean an HTML table. Didn't you already have to have the data in order to render the template? Or are you using a template that someone else has rendered, that you have, in python, as a string? If this, then there are many libraries that can parse a DOM for you. If it is XHTML

Re: or-ing to QuerySets turns INNER into LEFT OUTER joins?

2013-07-16 Thread Jon Dufresne
I too would be interested to know if there is a solution. A LEFT OUTER JOIN can really hurt performance when an INNER JOIN are more appropriate,. On Mon, Jul 15, 2013 at 8:41 AM, Carsten Fuchs wrote: > Hi all, > > we have two queries/QuerySets Q_a and Q_b, each of which use INNER joins > in the

Re: save data from html table

2013-07-16 Thread Lukas Nemec
Alright, so you have some rendered table in template, and you want to get it back to view? That is the other way around I'm afraid... request | DB -> model -> urlconf - > view -> template -> response this is how the django respond

Re: save data from html table

2013-07-16 Thread Randa Hisham
my problem not to save to database but is how to get data from template On Tue, Jul 16, 2013 at 3:03 PM, Lukas Nemec wrote: > That depends, you could use django.db models to access that table, > but that depends on the table - there is a ton of information on this > subject here: > > https://d

Re: save data from html table

2013-07-16 Thread Lukas Nemec
That depends, you could use django.db models to access that table, but that depends on the table - there is a ton of information on this subject here: https://docs.djangoproject.com/en/dev/topics/db/models/ Or, you could write a custom SQL that would fetch exactly the data you want, and save

save data from html table

2013-07-16 Thread Randa Hisham
if i have dynami table in my template contain data wht is the best way to save this data from table to view -- Randa Hesham Software Developer Twitter:@ro0oraa FaceBook:Randa Hisham ٍ -- You received this message because you

Re: Python 2.7 + Django 1.4 + apache 2.4

2013-07-16 Thread Mike Dewhirst
On 16/07/2013 9:59pm, Robert Jonathan Šimon wrote: I have one question what must be in wsgi.py? This is mine ... which works for Django 1.5 from __future__ import unicode_literals # -*- coding: utf-8 -*- import os import sys from django.core.wsgi import get_wsgi_application project = "xxx" sr

Re: Python 2.7 + Django 1.4 + apache 2.4

2013-07-16 Thread Lukas Nemec
Take a look here: https://nemec.lu/en/how-to/~django-nginx-uwsgi-ssl It is not apache, but nginx + uwsgi app + django wsgi.py is generated automatically by manage.py startproject example is here: https://github.com/lunemec/wysiwyg/blob/master/wysiwyg/wsgi.py Note: this is the app that runs un

Re: Python 2.7 + Django 1.4 + apache 2.4

2013-07-16 Thread Robert Jonathan Šimon
I have one question what must be in wsgi.py? Dne úterý, 16. července 2013 1:11:48 UTC+2 maiquel napsal(a): > > How to set up django on Apache > > I'm using django 1.4 > and apache 2.4 > and Python 2.7 > My configuration is well > > in httpd.conf > > WSGIScriptAlias ​​/ C :/ xampp / htdocs / My_blo

RE: [] Image cropping tool

2013-07-16 Thread Henrik Genssen
maybe google? http://bit.ly/12tMXpq 2nd hit >reply to message: >date: 16.07.2013 13:30:57 >from: "Deepak Sharma" >to: django-users@googlegroups.com >subject: [] Image cropping tool > >I want an image cropping tool in my app. It should work like this when >i clicked on browse button, after select

Re: showing the checked item alone in template

2013-07-16 Thread Lukáš Němec
You should do something like this (I havent tried it but it should work): 1. you are missing this in forms.py class Meta: model = Actions 2. then you can do this in your views: form = PersonActionsForm() actions = form.fields['actions'] for choice in actions.choices: # do something

Image cropping tool

2013-07-16 Thread Deepak Sharma
I want an image cropping tool in my app. It should work like this when i clicked on browse button, after selecting image image cropping tool pop up and image crop and save in it. I am trying to add jcrop image cropping tool but i don't have much knowledge that how i attached it with python as it al

Presentation on Video Editing

2013-07-16 Thread Harjot Mann
Video Editing Presentation at 3pm. Be there. -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ -- 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 django-u

Re: Python 2.7 + Django 1.4 + apache 2.4

2013-07-16 Thread Mike Dewhirst
On 16/07/2013 12:25pm, carlos wrote: where is the error ?? On Mon, Jul 15, 2013 at 5:11 PM, maiquel mailto:maiquelknech...@gmail.com>> wrote: How to set up django on Apache I'm using django 1.4 and apache 2.4 and Python 2.7 My configuration is well in httpd.conf Th