OK, I fixed it by placing a 404.html in the templates directory. I
guess Django doesn't come with a default page.
I'm still curious about the email settings. Here's what I have, with
real info deleted to avoid spamming:
ADMINS = (
('My Name','[EMAIL PROTECTED]),
)
EMAIL_HOST='mail3.webfaction.c
On 3/4/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> If you want to extend the current versions have a look at
> http://www.b-list.org/weblog/2006/07/16/django-tips-hacking-freecomment
I'm planning to release an app fairly soon which handles some of that
(mostly the moderation and Akismet b
www.OutpatientSurgicare.com/video/
Outpatient Doctors Surgery Center is committed to offering the
healthcare the community needs. We offer patients a meaningful
alternative to traditional surgery. This state-of-the-art outpatient
surgery center, located in the heart of Orange County, at 10900 War
Yes, that's basically what I'm looking for. I'll try it that way
tomorrow.
On Mar 4, 12:17 am, "Seth Buntin" <[EMAIL PROTECTED]> wrote:
> Sorryhit enter too soon.
>
> from blog.models import Category
>
> class Image(models.Model):
> category = model.ForeignKey(Category)
> ...
>
> This
You should consider these
1. Use Sqlite as your RDBMS: It requires no configuration at all
2. Use django test server: You don't need a high performance web server because
the number of users is limited. Guido van Rossum used the test server for
internal Google application
3. Configure the worki
You can adjust the user permissions to have only 'mymodel | Can change
message'. Beware that this can be adjusted for a single user, or a group of
users. Superusers have all permissions (add/change/delete).
-
The fish are biting.
Get more visitors on your site
Hi there,
I'm creating a social network app. with lots of features. Among those
features are the possibility of users creating groups. A group of
course has an owner, and the owner is supposed to be able to assign
moderators to that group. I have a mockup of a model, but I don't
think it's good e
On Sun, 2007-03-04 at 12:02 +, Henrik Lied wrote:
> Hi there,
>
> I'm creating a social network app. with lots of features. Among those
> features are the possibility of users creating groups. A group of
> course has an owner, and the owner is supposed to be able to assign
> moderators to tha
Hi there,
That's actually true, I've changed that to a M2M now. Thanks! :-)
Any other suggestions? Does anyone know of any articles/texts on this
subject?
--
Henrik.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
For example:
Joe creates a group called 'Fruitlovers'. Then he wants Chris and
Peter to be able to moderate the group. What would be the ideal GUI-
presentation for the creator? And how would a view like that look like?
--~--~-~--~~~---~--~~
You received this mes
Mohammad, thanks for the suggestions, this definitely sounds
feasible. Is it reasonable to assume that compile_all will also work
in this context so that I'm not distributing my source code directly.
I realize a motivated hacker can reverse engineer from byte code,
however; I'd like to avoid givi
You can distribute the .pyc files, which works exactly as the original .py files
-
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
HOT PICS OF INDIAN HOT ACTRESS MALLIKA SHERAWAT
http://mallikasherawathotpics.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@googl
hi
control and run a website subimission softwear it s guaranteed 100%
index what you want and when you want for as littel as 5$ sended by
SMS from your cellphone get your access code and input all your
affiliate URL or costmer website in more than 40 organic search
engein
and 100 meta search enge
On 2 March, Malcolm Tredinnick wrote:
> [...] Group B are those forms where the input data is then
> munged in some way and split across possibly multiple models for
> storage. An example here might be a form that allows multiple teams for
> a competition to be entered -- the data is split across
Mark Engelberg wrote:
> I'm still curious about the email settings. Here's what I have, with
> real info deleted to avoid spamming:
I was having some trouble with my e-mail settings so I ran the Django
shell and called the mail function manually which gave a useful traceback:
python manage.py
I have a local Apache vhost issue. I cannot get the /media files to
work with my admin, so my admin has no CSS.
My vhost looks like this:
NameVirtualHost 127.0.0.1
ServerName groceries
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonPath "[ '/opt/
Hello,
i had the same error which went away after i added "Allow" directive
in to my httpd.conf.
konstantin
On Mar 4, 10:23 am, "Greg Donald" <[EMAIL PROTECTED]> wrote:
> I have a local Apache vhost issue. I cannot get the /media files to
> work with my admin, so my admin has no CSS.
>
> My vh
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello django-users,
I have a problem, as you might see due to the title ;)
I can't login to the adminpanel.
I only get an error:
TypeError at /test/admin/
a2b_base64() argument 1 must be string or read-only character buffer,
not array.array
Request
On 3/4/07, akonsu <[EMAIL PROTECTED]> wrote:
> i had the same error which went away after i added "Allow" directive
> in to my httpd.conf.
Order deny,allow
Allow from all
That was indeed the fix. Thanks.
--
Greg Donald
http://destiney.com/
--~--~-~--~~~---~--~---
> Anyway, back to the question: do think there is a way with standard django
> to access two databases (maybe sequentially, changing database connections)
> in one script? Or is the only way to use intermediate storage like a file?
The simplest way I can think of is to write your own SQL to acce
I would like for __exact=None to evaluate to "is null" and not "=null"
but after reading the developer mailing list on the question it seems
like they are set on the current behavior. So is there another way to
do it in a similarly simple way?
What I have now is something like:
f = SomeClass.obje
Hi,
I am having problems with my apache setup. I get a 404 error when
displaying images.
My settings file is:
MEDIA_ROOT = 'C:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\media\images'
MEDIA_URL = 'http://'+ get_ip_address()+'/images/'
And I have the following in my .conf file:
I'm looking for some scripts to help manage Django based
applications on a production site. Stuff like:
-backing up and restoring the DB, code, media, html, etc.
-promoting a test site to production
-demoting a production site to the previous version
Any recommendations?
Thanks!
-c
Any help please im desperatly stuck.
TIA duncan
On Mar 2, 5:13 pm, "DuncanM" <[EMAIL PROTECTED]> wrote:
> On top of the above post, I've come accross an error when trying to
> sync my db (with having simplified list_displays not those from
> above). When ever I order my classes in the model fil
Hello,
I have a lot of static files on my site, but it's not high volume.
Would I get any benefit from using Lighttpd as my upfront web server
and using mod_proxy to proxy dynamic requests to a Apache/mod_python
setup of Django?
I understand that seperating Django and media files out to spearate
My mistake I was missing the media from the url... It should be
MEDIA_URL = 'http://'+ get_ip_address()+'/media/images/'
On Mar 4, 8:36 pm, "Fes" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am having problems with my apache setup. I get a 404 error when
> displaying images.
>
> My settings file is:
>
Hello!
I want to add a block in the site that shows the "Last topics" of the
forum.
The forum is a MyBB. I'd like to know the best approach to do it.
- Create a model based in the tables that I want to retrieve and use
it as a normal model in django.
- Use pure SQL to do the same.
Thank you!
-
On 3/4/07, andyhume <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I have a lot of static files on my site, but it's not high volume.
> Would I get any benefit from using Lighttpd as my upfront web server
> and using mod_proxy to proxy dynamic requests to a Apache/mod_python
> setup of Django?
>
> I un
Has anybody gotten the python openID library from
http://www.openidenabled.com/openid/libraries/python to work?
I was trying to follow
http://code.djangoproject.com/wiki/CookBookShortcutsOpenIDAuthentication
but it seems like the latest version of the library doesnt work with
it. I suspect its t
for anyone following along, the latest post:
Rails and Django - Framework Concept (part 4/15)
http://www.vaporbase.com/postings/94
On Mar 1, 10:07 am, "linoj" <[EMAIL PROTECTED]> wrote:
> fyi
> Current posting discusses Ruby vs Python
> Rails and Django - Programming Language (part 3/15)
>
> I was expecting to just be able to do:
> f = SomeClass.objects.filter(a=a, b=b, c=c)
>
> Is there some way to do this with the current code base?
I'm not sure of the exact syntax, but you can use a dictionary to
achieve this fairly easily. Something like
args = {}
if a == None:
args['a__isn
Grupo Django schrieb:
> Hello!
> I want to add a block in the site that shows the "Last topics" of the
> forum.
> The forum is a MyBB. I'd like to know the best approach to do it.
> - Create a model based in the tables that I want to retrieve and use
> it as a normal model in django.
> - Use pure
Hi Duncan,
this works for me:
from django.db import models
class Fixture(models.Model):
#team = models.ForeignKey(Team, "Team", core=True)
#venue = models.CharField("Venue", maxlength=1,
choices=Fixture_Choices, core=True)
date = models.DateField("Date", core=True)
opponent = m
Hi Sam,
On Sun, 2007-03-04 at 23:04 +, Sam Richards wrote:
> Has anybody gotten the python openID library from
> http://www.openidenabled.com/openid/libraries/python to work?
>
> I was trying to follow
> http://code.djangoproject.com/wiki/CookBookShortcutsOpenIDAuthentication
> but it seems
Thanks, this is perfect.
On Mar 4, 2:01 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2007-03-04 at 01:01 +, [EMAIL PROTECTED] wrote:
> > I am looking for some way to add initial Flatpages data to my app. I
> > am open to either SQL or Django ORM. The pattern of /sql/
> > .sql
Hello fellow django users,
Quick question: How can i make the model names not pluralize in the
admin site?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
hi i m a newbie to django and was trying creating some apps .
i have 2 classes namely Teacher and Student . Added ManyToManyField
in Student class referring to Teacher such that (Teachername =
models.ManyToManyField(Teacher) ) .
Using list_display method trying to list all the rows in Student
c
On 3/4/07, Arafel <[EMAIL PROTECTED]> wrote:
> Quick question: How can i make the model names not pluralize in the
> admin site?
In the "class Meta" part of your model definition, add "verbose_name_plural".
For example, if you had this:
class MyModel(models.Model):
...fields defined here...
On Sun, 2007-03-04 at 20:19 -0800, Arafel wrote:
> Hello fellow django users,
>
> Quick question: How can i make the model names not pluralize in the
> admin site?
You will need to set verbose_name_plural -- an attribute on the Meta
class -- for each of the models (set it to the singular form).
On Sun, 2007-03-04 at 21:56 -0800, MacH wrote:
> hi i m a newbie to django and was trying creating some apps .
> i have 2 classes namely Teacher and Student . Added ManyToManyField
> in Student class referring to Teacher such that (Teachername =
> models.ManyToManyField(Teacher) ) .
> Using lis
On 3/4/07, linoj <[EMAIL PROTECTED]> wrote:
> for anyone following along, the latest post:
> Rails and Django - Framework Concept (part 4/15)
> http://www.vaporbase.com/postings/94
OK, I hope you're not planning on posting another 11 messages to the
list each time you update. I'm sure it's not y
hello,
class MyFile(models.Model) :
content = models.FileField(upload_to = '.')
type = models.IntegerField(editable = False)
when a file is submitted through a form post i need to check whether
the file format is valid and set the "type" field to indicate the
format.
i can see two ways
thanks.
On Mar 5, 4:04 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 3/4/07, Arafel <[EMAIL PROTECTED]> wrote:
>
> > Quick question: How can i make the model names not pluralize in the
> > admin site?
>
> In the "class Meta" part of your model definition, add "verbose_name_plural".
>
> For
thanks
On Mar 5, 2:53 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2007-03-04 at 20:19 -0800, Arafel wrote:
> > Hello fellow django users,
>
> > Quick question: How can i make the model names not pluralize in the
> > admin site?
>
> You will need to set verbose_name_plural -- an at
HOT PICS OF INDIAN HOT ACTRESS MALLIKA SHERAWAT
http://mallikasherawathotpics.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@googl
hi thanks Malcolm
i already have __str__ method on my Teacher class.
its definition is
def __str__(self)
return self.name
where name is a CharField . we will be getting the name from the admin gui
page
thanks and regards
ashok
On 3/5/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
>
>
On Mon, 2007-03-05 at 12:09 +0530, MacH G wrote:
> hi thanks Malcolm
> i already have __str__ method on my Teacher class.
> its definition is
> def __str__(self)
>return self.name
>
> where name is a CharField . we will be getting the name from the admin
> gui page
I suspect I am misunde
On 3/5/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> Or you could change the display_teacher() method itself to map each of
> the list contents through str() in order to return a list of strings.
(or define __repr__)
--
"Bureaucrat Conrad, you are technically correct -- the best kind of c
On Mon, 2007-03-05 at 00:55 -0600, James Bennett wrote:
> On 3/5/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > Or you could change the display_teacher() method itself to map each of
> > the list contents through str() in order to return a list of strings.
>
> (or define __repr__)
You'd h
Hi Bram,
Here is a possible mechanism to address your second point, i.e., hide
certain fields while serializing.
Consider this model:
class Person(models.Model):
... # various fields here.
@staticmethod
def fields_for_serializing():
return [list of those field names that can
hey thanks a lot malcolm and james *__repr__* worked fine it my admin
interface (GUI) i could see things like [thomson,Richie] as expected
adding __repr__ solved my problem
On 3/5/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
>
> On Mon, 2007-03-05 at 00:55 -0600, James Bennett wrote:
On 3/5/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> You'd have to define __repr__ on the QuerySet, wouldn't you? Since
> that's what is being displayed there (display_teacher() is returning a
> QuerySet). Or am I missing something obvious?
The problem is that the __repr__ of the QuerySet u
53 matches
Mail list logo