On Wed, Aug 10, 2011 at 12:45 PM, RoyWilliams wrote:
> My problem is that POST data is not being copied into the request
> object that my Django code is getting, but the problem only happens
> with WSGI.
>
> When I fill in the web form with a browser, the POST data comes
> through correctly: reque
On Thu, Aug 11, 2011 at 2:58 PM, Federico Capoano
wrote:
> Hi all,
>
> i'm using the new GenericIPAddressField and validation errors are not
> translated to the language of my project.
>
> Pheraps this field hasn't been internationalized yet?
>
>
Correct. Updating translations are done as part of
On Thu, Aug 11, 2011 at 10:48 AM, Slafs wrote:
> Should i report a ticket?
>
Yes please, that's a bug in Django.
Karen
--
http://tracey.org/kmt/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-use
On Thu, Aug 11, 2011 at 7:03 AM, Jonas H. wrote:
> On 08/09/2011 12:45 AM, Jonas H. wrote:
>
>> Hello list!
>>
>> Is there any way to use a different value for a field when re-displaying
>> a form? I.e. if a user enters '42' into an IntegerField but made the
>> other fields not validate, how coul
Hi all,
Our Django Dash entry http://drawnby.jupo.org made extensive use of
Socket.IO (cross-browser websockets) and born out of that I've created a new
django-socketio package which is now available:
Github: https://github.com/stephenmcd/django-socketio
Bitbucket: https://bitbucket.org/stephenmc
copy/paste typo, sorry. It should have read/been:
def formView(request, which_form=None):
if request.method == 'POST':
if not [1, 2].__contains__(which_form):
pass # <--- iNone or nvalid form specified
else:
if which_form==1:
form =
Thanks, I just noticed that. I overlook the simplest things sometimes. =/
On Fri, Aug 12, 2011 at 10:07 PM, Karen Tracey wrote:
> On Fri, Aug 12, 2011 at 10:04 PM, Harrison wrote:
>
>> I'm going through the tutorial, about views right now. I have this
>> code:
>>
>> def index(request):
>>lat
On Fri, Aug 12, 2011 at 10:04 PM, Harrison wrote:
> I'm going through the tutorial, about views right now. I have this
> code:
>
> def index(request):
>latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
>t = loader.get_template('polls/index.html')
>c = Context({
>'
I'm going through the tutorial, about views right now. I have this
code:
def index(request):
latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
t = loader.get_template('polls/index.html')
c = Context({
'latest_poll_list': latest_poll_list
})
HttpResponse(t.
I apologize since I tried to reply via gmail. Reposting & expanding
part of a solution .
> I've figured a way that I think will work best for me for the model
> and form but I'm having trouble with writing the view. Here is my
> pseudo code
>
> models.py
> -
> class baseM
I apologize since I tried to reply via gmail. Reposting & expanding
part of a solution .
> I've figured a way that I think will work best for me for the model
> and form but I'm having trouble with writing the view. Here is my
> pseudo code
>
> models.py
> -
> class baseM
I've figured a way that I think will work best for me for the model
and form but I'm having trouble with writing the view. Here is my
pseudo code
models.py
-
class baseModel(models.Model):
first_name = models.CharField( max_length=100,
verbose_name='first')
class fo
1. In calculate_minmax_radius(), because cos is non-negative over the range -90
degrees to +90 degrees (and there are no points on the earth outside of that
range of latitudes), the abs() function would be unnecessary. But if
round off error
made the pole look like beyond the pole, that would be a
I think you have a *namespace* problem.
> and finally my forms.py :
>
>from django import forms
>from django.contrib.auth.models import User
>
> > Error was: 'module' object
> > has no attribute 'User'
#--
You are importing everything in "django/forms/" into yo
> class CommentForms (forms.Form):
> cf_writer = forms.User()
>
> Error was: 'module' object
> has no attribute 'User'
>
> Do you have any idea ?
Normal forms don't include/automatically create 'User' as a field...
The built-in comment app may be what you need:
https://docs.djangoproject.com/
On Fri, Aug 12, 2011 at 10:32 AM, Chris Fraschetti
wrote:
> I believe that in earlier versions of django if you added a view
> method to an admin, and extended the get_urls method that because it
> was under the admin it would automatically require at least a log in
> (user.is_authenticated()=True
I believe that in earlier versions of django if you added a view
method to an admin, and extended the get_urls method that because it
was under the admin it would automatically require at least a log in
(user.is_authenticated()=True. I have been working with Django 1.3
and have noticed that this i
On Aug 12, 10:37 am, Suprnaturall wrote:
>
> from django.contrib.auth.models import User
>
> class CommentForms (forms.Form):
> cf_writer = forms.User()
>
> Error was: 'module' object
> has no attribute 'User'
>
> Do you have any idea ?
cf above...
--
You received this message because you a
On 12-08-11 13:18, SixDegrees wrote:
This seems to be a common problem with Python. All the remedies, however,
suggest calling some form of wait() on the process to ensure that it has
completed. In our case, this isn't an option, because we don't want to make
Apache wait on what ought to be a rea
Humm, maybe you should right, here is my views.py :
from django.template import Context, loader, RequestContext
from myApp.models import Article, Commentaire
from django.http import HttpResponse
from django.contrib import auth
from django.contrib.auth import authenticate, login, logout
from django
On 12.08.2011 16:48, SixDegrees wrote:
Calling wait() on the processes freezes the form page until the process
completes.
The poll() also exists.
You can also start a thread that will wait() for the child. One per child
or one per all of the children.
The other way is to fork() twice as da
Sorry--I'm in the middle of an experiment and the project I pointed you at
is rather large. For the orbited.js (version 0.7) file, you may use the one
in:
https://github.com/scattering/WRed/tree/master/media/JavaScript/orbited-0.7
In the main directory:
https://github.com/scattering/WRed
In the
On Aug 12, 1:29 pm, Isaac wrote:
> Hi dudes,
>
> I'm having trouble at finding a solution for my problem. All I want to
> do is tune django admin to show, for a given user an a given model, only
> instance related to that user.
>
> my pseudocode
>
> class User
> ...
> class A
> foreign_k
Calling wait() on the processes freezes the form page until the process
completes. Since the process may take several minutes to run, this is not
acceptable. We need the process to run in the background and detach from the
server process, but when it is finished we need it to truly finish and not
Oh, and I found that first app interesting. What exactly did that do?
On Aug 12, 9:32 am, raj wrote:
> This is wayyy over my head. Thanks for the project files, but I don't
> even know where to begin with all of this. I wish there was more of an
> orbited support site. Anyway, I was trying to use
This is wayyy over my head. Thanks for the project files, but I don't
even know where to begin with all of this. I wish there was more of an
orbited support site. Anyway, I was trying to use orbited to create a
chat system on my website and I followed this tutorial:
http://www.rkblog.rk.edu.pl/w/p/
Yes, I'm familiar with celery, and eventually we would like to migrate to
that, or some other task scheduler. Right now, though, that's not in the
cards, and folks are griping about these zombies.
Brian Bouterse wrote:
>
> You should look into projects called celery and django-celery instead of
Your error has nothing to do with your form. There is an import problem in
your empireFront.views module which is preventing it from being imported.
Somewhere you are trying to import something called "User" from a place that
doesn't have any such class. It would help if you posted the imports i
Hi everyone,
I tried few thigs more but it s still don't work.
this is my new template :
{% csrf_token %}
And my view :
def vod(request, id):
article = Article.objects.get(id=id)
commentaires = Commentaire.objects.filter(article=article.id
).order_by("-dateComment")
c = Context({
'article'
On 12-08-11 10:24, Sam Walters wrote:
Dont know specifically about sql lite.
I have used django orm with postgres spatial db to find points within
a 'convex hull' bounding box shape:
sqlite also has a spatial version, just like postgres's postgis. It is
called spatialite.
Sometimes there's
You should look into projects called celery and django-celery instead of
cron.
On Friday, August 12, 2011, Thomas Orozco wrote:
> You could avoid starting the child process in your view.
>
> If it's a long running process I would actually advocate doing so.
> This might be due to limited understa
You could avoid starting the child process in your view.
If it's a long running process I would actually advocate doing so.
This might be due to limited understanding on my part, but what happens when
Apache wants to kill its child process because MaxRequests was reached?
If you don't need the jo
Probably you have to wait() for them.
The father process spawn a child process with Popen but it eventually
must wait for its termination.
Look at python doc about subprocess, wait() method.
bye
Ale
--
You received this message because you are subscribed to the Google Groups
"Django users" g
Hi dudes,
I'm having trouble at finding a solution for my problem. All I want to
do is tune django admin to show, for a given user an a given model, only
instance related to that user.
my pseudocode
class User
...
class A
foreign_key User
A1 related to User1
A2 related to User1
A3 r
We are running a Django-driven site using Apache. Some of our forms launch a
time-consuming process by using Popen:
p = subprocess.Popen(my_cmd, shell=True)
which works fine, in the sense that the command gets launched in the
background and doesn't hang the website while it processes.
These
Ok, now I've created an open project at bitbucket with a public issue
tracker so put any of your ideas/comments/bugs there.
https://bitbucket.org/weholt/django-locationbase
As mentioned I'll look more into this during this weekend and release
something next week if I get it working properly. The
Hi all,
This is what I've come up with so far. Not tested, but I came across
an old piece of code doing the same thing ( I knew I'd done it before,
just had to look deep into my code archives ;-) ):
http://dpaste.com/592639/
Comments very welcome. Expect a pypi-release some time after the
weeken
On Friday, 12 August 2011 02:13:13 UTC+1, Kevin Anthony wrote:
>
> i'm trying to interface a django json page with an android application.
> it seems most json applications written for android use
> www.somepage.com/json.php?this=that&something=anotherthing
>
> But that doesn't work with django,
>
On 08/12/2011 03:13 AM, Kevin Anthony wrote:
> i'm trying to interface a django json page with an android application.
> it seems most json applications written for android use
> www.somepage.com/json.php?this=that&something=anotherthing
>
> But that doesn't work with django,
>
> Has anyone inter
Hello everyone,
I'm trying to add comment to a custom object (here Article).
This is my forms.py :
from django import forms
from django.contrib.auth.models import User
from myApp.models import Article
class CommentForms (forms.Form):
cf_comment = forms.CharField()
cf_writer = forms.User(
Thomas
Don't know if this helps but one degree of latitude is sixty nautical
miles at the equator and slightly less at the poles. Not worth worrying
about.
OTOH, one degree of longitude shrinks from 60 NM at the equator to zero
at the poles - which might help you visualize the necessary math
On 3 srp, 21:56, Tom Christie wrote:
> I just had to do the same thing. Tried to use the django-sane-testing
> package, but didn't have much success there.
Might I ask what was the problem?
> Cheers,
> T.
Thanks,
Almad
--
You received this message because you are subscribed to the Googl
Dont know specifically about sql lite.
I have used django orm with postgres spatial db to find points within
a 'convex hull' bounding box shape:
from django.contrib.gis.geos import GEOSGeometry, Polygon, LineString,
Point, LinearRing
from django.contrib.gis.measure import D
coords_in = simplejs
Thanks for your detailed reply :-) I'll try to figure it out. So far I
got a few candidates for a solution but the math functions seem to be
somewhat different on the different database platforms so I need to
experiment some more to find one that works on the three major ones (
sqlite, postgres and
44 matches
Mail list logo