Thanks for reading my question. I may not be asking all the right
questions.
I am looking for a fast way to build a ecommerce site with many of the
qualities of threadless.com. I was told Django is an excellent
language and allows for rapid fast implementation.
My back ground is not in develop
On Fri, 2008-11-14 at 22:54 -0800, Innergy wrote:
> Thanks for reading my question. I may not be asking all the right
> questions.
>
> I am looking for a fast way to build a ecommerce site with many of the
> qualities of threadless.com. I was told Django is an excellent
> language and allows f
On Nov 15, 4:14 pm, "Chris Bai" <[EMAIL PROTECTED]> wrote:
> Can anyone point to me a reference to setup mod_python on Apache virtual
> host for Django? Or write something about it?
>
> I am able to run my app in Django development server. I am also able to set
> up virtual host to display index
You may want to think about the design of your models as well. Do you
really need a separate model for viewed_jobs? Could it just be a
boolean field on the Jobs model itself. Otherwise there's a danger of
a lot of repetition between the two models. Of course, I don't know
your exact use case, so I
Hi,
I'm trying to deploy my django project on a production server, but
Django always thinks the URL is index.php no matter what I put in. For
example, when I put in the URL:
http://your.flowingdata.com/some_random_string
I get the following no matter what some_random_string is:
Using the URLc
On Nov 15, 9:37 am, NathanY <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to deploy my django project on a production server, but
> Django always thinks the URL is index.php no matter what I put in. For
> example, when I put in the URL:
>
> http://your.flowingdata.com/some_random_string
>
> I ge
Hi,
I have a custom model field class that stores event recurrence
information. In python this is an instance of dateutil.rrule.rule, and
in the database I am storing it as an iCal recurrence string. To
convert between these two formats I have to_python and
get_db_prep_value methods on the custom
There is ticket and patch for this issue
http://code.djangoproject.com/ticket/9522
On Sat, Nov 15, 2008 at 16:38, AndyH <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a custom model field class that stores event recurrence
> information. In python this is an instance of dateutil.rrule.rule, and
>
James Bennett wrote:
> Tonight we've released Django 1.0.1, a bugfix release in the 1.0
> series containing improvements and fixes since the 1.0 release. This
> is a recommended upgrade for anyone currently running Django 1.0.
>
> The blog entry announcing the release is here:
> http://www.djangop
Hi,
I've this template:
And this View:
class MoveGameForm(forms.Form):
resign = forms.BooleanField(required=False)
draw = forms.BooleanField(required=False)
move = forms.BooleanField(required=False)
I'm writing the view, with:
...
On Tue, 28 Oct 2008 04:15:20 -0700, Dominik Szopa wrote:
> We also have there English sites, the one is curce.com, but recently
> heared that they are not powered by Django any more, anybody knows if
> thats true ?
Considering that the Curse guys hang around in #pocoo, that's well
possible.
r
On Nov 15, 3:39 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Fri, 2008-11-14 at 22:54 -0800, Innergy wrote:
> > Thanks for reading my question. I may not be asking all the right
> > questions.
>
> > I am looking for a fast way to build a ecommerce site with many of the
> > qualities o
Basically, I want to allow a ManyToManyField to use any of a Model's
children, like this:
class Word(models.Model):
word = models.CharField(...)
class Meta:
abstract = True
class Noun(Word):
gender = models.CharField(...)
class Verb(Word):
irregular = models.BooleanField
So I'm not missing anything. It's a bug. Ouch...
Thanks for the info, before I trawled my way through the serializers.
May well have to apply the patch locally to move forward. There
doesn't seem to be much movement on the ticket.
On Nov 15, 1:40 pm, "Alex Koshelev" <[EMAIL PROTECTED]> wrote:
>
On Sat, Nov 15, 2008 at 9:56 AM, AndyH <[EMAIL PROTECTED]> wrote:
>
> So I'm not missing anything. It's a bug. Ouch...
>
> Thanks for the info, before I trawled my way through the serializers.
> May well have to apply the patch locally to move forward. There
> doesn't seem to be much movement on t
Hello guys I need your help in here.
Sorry I am new in Django and I am having a problem, my css and jpgs
are missing.
I will write everything what i have and then maybe someone could give
me a hint :)
My settings.py:
MEDIA_ROOT = '/home/lgoncalves/Arquivos/MyVitaminesShop/media/'
MEDIA_URL = '
Hi,
I have a problem when adding record by Django Admin and I am not sure where I
have to look for it. Is this some problem in Django Admin or it can be solved
by some
configuration in model ?
I use Foreign Key in table where I want to add record. Foreign Key is the
field containing some non
You need to specify your encoding in your models file.
Like: # -*- coding: iso-8859-15 -*-
Look at http://
evanjones.ca/python-utf8.html The sixth section of the page
explains.
Regards
Luke
On Nov 15, 11:09 am, Ivan Mincik <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a problem when adding record by
Django doesn't serve the media files, look at
http://docs.djangoproject.com/en/dev/howto/static-files/?from=olddocs
Luke
On Nov 15, 10:49 am, Luis Goncalves <[EMAIL PROTECTED]> wrote:
> Hello guys I need your help in here.
>
> Sorry I am new in Django and I am having a problem, my css and jpgs
>
On Saturday 15 November 2008 17:34, Luke Seelenbinder wrote:
>
> You need to specify your encoding in your models file.
> Like: # -*- coding: iso-8859-15 -*-
> Look at http://
> evanjones.ca/python-utf8.html The sixth section of the page
> explains.
thanks for answer, but the first line in my mod
Well i saw this:
"With that said, Django does support static files during development.
You can use the django.views.static.serve() view to serve media files.
The big, fat disclaimer¶
Using this method is inefficient and insecure. Do not use this in a
production setting. Use this only for develop
Malcolm Tredinnick wrote:
> At some point in the future, multi-valued ON constraints might make an
> appearance (for example, multi-column primary key queries are possibly
> easier to write), but they might not, too. The slight preference for
> doing so at some point is that there are a couple of
I'll take any help I can get at this point :P. Here's the Apache
config: http://dpaste.com/90963/
Thank you!
On Nov 15, 7:18 am, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Nov 15, 9:37 am, NathanY <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I'm trying to deploy my django project on a pro
When I run the installation script I get this error:
error: could not create '/usr/lib/python2.3/site-packages/django':
Permission denied
How do I get around this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
There's a bug both in your models and in Django, I think. Your __unicode__
method for class Metadata:
def __unicode__(self):
>return "%s %s" % (self.vrstva,self.nazov)
>
needs to be:
def __unicode__(self):
>
return u"%s %s" % (self.vrstva,self.nazov)
> When I run the installation script I get this error:
>
> error: could not create '/usr/lib/python2.3/site-packages/django':
> Permission denied
>
> How do I get around this?
From my understanding, "installing Django" consists purely of
depositing the Django tree in the system $PYTHONPATH (t
On Sat, Nov 15, 2008 at 10:49 AM, Luis Goncalves
<[EMAIL PROTECTED]>wrote:
>
> Hello guys I need your help in here.
>
> Sorry I am new in Django and I am having a problem, my css and jpgs
> are missing.
>
> I will write everything what i have and then maybe someone could give
> me a hint :)
>
>
>
On Sat, Nov 15, 2008 at 12:39 PM, Carl <[EMAIL PROTECTED]> wrote:
>
> When I run the installation script I get this error:
>
> error: could not create '/usr/lib/python2.3/site-packages/django':
> Permission denied
>
> How do I get around this?
>
If you're on some flavor of Unix, as you appear to
I am getting the same thing for the md5 sum. Downloaded through
Firefox 3.0.4 and Safari 3.1.2 on Mac OS X.5.5.
On Nov 15, 2008, at 8:48 AM, leonel wrote:
>
> James Bennett wrote:
>> Tonight we've released Django 1.0.1, a bugfix release in the 1.0
>> series containing improvements and fixes s
Here is what I tried.
DocumentRoot "C:/Apache/homedomain"
ServerName domain.com
ServerAlias www.domain.com
SetEnv DJANGO_SETTINGS_MODULE homedomain.settings
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonPath "['C:/Apache'] + sys.path"
P
My (painful) Experience with custom filters. This not a Question; but
I think posting this will help community
I have tried to get custom filters running and found that some of
things are Un documented or not documented in *BOLDFACE*
I need to do following additional steps in addition to what is
On Saturday 15 November 2008 18:57, Karen Tracey wrote:
> There's a bug both in your models and in Django, I think. Your __unicode__
> method for class Metadata:
>
>def __unicode__(self):
> >return "%s %s" % (self.vrstva,self.nazov)
> >
>
> needs to be:
>
>def _
So it ended up being the .htaccess in the root domain -
flowingdata.com, which is a wordpress domain. Here's the .htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Any ideas on how to override that .hta
Thanks so much ;)
Its working :)
--
Luis
On Nov 15, 8:10 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Sat, Nov 15, 2008 at 10:49 AM, Luis Goncalves
> <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
> > Hello guys I need your help in here.
>
> > Sorry I am new in Django and I am having a problem, my
I finally got it. The VirtualHost in the httpd.conf was pointing at
the root, so I changed the DocumentRoot to something else.
On Nov 15, 2:59 pm, NathanY <[EMAIL PROTECTED]> wrote:
> So it ended up being the .htaccess in the root domain -
> flowingdata.com, which is a wordpress domain. Here's t
Hi,
>From the django documentation, it looks like it is not possible to
pass arguments to methods from the template HTML code.
For example:
class MyModel(Model):
def foo(self):
return 'This works'
can be accessed by: {{ mymodel.foo }} in an HTML template.
What I am trying to do, however
Also, is there some way to make this action "transaction like" ? To be
sure that every action was synchronised?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
hi, how do I change a datefield to d.m.Y in a form inherited from modelform ?
r/Delle
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to thi
Are you setting ErrorDocument directives in Apache configuration?
If you are then disable them and then actual error may not be masked.
Have you looked in Apache error log for more information?
Graham
On Nov 16, 5:53 am, Chuck22 <[EMAIL PROTECTED]> wrote:
> Here is what I tried.
>
>
> Doc
On Sat, Nov 15, 2008 at 2:29 PM, Ivan Mincik <[EMAIL PROTECTED]> wrote:
> On Saturday 15 November 2008 18:57, Karen Tracey wrote:
>
> > The bug in Django is that the attempt to report that your existing
> > __unicode__ method generated an error generated yet another error, and I
> > haven't quite
DULMANDAKH Sukhbaatar wrote:
>> when i use my hosting provider (mediatemple) which i believe is
>> running django via a fast cgi container setup. overall, the setup
>> seems to work, no errors, definately calling php.py, and detects the
>> php:file.php tags, but no php is converted into the templat
Hi everyone,
I'm new to django, and this I have been doing my best to follow online
documentation to help me get my first site up and running. My main
source has been:
http://www.djangobook.com/en/1.0/
Now this has been great but i'm starting to get the sense that django
is a fast moving projec
On Sat, Nov 15, 2008 at 7:13 PM, dash86no <[EMAIL PROTECTED]> wrote:
> I'm a little confused, and would appreciate it if somebody could point
> me to the current "authoritative" tutorials, so I can begin to get
> back on the right path here.
>
Yes, the book is out of date, published several mo
On Sat, 2008-11-15 at 16:13 -0800, dash86no wrote:
> Hi everyone,
>
> I'm new to django, and this I have been doing my best to follow online
> documentation to help me get my first site up and running. My main
> source has been:
>
> http://www.djangobook.com/en/1.0/
>
> Now this has been great b
Hi all,
I've got the following models (simplified for this example):
from django.db import models
from django.contrib.auth.models import User
class Chat(models.Model):
name = models.CharField(max_length=256)
class Post(models.Model):
user = models.ForeignKey(User, related_name='posts')
On Sat, 2008-11-15 at 15:28 +0100, Alfredo Alessandrini wrote:
> Hi,
>
> I've this template:
>
> type="radio" checked />
> />
> type="radio" />
>
>
> And this View:
>
> class MoveGameForm(forms.Form):
> resign = forms.BooleanField(required=False)
>
On Sat, 2008-11-15 at 06:57 -0800, Luke Seelenbinder wrote:
> Basically, I want to allow a ManyToManyField to use any of a Model's
> children, like this:
>
> class Word(models.Model):
> word = models.CharField(...)
>
> class Meta:
> abstract = True
>
> class Noun(Word):
>
On Sat, 2008-11-15 at 13:31 -0500, BraneSKS wrote:
> I am getting the same thing for the md5 sum. Downloaded through
> Firefox 3.0.4 and Safari 3.1.2 on Mac OS X.5.5.
Yep, looks like something went wrong there. James is offline at the
moment, but he'll fix it when he gets a chance. The securit
On Sat, 2008-11-15 at 22:37 +0100, [EMAIL PROTECTED] wrote:
> hi, how do I change a datefield to d.m.Y in a form inherited from modelform ?
You can't change that automatically. You will need to create a subclass
of the model field that overrides the formfield() method to return a
forms.DateFiel
On Sat, 2008-11-15 at 12:16 -0800, [EMAIL PROTECTED] wrote:
> Hi,
>
> From the django documentation, it looks like it is not possible to
> pass arguments to methods from the template HTML code.
>
> For example:
>
> class MyModel(Model):
> def foo(self):
> return 'This works'
>
> can be
On Sat, Nov 15, 2008 at 7:37 PM, Malcolm Tredinnick
<[EMAIL PROTECTED]> wrote:
> Yep, looks like something went wrong there. James is offline at the
> moment, but he'll fix it when he gets a chance. The security-aware user
> will avoid using the tarballs until they're fixed.
I'm looking into it.
On Sat, 2008-11-15 at 17:09 -0800, Will McCutchen wrote:
> Hi all,
>
> I've got the following models (simplified for this example):
>
> from django.db import models
> from django.contrib.auth.models import User
>
> class Chat(models.Model):
> name = models.CharField(max_length=256)
>
> cl
Karen,
Many thanks, that site was just what I was looking for.
On Nov 16, 9:27 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Sat, Nov 15, 2008 at 7:13 PM, dash86no <[EMAIL PROTECTED]> wrote:
> > I'm a little confused, and would appreciate it if somebody could point
> > me to the current
On Sat, Nov 15, 2008 at 7:48 AM, leonel <[EMAIL PROTECTED]> wrote:
> Ive downloaded the tar.gz from
> http://www.djangoproject.com/download/1.0.1/tarball/
>
> and the md5sum does not match the md5sum from:
> http://media.djangoproject.com/pgp/Django-1.0.1-final.checksum.txt
OK, so here's what ha
That was a typo. The error I'm getting is
"ForeignKey cannot define a relation with abstract class Word"
It is a ManyToMany through table, that's the reason it is ForeignKey
Luke
On Nov 15, 8:29 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2008-11-15 at 06:57 -0800, Luke Seelenbin
On Sat, 2008-11-15 at 19:01 -0800, Luke Seelenbinder wrote:
> That was a typo. The error I'm getting is
> "ForeignKey cannot define a relation with abstract class Word"
> It is a ManyToMany through table, that's the reason it is ForeignKey
One of the many problems with top-posting is that I can'
I did not use ErrorDocument directives in my httpd.config.
Here is my Apache error log:
[Sun Nov 16 03:00:12 2008] [error] [client ] mod_python (pid=3296,
interpreter='domain.com', phase='PythonHandler',
handler='django.core.handlers.modpython'): Application error
[Sun Nov 16 03:00:12 2008] [err
I'm trying to get my models to show in admin. I've followed
http://www.djangobook.com/en/1.0/chapter06/ and while I'm able to
login to admin and view the Auth and Sites sections, I can't see my
models even though they have the Admin class and the correct
middleware's enabled. Is there some other s
On Sat, 2008-11-15 at 19:28 -0800, Chris wrote:
> I'm trying to get my models to show in admin. I've followed
> http://www.djangobook.com/en/1.0/chapter06/ and while I'm able to
> login to admin and view the Auth and Sites sections, I can't see my
> models even though they have the Admin class an
On Sat, 2008-11-15 at 19:16 -0800, Chuck22 wrote:
> I did not use ErrorDocument directives in my httpd.config.
>
> Here is my Apache error log:
>
> [Sun Nov 16 03:00:12 2008] [error] [client ] mod_python (pid=3296,
> interpreter='domain.com', phase='PythonHandler',
> handler='django.core.handle
On Sat, Nov 15, 2008 at 8:42 PM, James Bennett <[EMAIL PROTECTED]> wrote:
> 1. When I rolled the release last night, I did 'python manage.py
> sdist' to generate the package, then uploaded it to the
> djangoproject.com server.
(and obviously I meant 'setup.py sdist')
--
"Bureaucrat Conrad, yo
Heh, thanks. That answers my question exactly.
Are there any plans on removing the obsolete docs, or at least
forwarding users to the new docs? It seems like everything that comes
up in a Google search is 5 years out of date.
On Nov 15, 10:38 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> O
On Sat, 2008-11-15 at 21:06 -0800, Chris wrote:
> Heh, thanks. That answers my question exactly.
>
> Are there any plans on removing the obsolete docs, or at least
> forwarding users to the new docs?
Django's documentation (http://docs.djangoproject.com/ -- also redirect
to from django.project
I'm trying to write a basic Ajax app, which submits a file in one long-
running request, and periodically polls the status in another request.
However, it seems like runserver is single threaded, so the second
request just hangs until the file upload completes, preventing the
status update. Is the
On Sun, Nov 16, 2008 at 12:11 AM, Chris <[EMAIL PROTECTED]> wrote:
> I'm trying to write a basic Ajax app, which submits a file in one long-
> running request, and periodically polls the status in another request.
> However, it seems like runserver is single threaded, so the second
> request just
Dear all,
Could anyone here please let me know of the logic or example of doing
a form with dynamic number of fields (ie. a field with a 'Add more
field' button). I know how to do it using javascript. However it's the
logic behind that gets me. Suggestions?
--
Low Kian Seong
blog: http://lowkst
Do you mean easier in that runserver doesn't support multithreading at
all? Or easier in that it supports multi-threading, but it's difficult
to set up?
I'd like to use the dev server, because, well, I'm developing.
On Nov 16, 12:14 am, "David Zhou" <[EMAIL PROTECTED]> wrote:
> On Sun, Nov 16, 2
On Sat, 2008-11-15 at 21:17 -0800, Chris wrote:
> Do you mean easier in that runserver doesn't support multithreading at
> all? Or easier in that it supports multi-threading, but it's difficult
> to set up?
The dev server is single-threaded by design. It wouldn't be impossible
to make it multi-t
Because my application works fine with Django development server
(http://locahost:8000) on the same machine, I assume the problem does
not reside in my application code. Then it must be due to the
configuration of Apache. Do I need to modify my code to make it work
with Apache/mod_python?
Here is
I understand what you're saying. It's just unfortunate we're throwing
out the convenience of the dev server.
What's up with http://code.djangoproject.com/ticket/3357 ? Looks like
this idea isn't new.
Chris
On Nov 16, 12:30 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2008-11-15 a
On Sat, 2008-11-15 at 21:40 -0800, Chris wrote:
[...]
> What's up with http://code.djangoproject.com/ticket/3357 ? Looks like
> this idea isn't new.
Actually, it shows that there are people who can't read instructions.
Once a ticket has been wontifxed by a developer, it shouldn't be
reopened wit
On Sat, 2008-11-15 at 21:36 -0800, Chuck22 wrote:
> Because my application works fine with Django development server
> (http://locahost:8000) on the same machine, I assume the problem does
> not reside in my application code. Then it must be due to the
> configuration of Apache.
Presumably that'
On Sun, Nov 16, 2008 at 12:40 AM, Chris <[EMAIL PROTECTED]> wrote:
> I understand what you're saying. It's just unfortunate we're throwing
> out the convenience of the dev server.
If you're not interested in setting up something like apache, you can
also maybe use one of the pure python servers
On Nov 16, 4:40 pm, Chris <[EMAIL PROTECTED]> wrote:
> I understand what you're saying. It's just unfortunate we're throwing
> out the convenience of the dev server.
>
> What's up withhttp://code.djangoproject.com/ticket/3357? Looks like
> this idea isn't new.
Using daemon mode of mod_wsgi can
http://www.oebfare.com/blog/2008/nov/03/writing-custom-management-command/
The CherryPy WSGI server should make this really, you could probably
even deploy on it if you wanted.
On Nov 16, 1:15 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Nov 16, 4:40 pm, Chris <[EMAIL PROTECTED]> wrote:
75 matches
Mail list logo