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
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
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_
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_
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
26 matches
Mail list logo