Thank you for taking my jumbled post and helping me. It seems that
even though I haven't added my new script yet in my INSTALLED_APPS it
was checking it. Removing the errors in that script cleared up the
problem.
Thank you,
jason
On Oct 26, 7:52 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote
Very sorry, I wasn't having the problem I thought I was having. I
still don't know why the traceback was switching to the old
installation of Python, but at any rate the real problem was that it
couldn't find the settings module - my DJANGO_SETTINGS_MODULE and
PythonPath had an overlapping file-pa
On Sat, 2007-10-27 at 10:59 +1000, Malcolm Tredinnick wrote:
[...]
> I guess you know what you mean here, Jeremy, but just in case anybody
> hits this in the archives: DEFAULT_CHARSET has nothing to do with the
> internal bytestrings you pass to Django. It *only* affects the output
> from the emai
On Fri, 2007-10-26 at 12:30 -0700, mamcxyz wrote:
> I'm in the process to relaunch a django site. I build a dozen test
> (finally!) for it and work correctly before.
>
> I update django to changeset 6601 and get a lot of errors. I fix
> almost all of them except this:
>
> self.assertContains
On Fri, 2007-10-26 at 15:52 -0500, Jeremy Dunck wrote:
> On 10/26/07, mamcxyz <[EMAIL PROTECTED]> wrote:
> >
> > > What's the type and value of "request.content"? What's the type and
> > > value of "text" ?
> >
> > self.response=
>
> Err, please give the type and value of request.*content*, not
On Fri, 2007-10-26 at 15:49 -0700, Jason Sidabras wrote:
> Hello,
>
> In an effort to keep up with svn with django I have just upgraded all
> of my sites to the newest svn revision. The problem is after updating
> I get the error:
>
> >NameError at /admin/
> >name 'PasswordField' is not defined
On Fri, 2007-10-26 at 19:01 +, myahya wrote:
> I have two models: products and catregories. A product can belong to
> exactly one category. To make navigation easier, I use nested
> categories. I want to limit the admin's ability to add a product only
> to the leaf categories (those with no ch
On Fri, 2007-10-26 at 15:57 +, Luke wrote:
> In one of my django apps, I need to access another database that is
> unrelated to django's db. We are using psycopg to access this. There
> is some code running some calculations inside the db as a shared
> object, and it is tied to a connection,
On Fri, 2007-10-26 at 13:31 +, Zenom wrote:
> Let's say we had a bunch of legacy schemas in postgresql. Currently we
> have like 6 schemas if we were to re-write our admin interface from
> php to django we would need to write 6 projects 1 for each schema
> essentially (if I apply the postgresq
On Fri, 2007-10-26 at 20:47 +, SmileyChris wrote:
> Sounds like you want something like threading.local
> It's not my area of expertise, but you may be able to pick up some
> hints on how to use it from
> http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
That will only work if e
That's not a big problem, you can just do something like that:
#language {
background-color: transparent;
border-style: none;
cursor: pointer;
}
That have too few lines than a link, but follows standards, is
probably clearer, ans looks exactly the same way.
See you!
M
Hello,
In an effort to keep up with svn with django I have just upgraded all
of my sites to the newest svn revision. The problem is after updating
I get the error:
>NameError at /admin/
>name 'PasswordField' is not defined
>Request Method:GET
>Request URL: http://xxx/admin/
>Exception
On 10/26/07, mamcxyz <[EMAIL PROTECTED]> wrote:
>
> > What's the type and value of "request.content"? What's the type and
> > value of "text" ?
>
> self.response=
Err, please give the type and value of request.*content*, not request. :)
...
> 'content-type': ('Content-Type', 'text/html; charse
Sounds like you want something like threading.local
It's not my area of expertise, but you may be able to pick up some
hints on how to use it from
http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
On Oct 27, 8:53 am, "William Battersea" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I'm proba
On Oct 27, 3:36 am, Brightman <[EMAIL PROTECTED]> wrote:
> thank u.
> how can i get it in request.POST?
By changing your form to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to thi
> What's the type and value of "request.content"? What's the type and
> value of "text" ?
self.response=
Doing a self.response.__dict__ I see this relevant values:
'content-type': ('Content-Type', 'text/html; charset=utf-8')}
META:{'CONTENT_LENGTH': None,
'CONTENT_TYPE': 'text/html; charset=ut
On 10/26/07, mamcxyz <[EMAIL PROTECTED]> wrote:
>
> self.assertContains(self.response,u'Buscar:')
> File "D:\Programacion\Python\Python24\lib\site-packages\django\test
> \testcases.py", line 111, in assertContains
> real_count = response.content.count(text)
> UnicodeDecodeError: 'ascii'
Hello folks --
Today we're releasing a fix for a security vulnerability discovered in
Django's internationalization framework. The complete details are below,
but the executive summary is that you should updated to a fixed version
of Django immediately.
We are releasing point-releases of all eff
Hi,
I'm probably describing this poorly because I've never done this and I come
from a PHP background, but...
Is there anyway that I can have some variable available to all the user
sessions without resorting to a database.
E.g. I suppose I want a variable 'busy'. If any user initiates a piece
I'm in the process to relaunch a django site. I build a dozen test
(finally!) for it and work correctly before.
I update django to changeset 6601 and get a lot of errors. I fix
almost all of them except this:
self.assertContains(self.response,u'Buscar:')
File "D:\Programacion\Python\Python
Greg,
A preliminary MySQL spatial backend was added last week in r6527. The
documentation for the MySQL database API may be found at:
http://code.djangoproject.com/wiki/GeoDjangoDatabaseAPI#MySQL
You should be aware of MySQL's spatial limitations: (1) all spatial
queries are restricted to the M
I have two models: products and catregories. A product can belong to
exactly one category. To make navigation easier, I use nested
categories. I want to limit the admin's ability to add a product only
to the leaf categories (those with no children). So if I the following
structure
Electronics > Mo
Thanks Karen it works now :-) .
On Oct 26, 6:50 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> Ah, looks like you are hitting an incompatibility between the new template
> variable resolution system (went into revision 6399, on 9/20) and the
> comment-utils code. It's been reported against the
You could also just create the page, and save it as static HTML and
then serve it via Apache, et. al. If it never changes, this would
probably be the most efficient.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Thanks! I've been wondering how to access the individual fields, and
didn't know the objects implement a dictionary to get to them. That
will be handy for the future.
On Oct 26, 11:36 am, "Phil Davis" <[EMAIL PROTECTED]> wrote:
> On 26/10/2007, Luke <[EMAIL PROTECTED]> wrote:
>
>
>
> > I am proc
Ah, looks like you are hitting an incompatibility between the new template
variable resolution system (went into revision 6399, on 9/20) and the
comment-utils code. It's been reported against the comment-utils project:
http://code.google.com/p/django-comment-utils/issues/detail?id=13
ubernostrum
On 26/10/2007, Luke <[EMAIL PROTECTED]> wrote:
>
> I am processing a form that is built from a model using
> form_for_model. In the model I specified a verbose_name for each
> field. I can, of course, get the form values through
> form.cleaned_data when it is returned, but I cannot figure out wh
I am processing a form that is built from a model using
form_for_model. In the model I specified a verbose_name for each
field. I can, of course, get the form values through
form.cleaned_data when it is returned, but I cannot figure out where
verbose_name is located. I need this to produce the
Gigs_ wrote:
> how do you people create user profile in models?
> i want to created user profile for users to register
> i have don it like this, but i have feeling that it could be better
>
> class PlayersProfile(models.Model):
> user = models.ForeignKey(User)
> first_name = models.CharFi
Okay this is the portion of the for loop in my template :
-
{% for object in latest %}
{{ object.headline|escape
}}
Posted on {{ object.pub_date|
date:"F j, Y" }} by {{ object.author
In one of my django apps, I need to access another database that is
unrelated to django's db. We are using psycopg to access this. There
is some code running some calculations inside the db as a shared
object, and it is tied to a connection, so we need to keep it open and
not make a new connecti
**FREE pics download**
Earnfre.blogspot.com
**FREE SONGS DOWNLOADS***
Earnfre.blogspot.com
**FREE SONGS DOWNLOADS***
Earnfre.blogspot.com
**FREE MOBILE SOFTWARE DOWNLOADS***
Earnfre.blogspot.com
--~--~-~--~~--
I had everything (Apache, mysql, mod_python etc) installed through
macports but was still using Python from the built-in framework. That
was giving me trouble, so I tried to switch over to using the
macports Python installation, which came down as a dependency for
Apache/mod_python.
Needle
Hi again Simon,
> @ Michel: I think the best approach is to use a separate IP for Lighttpd to
> listen on, but it should be equally easy to have Lighttpd listen on
> for example port 81.
Hum, understood. The last one question (I think :-P). The use of
apache to redirect connections to lighttpd t
A few more clues on this could help people help you. What's latest? What's
the traceback associated with the exception?
Karen
On 10/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> I'm running the svn version when django start rendering the template
> it keeps raise this exception : fl
@ Malcolm: I know, I didn't mean you'd need 31 separate Apache
processes at once. Most browsers only download a few files at once per
subdomain, but that usually still involves spawning new Apache
processes. How many is dependent on many factors of course. In the end
I still believe that KeepAlive
how do you people create user profile in models?
i want to created user profile for users to register
i have don it like this, but i have feeling that it could be better
class PlayersProfile(models.Model):
user = models.ForeignKey(User)
first_name = models.CharField(maxlength=20)
last
thank u.
how can i get it in request.POST?
On Oct 26, 6:34 pm, Tomi Pievil inen <[EMAIL PROTECTED]> wrote:
> > but in python ,there is no problem
>
> That's because Django doesn't give you the whole URI, just the path
> component. "?" is a reserved character used to signal the start of
> the
> qu
Hi!
On Oct 26, 2007, at 4:07 AM, [EMAIL PROTECTED] wrote:
>
>> maybe I'm a bit confused (or tired) but
>> how would you go and cache a view that will *never*
>> change depending on a request on my application?
>
> Is the output something difficult for the view to generate?
No, it's just a massi
We are running a production site with trunk. No problems so far. Just
watch any updates and update regularly.
On Oct 23, 5:00 pm, ydjango <[EMAIL PROTECTED]> wrote:
> I am working on product which will be released end of february. I am
> planning to use Django for building the site. I am new to D
Let's say we had a bunch of legacy schemas in postgresql. Currently we
have like 6 schemas if we were to re-write our admin interface from
php to django we would need to write 6 projects 1 for each schema
essentially (if I apply the postgresql schema patches etc, but that's
beside the point).
My
On 26 Oct 2007, at 2:37 am, Kristinn Örn Sigurðsson wrote:
> Sorry if I wasn't clear about what I was talking about. :-)
>
> I'm using Darwin ports. They work similar to BSD ports (completely
> different but the idea is probably from there). With that you can
> install alot of *nix applicati
On 10/26/07, Hugh Bien <[EMAIL PROTECTED]> wrote:
> I haven't really used generic views that often, but I know you could always
> extend them by creating your own views.
>
> Inside your views.py:
>
>
> from django.views.generic.list_detail import object_list
>
> @login_required
> def my_list(*args
so I am using the code from the Django documentation to processes
information from a form with the code :
def edit_place(request, place_id):
try:
manipulator = Place.ChangeManipulator(place_id)
place = manipulator.original_object
if request.method == 'POST':
new_dat
Am Freitag, 26. Oktober 2007 10:53 schrieb äL:
> I use Django to manage addresses. To publish the data I have a list
> and a detailed view. In the detail view I can change the name,
> address, phone, etc. of the person. To do that I created an edit
> form.
>
> Now, everythin is fine. Only if I try
Register with a2zlearning and get: * More than 1000 electronic book *
Lecture notes for Arts, Commerce, Science, Management * Multiple
Choice Questions for Competitive Exams * Case Studies for Management
Aspirants * Slide Shows on various subjects * Kids Games, Software,
Comic books etc
CLICK ON
Hi Jacob,
> The mangement modules are designed for use from the command-line, so
> this is expected behavior.
OK. But the peculiar thing is that I'm almost certain that I had it
working before (2 months ago) with the command:
str_datadump = management.call_command('dumpdata', str_application,
fo
Hi again guys!
> > No, this isn't correct. No sane web browser requests every single URL at
> > once -- there is a maximum number of parallel connections they will open
> > for precisely this reason.
>
> And browser caching of static stuff like css files and images should
> hopefully ensure that
thanks very much, it is what i wanted.
On 10月26日, 下午4时54分, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> You want: '''{"version":...}''' this means you need to
> pass a dictionary to simplejson.dumps()
>
> mydict={"version":...,
> "markers": content,
> }...
> ..dumps(mydict)
>
> Am Freitag, 26.
Are you trying to submit a html form?
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send ema
Hi... Thanks for the help.Btw, Isn't 17 hours n 24 min 'a bit more
than' 16 hours? If not, then how much is 'bit more'? Please ignore if
you don't know. Do a google search?lol.Thanks all the same.
--~--~-~--~~~---~--~~
You received this message because
> but in python ,there is no problem
That's because Django doesn't give you the whole URI, just the path
component. "?" is a reserved character used to signal the start of
the
query component (see http://www.ietf.org/rfc/rfc2396.txt). In Django
you
access the query component through the request o
for example:
in urls.py, i use " (r'^login/\?next=(?P.+)/$', 'login') " to
parse this url
http://127.0.0.1:8000/user/login/?next=/user/1/add/
but i can't get the value of variable 'next ' in login function
but in python ,there is no problem.
>>> import re
>>> a="login/?next=/user/1/add/"
>>> b=r
On Oct 13, 8:09 am, Goon <[EMAIL PROTECTED]> wrote:
> can you use variables in django's templates?
>
> so like {% for x in y %}
>
> and then something like
>
> {% int x =3; x++ %}
Recently I found some handy django snippet which can be usefull for
you.
http://www.djangosnippets.org/snippets/9/
I haven't really used generic views that often, but I know you could always
extend them by creating your own views.
Inside your views.py:
from django.views.generic.list_detail import object_list
@login_required
def my_list(*args, **kwargs):
return object_list(*args, **kwargs)
- Hugh
On 10/2
You want: '''{"version":...}''' this means you need to
pass a dictionary to simplejson.dumps()
mydict={"version":...,
"markers": content,
}...
..dumps(mydict)
Am Freitag, 26. Oktober 2007 10:09 schrieb [EMAIL PROTECTED]:
> i just want to use JSON in gmap, here is an alterative method for
> UTF
I use Django to manage addresses. To publish the data I have a list
and a detailed view. In the detail view I can change the name,
address, phone, etc. of the person. To do that I created an edit
form.
Now, everythin is fine. Only if I try to change and save the birthday
(witch is a datefield) it
l1 = [1, 2]
l1 += [3, 4]
[-1, 0] + l1
Regards,
Gustaf
On Oct 26, 10:09 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> i just want to use JSON in gmap, here is an alterative method for
> UTF-8 character,
>
> s = Suburb.objects.all()
>
> contents = []
> for ss in s.iterator()
On Oct 26, 6:38 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Fri, 2007-10-26 at 05:06 +, simonbun wrote:
> > > Well, I have another server available now ;)
>
> > And you're using it for serving static content I hope? Your previous
> > setup with Apache serving everything with KeepAl
On 26 Set, 12:59, Sandro Dentella <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm meeting a weird problem in a django application.
> It works w/o any problem from my pc connecting remotely to my customer's
> apache but is not working inside the lan.
>
> I'm connecting from firefox/ubuntu they're
On Fri, 2007-10-26 at 05:06 +, simonbun wrote:
> > Well, I have another server available now ;)
>
> And you're using it for serving static content I hope? Your previous
> setup with Apache serving everything with KeepAlive off can bring many
> a server to its knees. If you serve a html page w
**FREE DOWNLOADS***
Earnfre.blogspot.com
--~--~-~--~~~---~--~~
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 unsubscribe from th
i just want to use JSON in gmap, here is an alterative method for
UTF-8 character,
s = Suburb.objects.all()
contents = []
for ss in s.iterator():
contents.append({'html': ss.name,
'label': ss.slug,
I'm running the svn version when django start rendering the template
it keeps raise this exception : float() argument must be a string or a
number , at line 11 and line 11 is {% for object in latest %} I don't
understand what is the cause of this problem . any help ?
--~--~-~--~~---
>>
> The django-users list spam abuse has become nearly intolerable. As a
> subscriber to numerous other technically oriented mailing lists, I
> very
> rarely have to deal with any spam whatsoever. Google Groups may be
> free,
> but it is apparently not without cost.
>
> Cl
Next time, try to,
[EMAIL PROTECTED] wrote:
> AsianAirfares.com Beats Closest Competitor 6 Out of 10 in
> International Travel Comparison
>
>
> AsianAirfares.com Beats Closest Competitor 6 out of 10 in
> International Travel Comparison (Car Rentals, Hotels, Air Tickets,
> Cruises).
>
> New York, NY, October 24, 200
66 matches
Mail list logo