Re: Django app for data management and visualization

2011-04-09 Thread ucnt...@gmail.com
On Apr 8, 12:22 am, Chris Matthews wrote: > Hi Marwan, > > Another option that I'll investigate is Google Chart Tools / Image Charts > (aka Chart API) seehttp://code.google.com/apis/chart/ > Regards > Chris > Be sure to go for the "Visualization API" over the basic image based charts if you ha

Re: populating a field based on selection of foreign key

2011-04-09 Thread Ernesto Guevara
Hello! I think you need something like this in your admin.py: class SystemAdmin(admin.ModelAdmin): list_display = ("generation", "system", "cog_E") ordering = ["-cog_E"] search_fields = ("system") list_filter = ("generation") list_per_page = 10 admin.site.register(System, Syst

Re: My success messages are not returned

2011-04-09 Thread Guevara
Solved! The problem is the "RequestContext", all views need this parameters on return function, like this: If I have this function "edit": def edit(request, object_id): #code here return HttpResponseRedirect('/vagas/list') My function "list" need this in return: return render_

Re: css issues

2011-04-09 Thread rahul jain
Sorry for the incomplete message. This what the structure looks like now mysite/ media / css / file1 js/ js1 img/ img1 Settings.py MEDIA_ROOT = '' MEDIA_URL = '' ADMIN_MEDIA_

css issues

2011-04-09 Thread rahul jain
All, I copied the media directory from django project into my site project. This is what it looks like now mysite/ -- 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@googlegroups.com. To unsubscr

populating a field based on selection of foreign key

2011-04-09 Thread Aref
I am working on a database project and I am facing a little challenge. Here it is. I have three tables defined as below: class Generation(models.Model): generation = models.CharField(max_length = 25) def __unicode__(self): return self.generation class CogE(models.Model): fir

populating a field based on selection of foreign key

2011-04-09 Thread Aref
I am working on a database project and I am facing a little challenge. Here it is. I have three tables defined as below: class Generation(models.Model): generation = models.CharField(max_length = 25) def __unicode__(self): return self.generation class CogE(models.Model): fir

Re: Anyone seen following error

2011-04-09 Thread Vasil Vangelovski
It's a validation error for a DateTimeField On 4/10/11 12:28 AM, ydjango wrote: > I have a batch process which reads a text file and loads mysql DB > tables. I see following error occasionally in log files. Finding it > hard to trace but working on it. > This app is on older Django 1.1.2. Has some

Re: a noob in need (installing apps)

2011-04-09 Thread Vasil Vangelovski
A reusable application is a package. To use it you need to put the package name in INSTALLED_APPS and depending if it provides any models do syncdb after that (for mailer you need that). Usually there's detailed instructions on what you need to do to get up and running with a reusable app. But an

a noob in need (installing apps)

2011-04-09 Thread Pythia
Hi! I've been building a django-powered site for the past week and having great fun. I've got my site (on my dev server) doing exactly what I want it to do. Now I want to set up an automatic email-sending algorithm using django-mailer: http://code.google.com/p/django-mailer/ I installed it suc

Anyone seen following error

2011-04-09 Thread ydjango
I have a batch process which reads a text file and loads mysql DB tables. I see following error occasionally in log files. Finding it hard to trace but working on it. This app is on older Django 1.1.2. Has something like this encountered or fixed since then. Any clues. Error is "Enter a valid date

Re: Missing step to syncdb from models.py?

2011-04-09 Thread Jonathan Hayward
I found the problem. I needed to put 'foo' (and 'django.contrib.admin') in settings.INSTALLED_APPS. On Sat, Apr 9, 2011 at 2:29 PM, Jonathan Hayward < christos.jonathan.hayw...@gmail.com> wrote: > I am missing a step in configuration, I believe, in getting a syncdb to > create tables for the mode

My success messages are not returned

2011-04-09 Thread Guevara
Hello! I need return a "message success" to my list view, but the message not appears on html page. This is my function edit: from django.shortcuts import redirect def edit(request, object_id): if request.method == 'POST': e = Emprego.objects.get(pk=object_id) form = EditForm

Missing step to syncdb from models.py?

2011-04-09 Thread Jonathan Hayward
I am missing a step in configuration, I believe, in getting a syncdb to create tables for the models in models.py. I've attached a tarball of a project foo, in which I created a model bar, and ran a python manage.py syncdb, with the output scripted to syncdb.out. Some tables have been created; how

CSS can be loaded but is not applied (Django 1.3, mod_wsgi3.3)

2011-04-09 Thread Max
Hi! I recently updated all my Django-development-environment... from Apache over mod_wsgi, Python to Django. (On MAC OS X 10.5.8) It wasn't that easy but now at least Django seems to be working and serves from localhost for development. However... the CSS aren't applied on the Django generated te

how to Generate a 5 character unique alpha-numeric string to use as primary key in my model.

2011-04-09 Thread GOUTAM KUMAR RANA
how to Generate a 5 character unique alpha-numeric string to use as primary key in my model. how to show the generated string in a particular textbox when loading a particular form or page? Please help Thanks -- You received this message because you are subscribed to the Google Groups "Dja

ogg, audio,

2011-04-09 Thread gintare
How i should inlude *.ogg files to *.html with Django. I tried without model, directly loud file from (from the same folder where exists Gre.html) "Fin/templates" in Gre.html . http://127.0.0.1:8000/fin.ogg"; type="audio/ogg" /> OR OR OR In Opera 11 audio play icon app

Request data problem with GWT

2011-04-09 Thread Ali E . İMREK
Hi, I'm new on Django and GWT. I wrote simple application like this; __views.py__ def reply(request): return HttpResponse("Server reply:"+request.POST["data"]) __example.java__ String url = "django-server"; final RequestBuilder builder = new RequestBuilder(R

Internal server errors when client aborts fetch

2011-04-09 Thread gkuenning
When a browser client is receiving a page and decides to go away for whatever reason, Apache throws an internal server error that eventually produces an e-mail message to the admin. It took me quite a while to figure out why I was getting these random error messages. The problem is in modpython a

Re: Creating this query with django Models

2011-04-09 Thread Martin J. Laubach
Let's see... Since there is no aggregate on your outer select, the GROUP BY is basically reduced to a DISTINCT, so we can just do a distinct() on the query set. The JOINs come automatically as soon as you have ForeignKey fields (just remember to do a select_related() to avoid excessive quer

Creating this query with django Models

2011-04-09 Thread Thomas M
Hi, I've this three models: http://pastie.org/1775233 in SQL i've got this query: SELECT servertool_status.id, time, lastname , guid , score FROM servertool_status INNER JOIN servertool_currentplayers INNER JOIN servertool_player ON servertool_status.id = servertool_currentplayers.status_id AND

Re: ANN: fathom 0.2.0

2011-04-09 Thread Filip Gruszczyński
I forgot links: Homepage: http://code.google.com/p/fathom/ Documentation: http://code.google.com/p/fathom/wiki/Manual -- Filip Gruszczyński -- 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@goo

ANN: fathom 0.2.0

2011-04-09 Thread Filip Gruszczyński
Hi, I have released version 0.2.0 of fathom, python3 package for database inspection. Fathom supports retrieving database schema from Sqlite3, PostgreSQL and MySQL. This is still very early version and I am experimenting with different approaches. I would be very thankful for any input and sugges

Re: don't understand some code in class view from class based view

2011-04-09 Thread yangmin.li
actually, I concern when the csrf_exempt will be set in dispatch. as far as I know, decorators only execute the patch while the target function is running. On Apr 9, 5:51 pm, "yangmin.li" wrote: > Hi >     I am reading the source code of Class Based Generic View with the > version Djang 1.3 > In

don't understand some code in class view from class based view

2011-04-09 Thread yangmin.li
Hi I am reading the source code of Class Based Generic View with the version Djang 1.3 In django/views/generic/base.py, I can understand most code of the Class "View",but not following comments : can some one give some detailed explain, an example maybe helpful. # and possible attributes set

Theory

2011-04-09 Thread yangmin.li
Hi I am reading the source code of Class Based Generic View with the version Djang 1.3 In django/views/generic/base.py, I can understand most code of the Class "View",but not following comments : can some one give some detailed explain, an example maybe helpful. thanks # and possible attribute