On 29 май, 20:54, athick2 wrote:
> I am trying to install Django on Windows XP.
>
> I have python in C:\Python25
>
> I have extracted django into C:\Program Files\Google\google_appengine
> \izonyu\Django-1.0.2-final
>
> when i try to install django, i run into problems
>
> Goto C:\Program Files
On May 29, 3:48 am, motard wrote:
> Hi!
>
> Thanks for all your suggestions. I've been able to solve the issue.
> Now the page reports to be executing roughly 80-90 SQL queries and is
> performing well.
>
> The problem was mainly in two places of my code where I was looping
> through all the re
On May 29, 2009, at 8:25 PM, david.schruth wrote:
>
> Hello,
>
> I'm trying to get this working for multiple (non public) schemas in
> postgresql databases using the psycopg2 database driver. I'm using
> the most current svn of django 1.01 (from today).
>
> ...
> Does anybody have a solution for
thank Ariel and Juan
is true tutorial02 is help me very much thank again
carlos
2009/5/29 Ariel Nunez
> Carlos, all the info you need to enable the admin and customize it for your
> app is on this page:
>
> http://docs.djangoproject.com/en/dev/intro/tutorial02/
>
> Specifically, look for 'list
Hello,
I'm trying to get this working for multiple (non public) schemas in
postgresql databases using the psycopg2 database driver. I'm using
the most current svn of django 1.01 (from today).
I've tried both of the following two methods neither of which seem to
work:
db_schema = 'whatever' #
Hello everyone,
I just want to announce a brand new tool developers can use to
compress all JS and CSS files easily. It's called Django Aggregator,
and you can find it over at http://www.sgawebsites.com/projects/aggregator/.
It's very simple, and automatically aggregates everything between the
ta
When you use grantstartdt__year in your filter, it's looking for an
integer, not an instance of your Year model, which is what you have in
your view. So, assuming the pk attribute in Year is an integer, you'd
change your line to something like this:
projectyr=Researchproject.objects.exclude(activ
Carlos, all the info you need to enable the admin and customize it for your
app is on this page:
http://docs.djangoproject.com/en/dev/intro/tutorial02/
Specifically, look for 'list_display' and put there all the columns you want
to see on the admin interface for your model.
Ariel.
PS:
If you ne
Hello,
I am attempting to write a small CMS application in hopes of learning
Django more in depth.
Currently a page is just for editing textual content and it gets sent
to a template (much like the flatpage) the problem is if I had a
contact page, that happens to have a form on it, what would be
repite lo que quieres hacer en espanol
On Sat, May 30, 2009 at 5:13 PM, Carlos Rocha wrote:
> I need help I have a data matrix of 6x6 or more what I need is to make the
> matrix within the Django admin, but not make them any ideas
> example:
> colunm1 | colunm2 | colunm3 |
> first rowdata1
I need help I have a data matrix of 6x6 or more what I need is to make the
matrix within the Django admin, but not make them any ideas
example:
colunm1 | colunm2 | colunm3 |
first rowdata1 data2
second row data1 data2
.
.
.
in the first row and all colunmn have title static only data
I just resolve this! hehe just few minutes from posting this below :)
thank you all anyway!!!
On May 29, 10:33 pm, lperk wrote:
> hey U all!
>
> I'm trying to resolve this problem but there is no result..probably is
> something stupid but I can't see it.. I have this tables in models.py:
>
> cla
I'm trying to add a default category to any blog entry saved without
one. I'm using the following code:
def save(self):
super(Entry, self).save()
if self.categories.count() == 0:
try:
cat = self.blog
hey U all!
I'm trying to resolve this problem but there is no result..probably is
something stupid but I can't see it.. I have this tables in models.py:
class Link(models.Model):
url = models.URLField(unique=True)
def __str__(self):
return self.url
class bookmark(models.Model):
title
Hello,
year_id (2004 etc) is a dropdown box on the template. The users
selects a year and this is retrieved as year_id in the view. I need
to select publications based on year from a field called grantstartdt
which is in the format 2008-01-01. The error is:
int() argument must be a string or
Try to unpack django from a directory with no white space in the name,
for instance:
C:\downloads\Django-1.0.2-final
Make sure that you use a suitable unzip package. There is an issue
with some version of winzip where empty __init__.py files are not
extracted.
On May 29, 12:54 pm, athick2 wro
On Fri, 2009-05-29 at 14:49 -0500, Alex Gaynor wrote:
>
>
> On Fri, May 29, 2009 at 2:45 PM, Mike Driscoll
> wrote:
>
> Hi,
>
> I asked a similar question about this last year and was told
> that
> Django would eventually support composite keys,
Russell Keith-Magee a écrit :
> You could probably genericize your redirect_to_url view a little bit
> more - you could make the class that is used for lookup configurable,
> for example - but you have essentially hit on the solution.
>
> The issue is that 'shortcut', as captured by the regular e
Hi and thanks for your reply. The problem is that I will autoload
excel files into the database without a slug field. So I guess I need
to filter the categories by the exact same name and that's why I
started with the parameters.
On 29 mei, 18:19, "scot.hac...@gmail.com"
wrote:
> On May 28, 1:04
Hi Alex,
On May 29, 2:49 pm, Alex Gaynor wrote:
> On Fri, May 29, 2009 at 2:45 PM, Mike Driscoll wrote:
>
> > Hi,
>
> > I asked a similar question about this last year and was told that
> > Django would eventually support composite keys, but currently did not.
> > Has that changed?
>
> > If not
This particular client is non-profit and they have a minimal budget
for this, so they requested that I use the payment provider's form
since it already has an SSL certificate. I realize getting a SSL
certificate and hosting the checkout process on the client's website
makes the most sense, but I'
On Fri, May 29, 2009 at 2:45 PM, Mike Driscoll wrote:
>
> Hi,
>
> I asked a similar question about this last year and was told that
> Django would eventually support composite keys, but currently did not.
> Has that changed?
>
> If not, if there a recommended way to use SqlAlchemy in Django? I se
On May 29, 11:54 am, athick2 wrote:
> I am trying to install Django on Windows XP.
>
> I have python in C:\Python25
>
> I have extracted django into C:\Program Files\Google\google_appengine
> \izonyu\Django-1.0.2-final
>
> when i try to install django, i run into problems
>
> Goto C:\Program Fi
Hi,
I asked a similar question about this last year and was told that
Django would eventually support composite keys, but currently did not.
Has that changed?
If not, if there a recommended way to use SqlAlchemy in Django? I see
that most of the projects that were supposed to integrate SqlAlchem
On Fri, 2009-05-29 at 11:38 -0700, Roberto Cea wrote:
> I am accepting user input using the Jeditable library for jQuery,
> which sends the data as POST parameters "id" and "value". I am reading
> these parameters into a django.forms.Form to sanitize it, like so:
>
> class EditInPlaceForm(forms.F
The latter problem is solved. It was just a mysql integrity error because of
a larger field name.
I just resized the field sizes and it works!
On Fri, May 29, 2009 at 8:44 PM, Lakshman Prasad wrote:
> I performed *python2.5 manage.py dumpdata* on a project folder and
> received the following erro
On Fri, 2009-05-29 at 09:52 -0700, M Godshall wrote:
> Based on everything that I've read on the subject the last few days,
> it sounds like it's impossible to redirect a user to an external url
> with POST data. If that's the case, I really need some help figuring
> out a secure solution to the
I am accepting user input using the Jeditable library for jQuery,
which sends the data as POST parameters "id" and "value". I am reading
these parameters into a django.forms.Form to sanitize it, like so:
class EditInPlaceForm(forms.Form):
id = forms.CharField()
value = forms.CharField()
On Fri, May 29, 2009 at 1:39 PM, Serendipity wrote:
>
> I am trying to setup stackless and django.
> [snip]
Answered in this other identical thread:
http://groups.google.com/group/django-users/browse_thread/thread/824ba571939020b2#
Karen
--~--~-~--~~~---~--~~
Y
On Fri, May 29, 2009 at 1:25 PM, Chandrashekar Jayaraman
wrote:
> Hi,
>
> I am trying to setup stackless and django.
> For this purpose I am using python2.6 , I installed stackless (
> ./configure, make, make install ) using this.
> I also installed the psycopg package with python ( stackless ) b
---
ashish tiwari wants to stay in better touch using some of Google's coolest new
products.
If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-d1daa37620-00464c385d-2a1eb8c3350f9891
You'll need to cl
I am trying to setup stackless and django.
For this purpose I am using python2.6 , I installed stackless ( ./
configure, make, make install ) using this.
I also installed the psycopg package with python ( stackless ) but for
some reason when i try to run shell it throws up an error saying that
d
Hi,
I am trying to setup stackless and django.
For this purpose I am using python2.6 , I installed stackless (
./configure, make, make install ) using this.
I also installed the psycopg package with python ( stackless ) but for some
reason when i try to run shell it throws up an error saying that
I have two django based websites and I want show pages from one
website in another. Is Iframe the best way to do it or is there some
other better. I read somewhere that Iframes should be avoided but
never got any good reasons why?
--~--~-~--~~~---~--~~
You receive
I am trying to install Django on Windows XP.
I have python in C:\Python25
I have extracted django into C:\Program Files\Google\google_appengine
\izonyu\Django-1.0.2-final
when i try to install django, i run into problems
Goto C:\Program Files\Google\google_appengine\izonyu\Django-1.0.2-
final
Based on everything that I've read on the subject the last few days,
it sounds like it's impossible to redirect a user to an external url
with POST data. If that's the case, I really need some help figuring
out a secure solution to the following scenario:
My client wants to use the secure paymen
On May 28, 1:04 pm, Michael wrote:
> If I look to the admin is see that for example spaces are replaced by
> a '+' sign and & is replaced by '%26'. I have just white spaces and
> the & sign in my parameters. To avoid this I have put the urlencode
> filter in my template.
>
> Example:
>
> {% for
Thanks
--~--~-~--~~~---~--~~
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 email to
django-users+unsubscr...@g
> i m ashish,
> i m new for django...
Apparently new to mailing-lists too:
1) for new topics, start a new thread instead of replying deep
within a non-relevant thread
2) post once. Posting the same message multiple times will just
peeve people.
> i have a problem
Clearly more than one.
> h
I performed *python2.5 manage.py dumpdata* on a project folder and received
the following error:
Error: Unable to serialize database: Project matching query does not exist.
Also, I have a file dump.xml obtained by dumpdata on a different
environment. The loaddata stops abruptly leaving the follow
i m ashish,
i m new for django...
i have a problem
how can i delete my table from database using SQLite3
how can i get the db file on command shell of sqlite...
how can i drop the table.
please give me the answer...
from novice.
thank you.
--~--~-~--~~~---
i m ashish,
i m new for django...
i have a problem
how can i delete my table from database using SQLite3
how can i get the db file on command shell of sqlite...
how can i drop the table.
please give me the answer...
from novice.
thank you.
--~--~-~--~~~--
i m ashish,
i m new for django...
i have a problem
how can i delete my table from database using SQLite3
how can i get the db file on command shell of sqlite...
how can i drop the table.
please give me the answer...
from novice.
thank you.
--~--~-~--~~~--
hi,
i m ashish,
i m new for django...
i have a problem
how can i delete my table from database using SQLite3
how can i get the db file on command shell of sqlite...
how can i drop the table.
please give me the answer...
from novice.
thank you.
--~--~-~--~~--
I have some very simple views that act as forms because there is no
information to fill out. I get all the information from the url and
the request object.
For example, I may have a model like:
class Subscription(models.Model):
user = models.ForeignKey(User)
magazine = models.Fo
Wiadomość napisana w dniu 2009-05-29, o godz. 16:47, przez Andrew:
> I want to launch web server process in release mode.
> But executing from shell "python -O manage.py runserver" doesn't
> affect web server process, that
> is launched in debug mode. Also setting settings.DEBUG = True doesn't
>
Hi,
I want to launch web server process in release mode.
But executing from shell "python -O manage.py runserver" doesn't
affect web server process, that
is launched in debug mode. Also setting settings.DEBUG = True doesn't
affect launch mode, but
this was expected.
Any suggestion?
Tnx,
Andrew
-
Have a choice of "Other", and provide a separate field for the user to
type in their own data. That's a pretty standard way to handle that.
If you wanted to make it fancier, you could even have javascript to
only show the "other" text box if they've chosen the "Other" option.
-Jeff
On May 29, 2
On Fri, May 29, 2009 at 9:56 AM, Peter Bengtsson wrote:
>
> Basically, I was able to override MyModel.objects and write my own
> custom filter() and exclude() which makes it possible to filter and
> exclude on non-DB fields.
> But this qs.filter() is a the queryset that MyModel.objects
> "wraps"
I looked into this deeper.
You can't have a filter widget in the admin of methods rather than DB
fields.
That's bad I thought, but let's just pretend its there and hardcode
the links. So I tried adding ?man=1 to the URL
/admin/myapp/mymodel/?man=1
But it doesn't like that and redirects to
/admin/m
On Fri, May 29, 2009 at 5:45 AM, will0 wrote:
>
> Dear All,
>
> Take two models - "Contact" which has a many to many relationship with
> "MailList" (defined on MailList).
>
> When a user who only has permissions to delete from Contact attempts
> to delete any contact, whether or not they're in a
Greetings,
I'm using the latest stable release of Django 1.0.2
We recently noticed that Django is creating thousands of temp
directories with path names like "/tmp/tmpkMI0KO/". Mostly these are
empty.
I looked through the docs to see if there were any references and that
led me to add the follow
On Fri, May 29, 2009 at 4:48 AM, motard wrote:
>
> One thing that I'm not sure if it's a fault of mine is that the
> cache.add() method throws a NotImplementedError, even though in the
> documentation it says it's available...
That sounds odd. add() was added nearly 2 years ago and implemented
I don't know where is your problem,
You should try to add the django installation folder to the project
source folder to get correct completion.
I hop this partial data may help you
On Apr 15, 3:51 am, Victor Hooi wrote:
> heya,
>
> I'm still a bit confused as to how to setup Django to work wi
Apparently, Adrian doesn't think it should work with anything but DB
fields
http://code.djangoproject.com/ticket/2334
Crap!
On May 29, 1:49 pm, Peter Bengtsson wrote:
> When I register my model to the admin it doesn't allow me to use a
> method in list_filter :(
> This pseudo code should explain
When I register my model to the admin it doesn't allow me to use a
method in list_filter :(
This pseudo code should explain my situation:
class MyModel:
gender = models.CharField()
age = models.IntegerField()
@property
def man(self):
return self.gender == 'male' and
I can apply a filter to convert the request.GET.subseries value to an
integer but is still does not match???
{% ifequal id request.GET.subseries|intvalue %}
I have tried the other way round converting the id to an integer and
keeping the request.GET.subseries as is and this again does not work.
i hope you are encountering the problem as request.GET.subseries is
string and id is integer and they are not matching.
On May 29, 3:52 pm, mbdtsmh wrote:
> I have the problem below when I use a tuple to try and match a request
> item; i.e., it never matches. I can do the same thing with a list
On Fri, May 29, 2009 at 4:57 PM, motard wrote:
>
> This does indeed seem to have relation with the contents of what is
> being dumped to JSON.
>
> My experience is that simply dumping the data of a db will result in a
> file that will not be loadable "as is".
...
> So I'm not sure whether it make
I also encorage you to look at the django-mptt package.
On May 27, 11:41 pm, adelaide_mike
wrote:
> Thank you Tom and Daniel. Starting to see some light here.
>
> Mike
>
> On May 28, 1:25 am, Daniel Roseman
> wrote:
>
> > On May 27, 2:59 pm, Tom Evans wrote:
>
> > > On Wed, 2009-05-27 at 06:2
I have the problem below when I use a tuple to try and match a request
item; i.e., it never matches. I can do the same thing with a list
rather than a tuple value and it works fine? I have tried to convert
the tuple to a string but no joy - is there something obvious I'm
missing???
Hi everyone,
I have a question about how to pass a variable from one view function
to another view function, and how to displace the variable from one
html template to another one.
for example : I want Pquery(query)[1] in Psearch to be stored, and
then call it in another function page. In addit
Dear All,
Take two models - "Contact" which has a many to many relationship with
"MailList" (defined on MailList).
When a user who only has permissions to delete from Contact attempts
to delete any contact, whether or not they're in a mail list, they get
a permission denied message.
"""
Deleting
On May 29, 6:15 am, Brian May wrote:
> On Thu, May 28, 2009 at 11:36:10PM -0500, Alex Gaynor wrote:
> > Loops put some vary helpful variables in the context, so you can do
> > something like:
>
> > {% for pp in object.photoperson_set.all %}{{pp.person}}{% if not forloop.last %},
> > {% endif %} {
This does indeed seem to have relation with the contents of what is
being dumped to JSON.
My experience is that simply dumping the data of a db will result in a
file that will not be loadable "as is".
I understand that this doesn't mean that there is a problem with that
functionality.
When purg
if you do this to get a comma separated list you might like
https://launchpad.net/django-export-csv
On May 29, 7:15 am, Brian May wrote:
> On Thu, May 28, 2009 at 11:36:10PM -0500, Alex Gaynor wrote:
> > Loops put some vary helpful variables in the context, so you can do
> > something like:
>
>
Hi!
Thanks for all your suggestions. I've been able to solve the issue.
Now the page reports to be executing roughly 80-90 SQL queries and is
performing well.
The problem was mainly in two places of my code where I was looping
through all the results of a related set for every row in a paged
obj
This article will help a lot:
http://www.b-list.org/weblog/2008/nov/09/dynamic-forms/
The simplest way is just to override __init__ method of your Form
class.
For example, you need to show to user additional fields, depending on
previous choices.
class MyFirstForm(forms.Form):
choices = form
James,
I don't think model should know anything about request like is IP
address. This would violate MVC principle.
Bojan
On May 29, 1:25 am, JamesJOG wrote:
> I have a model with an IPAddressField (1) and some views that have to
> write to that field every time they save (2) ... Wouldn't it be
Wiadomość napisana w dniu 2009-05-29, o godz. 03:42, przez luper rouch:
>>> I tried to put locale.setlocale(locale.LC_TIME, 'fr_FR.UTF-8') in
>>> the
>>> settings file and it works well on the development server. The
>>> problem
>>> is under mod_python dates are printed in the selected locale
70 matches
Mail list logo