I think you wanted something like this to happen:
http://jsfiddle.net/zalun/96vsU/
zalun
On 01/21/11 21:41, hank23 wrote:
> I was actually hoping to see the results of the code altering the
> screen fields dynamically when I click the button to call the
> javascript function. So if this won't do
On Jan 23, 4:11 pm, Shawn Milochik wrote:
> Cool. I just submitted a couple of sites myself.
Along with a bunch of others - looks like this post caused a flurry of
new submissions & updates to existing listings :)
On Jan 23, 5:27 pm, Graham Dumpleton
wrote:
> For each category, is there a list
On Monday, January 24, 2011 7:17:24 PM UTC+11, Ross Poulton wrote:
>
> On Jan 23, 4:11 pm, Shawn Milochik wrote:
> > Cool. I just submitted a couple of sites myself.
>
> Along with a bunch of others - looks like this post caused a flurry of
> new submissions & updates to existing listings :)
That was added a few months (or more?) back after some users emailed me asking
me to add "wsgi" to the list. Admittedly in hindsight it's a little vague and
has probably ended up being a catch-all for "wsgi: other".
--
You received this message because you are subscribed to the Google Groups
On Sunday, January 23, 2011 7:45:04 PM UTC, Tom Wieland wrote:
>
> Hello,
>
> I am trying to get the company that I work at to use Django and Python
> for future webdevelopment (whereas now that is done with PHP). We have
> lots of different customers with lots of different website needs so
> the d
Hi there,
I'm using the Coltrane Blog.
I changed
Class Meta:
app_label = 'Blog'
Now Entries in under Blog instead of Coltrane. Great this is what I
want.
However now I have created a user with privileges to add, edit and
delete entries for Coltrane app. I assigned the privileges under U
I would lile to add information to unanswered thread
http://groups.google.com/group/django-users/browse_thread/thread/6bdc81a65804fde2/f94f116fe77c0c97?lnk=gst&q=gintare+start#f94f116fe77c0c97
In the end on windows7 Django worked from comman line (start, print
cmd):
cd c:\Python27\Scripts
c:\Pyt
I am running a Django Site behind Cherokee on a vServer and I have 6 of these
threads (started by Cherokee)
python /pathToMy/manage.py runfcgi protocol=scgi host=127.0.0.1 port=58944
My vServer runs on Debian and has 256 MB RAM.
At the moment, when I test the performance it is ok, but I don’t
hi all is pretty simple my question.
when im making a query in django i use this
result = person.objects.filter(name = "nick", lastname = "smith")
this is like "select * from person where name = 'nick' and lastname = 'smith
i cant figure it out how to make
"select * from person where name = '
it'd be helpful if you can paste the output of your python manage.py
runserver
and please check that if the debug mode is enabled, it will give you
more info when you develop/test your application
Maxim
On Jan 23, 12:48 am, Flo wrote:
> Hi all,
>
> I'm a new comer to Django. As a first step, I u
On 24 January 2011 07:18, nicolas lubkov wrote:
> hi all is pretty simple my question.
> when im making a query in django i use this
> result = person.objects.filter(name = "nick", lastname = "smith")
>
> this is like "select * from person where name = 'nick' and lastname = 'smith
> i cant figure
Excerpts from nicolas lubkov's message of Mon Jan 24 04:18:18 -0200 2011:
> hi all is pretty simple my question.
>
> when im making a query in django i use this
>
> result = person.objects.filter(name = "nick", lastname = "smith")
>
> this is like "select * from person where name = 'nick' and la
1. Not sure about those you mention, but have a look at:
http://www.nosqldatabases.com/main/2010/7/27/django-and-neo4j-domain-modeling-that-kicks-ass.html
2. See:
http://stackoverflow.com/questions/238081/how-do-you-log-server-errors-on-django-sites
(Disclaimer - I do not work with any of these
hello all i was wandering if its possible to pass a model.objects.filter()
array like ¨Category¨ and ¨ Sub-category ¨ to JavaScript.
this is meant to be used in a JavaScript function to fill
a Combo-box Sub-category by changing the Combo-box ¨¨Category¨
--
Saludos.
Nicolas Lubkov
Ing. Informati
I'm trying to reconfigure to mod_wsgi and am wisely starting with a
workstation.
What changes in this line which is in full context below:
PythonHandler django.core.handlers.modpython
modpython changes, but to what does it change?
Listen 8002
WSGIScriptAlias / /home/amr/django/django.wsgi
Alias
On Monday, January 24, 2011 3:10:17 PM UTC, octopusgrabbus wrote:
>
> I'm trying to reconfigure to mod_wsgi and am wisely starting with a
> workstation.
>
> What changes in this line which is in full context below:
> PythonHandler django.core.handlers.modpython
>
> modpython changes, but to wha
On Mon, Jan 24, 2011 at 10:10 AM, octopusgrabbus
wrote:
> I'm trying to reconfigure to mod_wsgi and am wisely starting with a
> workstation.
>
>
If I'm understanding you correctly, you're trying to migrate from using
apache/mod_python to serve your Django project to apache/mod_wsgi, right?
If this
I would recommend first converting it to an intermediary format, such as
JSON or XML, as described here:
http://docs.djangoproject.com/en/1.2/topics/serialization/
You can then use JavaScript to easily manipulate it in whatever way you
want. This is basically the approach I take when doing AJAXy
I think I had this error too when I was cloning a repo from WebFaction
to use on my local dev machine. I ended up having to replace
WebFaction's manage.py with the one from Django. Let me know if it
works for you! I wish I could explain why. Can't.
On Jan 23, 8:55 pm, Graham Dumpleton
wrote:
I would like to achieve something like this:
class MyModel(models.Model):
CONST = MyModel.objects.get(id=1)
The problem is, that during class definition _mymodel table
might not exist or there might not be those objects there.
Of course I could do it like this:
class MyModel(mode
Is the browser running on the same box as djanog? By default, the
development server won't answer requests that don't come from the
local box. If this is the issue, try:
python manage.py runserver 0.0.0.0:8000
This tells the development server to accept requests from anywhere.
It is also po
Greetings all!
Subutai Corporation is looking for a Lead Server Programmer for its PULP
platform. PULP is an end-to-end system for the creation and publishing
of social-enabled content across a wide variety of connected platforms.
PULP supports collaborative professional and community authoring o
I realise i might be touching on something old here since i think i've
found a bug submission on it, but that only talks about in the
admin...
so this is my declaration of a form field...
fields = { 'xxx_venue' :
forms.CharField(widget=forms.HiddenInput(attrs={'class':'hideme','value':this_venue
On Monday, January 24, 2011 5:06:53 PM UTC, shofty wrote:
>
> I realise i might be touching on something old here since i think i've
> found a bug submission on it, but that only talks about in the
> admin...
>
>
> so this is my declaration of a form field...
>
> fields = { 'xxx_venue' :
> for
On 24 jan, 16:43, Filip Gruszczyński wrote:
> I would like to achieve something like this:
>
> class MyModel(models.Model):
>
>
> CONST = MyModel.objects.get(id=1)
>
> The problem is, that during class definition _mymodel table
> might not exist or there might not be those objects
This might be a stupid question but did you install the sqlite package?
On Mon, Jan 24, 2011 at 9:39 AM, Kelly Nicholes wrote:
> I think I had this error too when I was cloning a repo from WebFaction
> to use on my local dev machine. I ended up having to replace
> WebFaction's manage.py with the
Bruno
I will take your advice and seek out some Python literature. I did run
through an online Python tutorial about a year ago. I should probably
go through it again as I may understand it more now.
Thanks, even though your delivery is rather blunt - Trevor
bruno desthuilliers wrote:
On
response to messages:
I am using the Django inside the Linux-Debian on my windows 7 machine. This
is what happen when I opened the terminal in the Django..
command: python manage.py runserver
It runs fine... 0 errors.
It shows me the url which is http://.. then I went to the browser on
the Dj
Karen,
It worked after I used the mv command to move the settings.py
settings.py.break and then did another move where from settings.py.break to
settings.py, then I ran the server by using the manage.py syncdb. I do not
understand why that even worked ( I didn't want to use the settings.py.b
yes the sqlite package is installed. I installed the Django and the python,
and I test it to ensure it is there and it is.
On Mon, Jan 24, 2011 at 12:48 PM, Kimberly Harvey wrote:
> Karen,
>
> It worked after I used the mv command to move the settings.py
> settings.py.break and then did ano
On Mon, Jan 24, 2011 at 1:43 PM, Kimberly Harvey wrote:
> I am using the Django inside the Linux-Debian on my windows 7 machine.
do you run your browser in Windows or Linux?
if it's on windows, then accessing the dev-server on the Linux virtual
machine is just like going to any other machine; yo
I ran the browser in the linux.
On Mon, Jan 24, 2011 at 12:57 PM, Javier Guerra Giraldez wrote:
> On Mon, Jan 24, 2011 at 1:43 PM, Kimberly Harvey
> wrote:
> > I am using the Django inside the Linux-Debian on my windows 7 machine.
>
> do you run your browser in Windows or Linux?
>
> if it's on
On Mon, Jan 24, 2011 at 2:05 PM, Kimberly Harvey wrote:
> I ran the browser in the linux.
>
>
> On Mon, Jan 24, 2011 at 12:57 PM, Javier Guerra Giraldez <
> jav...@guerrag.com> wrote:
>
>> On Mon, Jan 24, 2011 at 1:43 PM, Kimberly Harvey
>> wrote:
>> > I am using the Django inside the Linux-Debia
Have you tried running it on a different port? Can you post the actual error
message you get?
-Steven Elliott Jr
On Jan 24, 2011, at 2:05 PM, Kimberly Harvey wrote:
> I ran the browser in the linux.
>
> On Mon, Jan 24, 2011 at 12:57 PM, Javier Guerra Giraldez
> wrote:
> On Mon, Jan 24, 2011
I gotten far enough to where I was able to runserver and it detects NO
errors, and that I was able to create my superusers after I've syncdb the
manage.py file. On screen: " You just installed Django's auth system, which
means you dont have any superusers defined, would you like to create on?"
Onc
Hi all,
i'm trying to do a simple thing, but it seems not so simple in django.
I have the following models
class Monitor(models.Model):
id ...
name ...
address = foreignkey(MonitorAddress)
class MonitorAddress(models.Model):
address = CharField()
what i want to do is as long as i assig
On Jan 24, 1:46 pm, Trevor Stanley wrote:
> Bruno
>
> I will take your advice and seek out some Python literature. I did run
> through an online Python tutorial about a year ago. I should probably
> go through it again as I may understand it more now.
>
> Thanks, even though your delivery is rat
hello list, I have a question. How can I get the width and the size of
an image previously saved?. This is , because I need to generate a
report with reportlab, and I must to resize the image, but I need the
original size to keep the scale.
Thanks and sorry for my bad english
--
You received thi
Try this. PIL is required anyway for the Django image field. Perhaps there's
something
built into Django to get this info, but this article will give you a more
generic and widely useful understanding.
http://www.blog.pythonlibrary.org/2010/03/28/getting-photo-metadata-exif-using-python/
Shawn
> FWIW, by that time, the MyModel class doesn't even exists yet - you
> can't refer to the current class object inside a 'class' statement
> body.
Yes, you are right. What I meant was:
class MyModel(models.Model):
...
MyModel.CONST = MyModel.objects.get(id=1)
> You could write a custom des
Hello All,
I am having a problem with my MultipleChoiceField. I have my model
field, form field and choices listed below. When I select choices 1-9,
the edit form shows that these choices have been checked (i.e. save
the form, then view the form for editing again, the previously checked
check boxe
Rainy
Yes I think you and Bruno have helped me look at it all over again and I
will certainly get into Python so I can understand it more fully. I
have not ever programmed before and although I have tried to seek local
authority courses and other types of training it seems they are not
there
fair point.
i'd been reading somewhere about using :
{% for field in form %}
{{ field.errors }}
{{ field.label_tag }}:{{ field }}
{% endfor %}
to get rid of this issue.
having just swapped it back to
{{ form.as_p }}
its all working ni
Hi,
I'm trying unsuccessfully to load data in a django multi-database
environment.
I try to store some data as tree. I used django-mptt and django-
treebeard and obtain same results.
In my settings.py, I have 2 databases:
- 'default' database with sqlite3;
- 'A_Africa_Branch_01' as second databas
Hello all,
I am trying to implement something quite simple, in my eyes. But it does not
work at all ... . Basically, I create a modelformset_factory with a model of
mine, and pass the instantiated modelformset to my template to render. And I
get the message *Caught TypeError while rendering: 'LegF
forget it. it was formset.forms ...
I *SWEAR* there is another example just with "for form in formset" ...
thanks anyway :)
Axel.
2011/1/25 Axel Bock
> Hello all,
>
> I am trying to implement something quite simple, in my eyes. But it does
> not work at all ... . Basically, I create a modelfo
Hi,
On Mon, Jan 24, 2011 at 3:09 PM, refreegrata wrote:
> hello list, I have a question. How can I get the width and the size of
> an image previously saved?...
is the image a field in a model? AKA, ImageField. If that's the case,
what's wrong with the width and height fields? [1]
HTH,
Carlos.
In forms,py, we can simple do this
e_mail = forms.EmailField(label='Your e-mail address')
this will work and be use if we use {{ form.as_table}} for example.
But if we instead use our own customization, because it's too
restricted to use the auto form render, when it comes to labels, we
have to
One suggestion is to simply reference
YourFormName.fields['e_mail'].label in the code that renders the
template, then pass it as a variable to the template.
As an example, assuming e_mail is set up in YourFormName as below:
from django.shortcuts import render_to_response
form = YourFormName()
e
Have you checked `form.email.label_tag`?
> > But this may looks ugly. Is there a way to load the label from
> > forms.py even if we are not using form.as_ ??
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
2011/1/24 Axel Bock :
> forget it. it was formset.forms ...
> I *SWEAR* there is another example just with "for form in formset" ...
>
> thanks anyway :)
> Axel.
>
Probably in the documentation for the development version :)
Regards,
--
Fabián E. Gallina
http://www.from-the-cloud.com
--
You r
If none of above seems to work, You may be using a browser like google
chrome, which by default ignores the localhost.
--
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 unsubsc
Just for the record. This issue was not solved; appears to be
happening on a SUSE Linux Enterprise Server. Does not happen on an
Ubuntu server (which I have switched to). There might be some issue
with the particular version of Python that was installed on it.
On 13 January 2011 13:44, Derek w
Hello all,
My problem is as follows: I have content (for simplicity, lets say
articles), and some content related to that (authors for the example).
I would like to add the ability for users to create versions of the
content. The procedure from user perspective is as follows: they click
a button (
54 matches
Mail list logo