Hello all,
I want to check the fields from web interface before those to be
added in db. If one field already exist to get a message like:
"Already exist". I want to not perform the add action, if all fields
are not validated.
--
You received this message because you are subscribed to the Go
On Jan 4, 8:18 am, NMarcu wrote:
> Hello all,
>
> I want to check the fields from web interface before those to be
> added in db. If one field already exist to get a message like:
> "Already exist". I want to not perform the add action, if all fields
> are not validated.
This isn't something
I have reinstalled django and now work ^_^
-
On Jan 3, 5:52 pm, Daniel Roseman wrote:
> On Jan 3, 1:52 pm, nameless wrote:
>
>
>
> > I am using tutorial on django official documentation. But when I point
> > tohttp://127.0.0.1:8000/admin/, I get this error:
>
> > TemplateDoesNotExist
Hello,
I have this:
and the script:
$(document).ready(function() {
$("#device_name").keyup(function() {
alert("Something");
});
});
...what I do wrong, because never do the a
I found the problem...thread closed
On Jan 4, 12:18 pm, NMarcu wrote:
> Hello,
> I have this:
>
> value="Controller 1"/>
>
> and the script:
>
>
> $(document).ready(function() {
> $("#device_name").keyup(function() {
> alert(
Another way that people can screw up SCRIPT_NAME determination in a
server is not to use WSGIScriptAlias, but use WSGIScriptAliasMatch and
not use it properly.
So, please post the actual Apache configuration snippet you are using
to map you Django application with mod_wsgi so can verify that the
c
Hi everyone,
i've just setted up a new Centos 5.4 based cloud server at Rackspace.
Installed Python2.5 and virtualenv, devel-tools, and all went ok but I
can't reach the development server.
I started a new django project, then launched
python2.5 manage.py runserver 0.0.0.0:8000, but i can't poin
> python2.5 manage.py runserver 0.0.0.0:8000, but i can't point my web
> browser to that address.
Of course I mean MY.IP.ADDRESS:8000. :)
On Jan 4, 12:01 pm, "simonecare...@gmail.com"
wrote:
> Hi everyone,
>
> i've just setted up a new Centos 5.4 based cloud server at Rackspace.
> Installed Py
I have writed this code but it doesn't work. What is the error ?
from django.db import models
from django.forms import ModelForm
from PIL import Image
import glob, os
thumb_size = 90, 90
class book(models.Model):
title = models.CharField(max_length=200)
photo = models.ImageField(uploa
I have writed this code but it doesn't work. What is the error ?
from django.db import models
from django.forms import ModelForm
from PIL import Image
import glob, os
thumb_size = 90, 90
class book(models.Model):
title = models.CharField(max_length=200)
photo = models.ImageField(upload_t
On Mon, Jan 4, 2010 at 12:04 PM, simonecare...@gmail.com <
simonecare...@gmail.com> wrote:
> > python2.5 manage.py runserver 0.0.0.0:8000, but i can't point my web
> > browser to that address.
>
> Of course I mean MY.IP.ADDRESS:8000. :)
>
>
>
> On Jan 4, 12:01 pm, "simonecare...@gmail.com"
> wrot
Ehi Marc, thank you very much.
By doing a nmap scan I noticed the port 8000 is filtered.
so I tryed flushing iptables and it worked...now i've just to set up
again filtering over other ports.
Thank you again,
Simone.
On Jan 4, 12:27 pm, Marc Aymerich wrote:
> On Mon, Jan 4, 2010 at 12:04 PM, s
On Dec 24, 2009, at 10:28 PM, brook wrote:
>
>
> On Dec 23, 5:13 am, Eric Abrahamsen wrote:
>>
>> I'm using memcached with the cache_page decorator, and it simply
>> wasn't caching
>> views.
>
>> CACHE_MIDDLEWARE_KEY_PREFIX = 'blah'
>> CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
>> CACHE_BACKEND =
Hi all,
If you have been using the new email backend feature in trunk, you
should be aware that SVN revision 12084 introduces a small, but
backwards-incompatible change.
If you are using Django 1.1 (i.e., Django stable), or you haven't
manually specified EMAIL_BACKEND in your settings file, you w
I need to make a simple chart with a list of projects and a grafic
display of the end date with a link to the project page.
It's simpler than a gantt chart.
Is there any library / snippet I can use to simplify my work?
--
Alessandro Ronchi
http://www.soasi.com
SOASI - Sviluppo Software e Sistem
hi,all
happy new year!
im my template i have some field ,but i hope that users can
customerize the form (for example,
they can add some more other fields,)i know it use json ,but i need
some source or link,
anyone can help
thanks
--
You received this message because you are subscribed to the Go
Here you go:
http://catb.org/~esr/faqs/smart-questions.html
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr
2010/1/4 Alessandro Ronchi :
> I need to make a simple chart with a list of projects and a grafic
> display of the end date with a link to the project page.
> It's simpler than a gantt chart.
>
> Is there any library / snippet I can use to simplify my work?
>
Hmmm, as I'm about to do something sim
Boy, I sure hope that you can't record audio at my house just be
virtue of my having visited a web page.
You might be able to offer a Java app (hopefully not applet) that
the user can install and run (the user may not have python),
producing a file that they can then upload to you. Or even record
I've downloaded and may try the widget.
But, unless I'm mistaking the example you show on your page:
1. You're not going to pry me away from emacs for editing python,
or css, or html, or javascript. I'm sure that others have their
favorite editors as well.
2. Even if you could provide the perfe
Hello,
I've the same problem there..
Did you find out any solution? Or at least the source of the problem?
Regards,
Ales
--
Ales Zoulek
Jabber: ales.zou...@gmail.com
--
On Sat, Oct 3, 20
There may be an easier way, but I'd write a view, even if
I then called the generic view from there.
As you've probably figured out, your definition of the queryset
occurs once at import, when object_id isn't even defined, let
alone coming from each request in turn.
Bill
On Sun, Jan 3, 2010 at 4
I'm not able to test this idea directly myself at the moment, but it
appears you're storing an absolute path (i.e., starting from the
filesystem root) in self.thumb. I'm pretty sure FileFields (and, by
extension, ImageFields) store relative paths from settings.MEDIA_ROOT.
(To make sure I'm thinkin
I find the error slightly confusing because the mentioned character, \xc2,
which is capital A with circumflex, doesn't occur in the quoted part of the
text. Line 46 not included in your post, perhaps? Apparently the pound
signs, \xa3, aren't bothering it because they're in u"", or maybe it would
Hi Bill, Simon,
On 04/01/10 16:05, Bill Freeman wrote:
> I find the error slightly confusing because the mentioned character,
> \xc2, which is capital A with circumflex, doesn't occur in the quoted
> part of the text.
\xc2 is the first byte of a character encoded in UTF-8 as two bytes.
The charac
Hi!
I'm using the Django 1.0.2 and trying to connect to a diferent
database name using the subdomain by reference,
when I access http://.mydomain.com I want to connect to the ""
database and when accessing to the
http://.mydomain.com I want to connect to the "" database.
There is
Hey guys,
I sometimes get errors which occur rarely, so it is very difficult to
reproduce them in a development environment. The traceback always
looks similar to the traceback attached below (which is just an
example).
My question: How can I make the Django error mails show the template
file nam
what about:
http://matplotlib.sourceforge.net/
--
Hinnack
2010/1/4 Daniel Hilton
> 2010/1/4 Alessandro Ronchi :
> > I need to make a simple chart with a list of projects and a grafic
> > display of the end date with a link to the project page.
> > It's simpler than a gantt chart.
> >
> > Is the
It seems like you should have two instances of Django running. Each one will be
listening on a different port, and run a different settings.py file.
In short, copy your settings.py file, and change the copy to use the alternate
database.
Then, run two copies of Django, like this (may vary based
You are probably calling {{ model.property.url }} or {{
model.get_absolute_url }} on some property/model (either FileField or
ImageField in case of property) of some model of yours that doesnt know how
to reverse back to its URL, so the template gives an error because it doesnt
know how to render i
The actual error is not my point. I know that it's somewhere in a
reverse/url method, but there is no way I can test it. The point is
that there is no helpful template traceback in the deployment error e-
mails. Maybe I should direct this to django-developers instead or file
a ticket?
On Jan 4, 6:
I see that using object_detail is the 'incorrect' generic view to show
details. I am exploring other options, including writing a custom view
to give me what I want.
On Jan 4, 8:29 am, Delacroy Systems wrote:
> I am trying to use the generic view, object_detail on a m2m
> relationship. I have mul
Yes, maybe thats more like the case.
Victor Lima
2010/1/4 Thomas Steinacher
> The actual error is not my point. I know that it's somewhere in a
> reverse/url method, but there is no way I can test it. The point is
> that there is no helpful template traceback in the deployment error e-
> mails.
On Saturday 02 January 2010 10:55:11 Waqqas Jabbar wrote:
> Hi,
>
> There are audio players available for djagon, but is there any django
> project the provide audio recording capability?
> My search has not produce any good results.
>
> There are some python based libraries liky PyAudio (
> htt
This is how I did it in views.py:
def businessshowservice_view(request, business_id):
business = Business.objects.get(pk=business_id)
services = Business.objects.get(pk=business_id).service_set.all()
return object_list(request, queryset=services,
extra_context={'
Hello all.
I'm pretty new to Django, so please forgive my ignorance.
What I'm wondering is if it's possible to have two HTMl widgets on the
admin pages that map to the same DB field. To be specific, I have an
image field for one of my DB tables. Sometimes, I might want to upload
an image from my
On Mon, Jan 4, 2010 at 11:05 AM, Bill Freeman wrote:
> I find the error slightly confusing because the mentioned character, \xc2,
> which is capital A with circumflex, doesn't occur in the quoted part of the
> text. Line 46 not included in your post, perhaps? Apparently the pound
> signs, \xa3,
I had also noticed that errors from templates were quite hard to
debug. Some time ago I saw this thread on on this group:
http://groups.google.com/group/django-users/browse_thread/thread/ee29c542dcc0dc95/aaa3f89a2a77fa3f?lnk=gst&q=template_debug#aaa3f89a2a77fa3f
I applied the very simple patch,
Thank you. I have just writed this code.
It works but I want to avoit to save 2 times with "super(book,
self).save()" ( see below ):
from django.db import models
from PIL import Image
import glob, os
thumb_size = 90, 90
class book(models.Model):
title = models.CharField(max_length=200)
On Jan 4, 4:28 pm, bluellyr wrote:
> Hi!
>
> I'm using the Django 1.0.2 and trying to connect to a diferent
> database name using the subdomain by reference,
> when I accesshttp://.mydomain.comI want to connect to the ""
> database and when accessing to thehttp://.mydomain.comI want to
Hi,
I have Django running under Apache with mod_wsgi. I've got a simple URL
handler that looks like this:
def handler(request):
response = None
if request.method == 'POST' or request.method == 'PUT':
response = HTTPResponse(status=201)
elif request.method == 'GET':
On Jan 4, 9:25 pm, Patrick May wrote:
> Hi,
>
> I have Django running under Apache with mod_wsgi. I've got a simple URL
> handler that looks like this:
>
> def handler(request):
> response = None
>
> if request.method == 'POST' or request.method == 'PUT':
> response = HTTPRespons
Can you make it fail in the development server, with DEBUG turned on?
If so, you can get more helpful error display and/or do pdb.set_trace() and
poke around.
On Mon, Jan 4, 2010 at 4:25 PM, Patrick May wrote:
> Hi,
>
> I have Django running under Apache with mod_wsgi. I've got a simple URL
>
Hello,
I'm trying to implement a default relationship between models.
Each otherApp.Partner model can have zero or more Registration models.
One Registration per otherApp.Partner can be flagged as the default
(default_reg).
What I would like is for the default_reg boolean to be configurable f
Hi,
to begin with I would like to declare that I'm still on the beginner end of
the scale when it comes to Python and Django.
I have an app which has two models:
class Item(models.Model):
title = models.CharField()
description_markdown = models.TextField()
class ItemImage(models.Model):
I have an class that I created which takes a queryset, and a field on
the model that the queryset represents. Like this:
mc = MyClass(queryset=MyModel.objects.all(), lat_lng_field='lat_lng')
The class basically filters the queryset based on some geographical
values, but in order to do that, it ne
I have a QuerySet of Books, and I want to create an Action for each
Book in that QuerySet. I want to avoid evaluating the Books QuerySet,
but the only way I can think of doing what I want to do evaluates it.
For example,
def create_actions(books, action)
books is a QuerySet of Book"""
Try to make a loop in the template, I guess that may can work
2010/1/5 Delacroy Systems
> This is how I did it in views.py:
>
> def businessshowservice_view(request, business_id):
>business = Business.objects.get(pk=business_id)
>services = Business.objects.get(pk=business_id).service_se
Hey Daniel,
Thanks for response, as always helpful and quick. Like you suggested I
changed the fields to the class. This resulted in a error because
BlogForm could not be found. So I decided not to bother the photologue
model but import the Images into the blog model. This resulted in:
* blog
Hi!
I have a model like this:
class company(models.model):
name = models.CharField(mx_length=20)
class employee(models.model):
comany = models.ForeignKey(company)
class user(models.model):
person = models.OneToOneField(person)
One company can have multiple employees but one employee only can ha
Hi all,
I am a 'very' inexperienced django user with no programming
background, so please be gentle with me :).
I just typed the following models.py file under my project_name/
app_name:
# -*- coding: utf-8 -*-
from django.db import models
# Create your models here.
class Couple(models.Model):
On Tue, Jan 5, 2010 at 5:24 AM, hakova wrote:
> Hi all,
>
> I am a 'very' inexperienced django user with no programming
> background, so please be gentle with me :).
>
> I just typed the following models.py file under my project_name/
> app_name:
>
> # -*- coding: utf-8 -*-
> from django.db impo
On Monday 04 January 2010 23:54:13 Marc Aymerich wrote:
> ...
> take a look at middle_initial of woman class ;)
Thank you very much for the fast and accurate response. Now it worked without
problem.
signature.asc
Description: This is a digitally signed message part.
I want to allow a user to search for a value and return the results
using the object_list generic view. How can I get this working?
business_search.html:
{% block content %}
Business name:
{% endblock content %}
urls.py:
(r'^?business=(?P\w+)/','businessn
http://code.google.com/p/django-graphviz/
On Mon, Jan 4, 2010 at 9:42 PM, Hinnack wrote:
> what about:
> http://matplotlib.sourceforge.net/
>
> --
> Hinnack
>
> 2010/1/4 Daniel Hilton
>
> 2010/1/4 Alessandro Ronchi :
>> > I need to make a simple chart with a list of projects and a grafic
>> > di
On Jan 5, 4:00 am, Marc Aymerich wrote:
> Hi!
> I have a model like this:
>
> class company(models.model):
> name = models.CharField(mx_length=20)
> class employee(models.model):
> comany = models.ForeignKey(company)
> class user(models.model):
> person = models.OneToOneField(person)
>
> One com
On Tue, Jan 5, 2010 at 8:09 AM, greatlemer wrote:
> On Jan 5, 4:00 am, Marc Aymerich wrote:
> > Hi!
> > I have a model like this:
> >
> > class company(models.model):
> > name = models.CharField(mx_length=20)
> > class employee(models.model):
> > comany = models.ForeignKey(company)
> > class us
Hi I just started using the subversion build of django and mysql-
python with python 2.6.3
Both django (svn 12103) and _mysql (MySQLdb rev 635) work fine and can
be imported from the command line python without any error messages.
I created a new django testproject and then modified my settings.py
58 matches
Mail list logo