On 3/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> When deploying site using apache + mod_python, how to make it can read
> Django admin css? Let say I am using a share webhosting.
This is covered in the "serving media files" and "serving the admin
files" sections of the mod_python deploy
On 3/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Ok, thanks. Now it solved. I am moving the database file to a
> directory that writable to others and change the database file
> permission to be writable by others. But I think it will be a security
> issue. What do you suggest?
If you'
On Mar 10, 5:57 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> Hi Laurie,
>
> On Sat, 2007-03-10 at 17:45 -0500, Laurie Harper wrote:
>
> [...]
>
> > I want Project needs to be a sub-type of Page (hence inheriting from
> > Page rather than just models.Model). Page.objects.all() should return
Yes indeed.
Thanks again, I just finished up the first roughed version of this
using the itertools.chain function. Worked beautifully.
Thanks for your patience with us "newbies"
On Mar 10, 5:08 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2007-03-10 at 14:59 -0800, shelbybark
Dear all,
When deploying site using apache + mod_python, how to make it can read
Django admin css? Let say I am using a share webhosting.
thanks and best regards,
Mico
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
Ok, thanks. Now it solved. I am moving the database file to a
directory that writable to others and change the database file
permission to be writable by others. But I think it will be a security
issue. What do you suggest?
regards,
On Mar 11, 8:22 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
On 3/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> do you mean that the directory and file of SQLite database file shall
> be able to be written by Apache?
Yes. TO use SQLite under Apache/mod_python, the SQLite database must
be readable and writable by the user Apache is running as. Wheth
On 11-Mar-07, at 6:45 AM, Kenneth Gonsalves wrote:
>> Would love tobut is it available in the main packageor is
>> there any way of obtaining it?
>
> it is there under ~locale/te/LC_MESSAGES - two files, django.po and
> djangojs.po
that is in the svn trunk - also available under 'browse
On 10-Mar-07, at 8:04 PM, theju wrote:
> Would love tobut is it available in the main packageor is
> there any way of obtaining it?
it is there under ~locale/te/LC_MESSAGES - two files, django.po and
djangojs.po
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/
Hi James,
do you mean that the directory and file of SQLite database file shall
be able to be written by Apache? IMHO it is not safe to let Apache
write database file specially if the file is inside users' home
directory. Does it mean I have to move the database file to a
'writable by all' direct
Paul -- have you tried running the Selenium RC server non-
interactively, then interacting with it via one of the languages it
supports? Python for example, since you're doing Django development.
Look in the python sub-directory of the selenium-rc distribution, and
modify the test_google.py script
On 3/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> OperationalError: Unable to close due to unfinalised statements
Usually this means that there's a permissions issue with SQLite. This
often pops up when switching from the development server to Apache,
because on hosting services Apache a
On Sat, 2007-03-10 at 14:59 -0800, shelbybark wrote:
> Thanks for the quick reply, Malcolm. I'll look into that. All of my
> python "programming" is done with Google and my "Beginning Python"
> book, but this gives me something to start with.
It's the One True Way to learn. :-)
Regards,
Malcolm
On Sat, 2007-03-10 at 16:59 -0600, Greg Donald wrote:
> On 3/10/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > I assume you mean via some way other than a form or the admin interface,
>
> Model validation doesn't occur in the model itself?
Validation happens on the strings submitted from
Thanks for the quick reply, Malcolm. I'll look into that. All of my
python "programming" is done with Google and my "Beginning Python"
book, but this gives me something to start with.
Your help is much appreciated.
Thanks,
Steven
On Mar 10, 4:51 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrot
On 3/10/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> I assume you mean via some way other than a form or the admin interface,
Model validation doesn't occur in the model itself?
> because in those two cases, field validation should catch it.
What is "field validation" exactly?
Thanks,
Hi Laurie,
On Sat, 2007-03-10 at 17:45 -0500, Laurie Harper wrote:
[...]
> I want Project needs to be a sub-type of Page (hence inheriting from
> Page rather than just models.Model). Page.objects.all() should return
> both Page and Project instances; inserting a Project should create a
> row in t
On Sat, 2007-03-10 at 14:43 -0800, shelbybark wrote:
> I'm trying to figure out how to combine the results of a few different
> querysets to have a list of upcoming events on a basic calendar page.
> I don't know for sure if this is possible. Any direction would be
> appreciated.
QuerySets act li
I'm trying to write a Django app on top of an existing database which was
created for another project. That project was written in Java using
Hibernate for the ORM, and the resulting schema is based on a 'class per
table' strategy, giving something like this:
Table: Page
ID INTEGER PRIMARY KEY
Nam
I'm trying to figure out how to combine the results of a few different
querysets to have a list of upcoming events on a basic calendar page.
I don't know for sure if this is possible. Any direction would be
appreciated.
Thanks,
Steven
--~--~-~--~~~---~--~~
You re
On Mar 7, 4:26 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> My site just keeps getting bigger and bigger, and the performance has
> gotten excruciatingly slow.
> ...
> Problem is, I really don't know what to do about it, or even what I
> need to be looking at, really. I've gone through a
(aka what help should I read just now)
Hello, I started to work with django and it is great.
But I have too much of work just now to read all documentation before using
it, so I read only the tutorial and some parts of what I did need to work.
But now I do not know, where I should continue ...
On 3/10/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> Umm ... Jay? He's using django-users already. :-)
Heh, silly me. The first two emails *were* sent to django-dev (and
django-users), so Gmail automatically tagged them as such. All the
subsequent emails showed up in my django-dev folder b
On Sat, 2007-03-10 at 14:41 +, shevken wrote:
> Hi All,
>
> Is there a way to change the default path of the image to use
> backslash (/../) instead of the forward slash?
Firstly, you've got back- and forward-slash reversed: a backslash is '\'
and a forward slash is '/'. Best we all use the
On Sat, 2007-03-10 at 18:07 +, Christian Hoeppner wrote:
> Hi there!
>
> I wonder if there's a way to link a user to some kind of database entry
> using a foreign key field. The problem is, how would I define something
> like this? What's the actual name/path/something I use to reference the
On Sat, 2007-03-10 at 11:53 -0600, Greg Donald wrote:
> Why doesn't this prevent me from entering an empty string into the database?
>
> name = models.CharField(maxlength=32, blank=False, null=False)
I assume you mean via some way other than a form or the admin interface,
because in those two ca
On Mar 9, 4:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Both those numbers seem pretty excessive to me. My question to this
> board is, what sort of query would lead a newbie like myself into this
> sort of mess.. in other words, what would be an example of bad code
> I've probably don
On Sat, 2007-03-10 at 12:28 -0500, Jay Parlar wrote:
> django-dev is not the appropriate group for this, you want
> django-users. Django-dev is for discussion on the development of
> Django itself, not development "with" Django.
Umm ... Jay? He's using django-users already. :-)
Malcolm
--~--~
On Sat, 2007-03-10 at 06:21 -0800, Anders Olsson wrote:
> This is an issue I'm sure many must have encountered before but I
> haven't found a solution. Given these models...
>
> class Address(models.Model):
> street = models.CharField(maxlength=150)
> zip = models.CharField(maxlength=10)
On Sat, 2007-03-10 at 14:21 +, mo wrote:
> Hi,
>
> I get an Error when i execute the following line:
>
> >>> from django.template import Template
You either have to import the django configuration module and configure
your settings manually, or set the DJANGO_SETTINGS_MODULE environment
var
well like I said you can either make that particular field not a model
object, or you could just add the attributes at run time. I'm not
familiar with using the json serializer so I'm not sure about the
specifics there, but for simply adding attributes to the model that
wouldn't be saved to the d
Malcom... thanks for all the info :)
I didn't paste all of my model code into the sample... each of those
tables actually has Foreign Keys to a few other things..which also
contains foreign keys...
The page that was slowing down was a page where I basically had a drop
down showing Companies (
Hi there!
I wonder if there's a way to link a user to some kind of database entry
using a foreign key field. The problem is, how would I define something
like this? What's the actual name/path/something I use to reference the
auth_user objects?
Thanks!
--
Chris M. Hoeppner
Web design & consulta
Why doesn't this prevent me from entering an empty string into the database?
name = models.CharField(maxlength=32, blank=False, null=False)
Thanks,
--
Greg Donald
http://destiney.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Hi Malcolm,
just tried the new revison and the problem is gone.
Thanks a lot for the fast fix.
Sean
> I think this should be fixed now in [4693]. Turned out to be a simple
> change, but finding the line to change took a few minutes.
>
> Please give it a run and feel free to point out any problem
django-dev is not the appropriate group for this, you want
django-users. Django-dev is for discussion on the development of
Django itself, not development "with" Django.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
I need a model as i will need to save to the database. Just that i need to
serialize the object to send it to json, and it will be helpful to have some
custom attributes for temporary processing, but will not be saved to the db.
On 3/10/07, anders conbere <[EMAIL PROTECTED]> wrote:
>
>
> I would j
I would just not make it a model.* since you don't want that value to
be part of the Database, just don't use the ORM for it.
~ Anders
On 3/10/07, shevken <[EMAIL PROTECTED]> wrote:
>
> class Message(models.Model):
> description = models.CharField(maxlength=200)
> author = models.Foreign
class Message(models.Model):
description = models.CharField(maxlength=200)
author = models.ForeignKey(User)
temp = models.CharField(maxlength=100)
When i syncdb, i do not want the column temp to be created. Is there
any arguments i can pass to enable this?
Eg.
temp = models.CharFie
Hi All,
Is there a way to change the default path of the image to use
backslash (/../) instead of the forward slash?
I declared the following in my model
img = models.ImageUpload(upload_to='upload/img/')
but in the database the column's value is saved as upload\img
\django.jpg
When i display
Would love tobut is it available in the main packageor is
there any way of obtaining it?
On Mar 10, 9:42 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 10-Mar-07, at 8:59 AM, theju wrote:
>
> > First of all let me congratulate Kenneth and his developers for their
> > awesome work.
This is an issue I'm sure many must have encountered before but I
haven't found a solution. Given these models...
class Address(models.Model):
street = models.CharField(maxlength=150)
zip = models.CharField(maxlength=10)
city = models.CharField(maxlength=100)
class Person(models.Mode
Hi,
I get an Error when i execute the following line:
>>> from django.template import Template
Traceback (most recent call last):
File "", line 1, in ?
File "/usr/local/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg/
django/template/__init__.py", line 894, in ?
add_to_builtins('dja
On 3/10/07, Georgi Stanojevski <[EMAIL PROTECTED]> wrote:
>
> limodou напиша:
>
> > You can see an example at : http://limodou.51boo.com
>
> Your forms(I tried user registration) don't give any feedback while they
> are being submited that's really, really bad usability. :)
>
> When you do somethin
Hey guys,
How do you de-serialize the object back at the ajax response.
class Cart(models.Model):
...
def get_total_quantity():
return quantity;
self.response = self.xmlhttp.responseText;
// parse the response into a JSON object
var json_data = self.response.parseJSON();
alert(jso
limodou напиша:
> You can see an example at : http://limodou.51boo.com
Your forms(I tried user registration) don't give any feedback while they
are being submited that's really, really bad usability. :)
When you do something with ajax it's really important to give feedback
to the user that some
Dear all,
I am trying to deploy my blog using apache+mod_python. When I browsed
to: http://tentangmico.info/mysite/admin, I got OperationalError. Here
is my traceback:
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/usr/lib/python2.4
Hello,
i'm looking for bit torrent class for Django which can scrape
information (seed, peer) about the torrent file from trackers.
I have a big hope, that You will be able to help me :)
Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because
Hi Rob,
On Mar 9, 11:53 pm, Rob J Goedman wrote:
> If you are using svn, doing an ' svn -r 4692 up ' in the django_src dir
> followed by ' python setup.py install ' will make the model work.
Thanks. That worked just fine.
--~--~-~--~~~---~--~~
You received th
Hi all,
I have set the comments application up to run with my applications and
it is functioning as expected. I over rid the templates belonging to
the comments application by copying them to my site's templates/
comments folder. This also works fine.
But, my base template that comment pages lik
50 matches
Mail list logo