First time I think I've ever tried this. I'm using postgres and the
database is configured correctly and I have psql.exe on my path.
So at the dos prompt I can:
C:\>psql -d postgres -U admin
type in the password and I'm fine. If I open the prompt within my
project directory I can do the same
Since the Django book 2.0 is up and ready, I'm doing a read of it. At
first I was using firefox to read it but decided to switch over to
Opera so that I could use Opera's note taking feature.
One of the interesting things about the 2.0 book is it's commenting
feature. But this doesn't show up in
I happened to visit the Django Book site 2.0 It still says that it's
not complete, but it seems to cover everything the 1.0 did except for
deployment and the Appendices. Could a person get a pretty good
grounding in django now by reading 2.0? I guess what I mean is that
for the past few
t;['F:/django'] + sys.path"
>
> HTHs
>
> On Mar 13, 2:11 pm, waltbrad <waltb...@hotmail.com> wrote:
>
> > I'm trying to get this setup on my computer to simulate what I will
> > have online in preparation for any problems that might be encountered.
>
Thanks for t
I'm trying to get this setup on my computer to simulate what I will
have online in preparation for any problems that might be encountered.
I've got apache2 and mod_python working together, I was able to get
the basic Hello World and a form/response on it, so I know that's
working. I've had
On Feb 12, 11:30 pm, Malcolm Tredinnick
wrote:
>
>
> The code you've pointed to makes debugging very hard. It completely
> hides all the details of the exception. The first thing I would try
> would be removing the "try" and"except" statements. If an exception
>
I'm going through Sam's 24 hour. I've looked at this code for hours
now, starting from about a week ago. I decided it wasn't that
important and moved on. But now the author keeps referring back to
this view and it hampers my continuing the code. It basically just
adds a blog object as an
On Jan 23, 7:19 am, bruno desthuilliers
<bruno.desthuilli...@gmail.com> wrote:
> On 23 jan, 06:29, waltbrad <waltb...@hotmail.com> wrote:
>
> > Hi folks. PersonForm is a modelform. I'm trying to validate data by
> > calling an instance of PersonForm. (This is fr
On Jan 23, 1:47 am, Alex Koshelev wrote:
> You don't need to "call" form second time:
>
> pForm = PersonForm(request.POST.copy(), instance=p)
>
> And pForm is the ready to use instance of form.
>
Thanks for that. Would you know off hand where in the documentation I
Hi folks. PersonForm is a modelform. I'm trying to validate data by
calling an instance of PersonForm. (This is from Sam's 24 hour, and
I've modified the example to accommodate the 1.0 changes.) So,
if request.method == 'POST':
if request.POST['submit'] == 'update':
message =
On Jan 5, 3:21 am, HB wrote:
> Hey,
> I'm reading "The Definitive Guide To Django" but it is too out dated.
> Do you recommend "Practical Django Projects" instead?
> It seems to me that "The Definitive Guide To Django" is more organized
> and covers a lot of materials.
>
On Jan 2, 9:01 am, rvwilliams wrote:
> Hi
>
> I'm just getting started on django and I'm using a Windows Vista
> version. Yesterday I completed about half of the tutorial without too
> much difficulty. Now I'm trying to carry on from where I stopped.
> The first
> On Jan 1, 3:23 pm,waltbrad<waltb...@hotmail.com> wrote:
>
> > Okay, I'm getting closer.
Well, I got all my templates to work. Could someone tell me if it was
just me missing something or if there are mistakes in that book in
regards to tagging? I've been following along wi
On Jan 1, 3:23 pm, waltbrad <waltb...@hotmail.com> wrote:
>
> Okay, I'm getting closer. By using this code:
>
Okay, again. I think I'm getting closer yet. After looking into the
documentation, I changed the code to use the (% url %} template tag.
I previously thought you
On Jan 1, 2:42 pm, waltbrad <waltb...@hotmail.com> wrote:
> Let me try this again, I'm not sure my other post was understood very
> well.
>
> In Bennett's book he wants the Coltrane blog to allow browsing of
> entries and links by tag. So, I'm trying to write the tag te
Let me try this again, I'm not sure my other post was understood very
well.
In Bennett's book he wants the Coltrane blog to allow browsing of
entries and links by tag. So, I'm trying to write the tag templates
to that end. But I don't see how this can be done with the code from
the book.
I've
Hi there. I'm still reading this book. I have almost all the templates
done for the blog, but I'm stuck on tagging templates.
I noticed that with the link_detail view that the bit of code {% if
object.tags.count %} was not evaluating to TRUE even though tags were
associated with the object.
How much of django's code is broken with python 3.0?
I'm not that deep into Python, (yet). So, it strikes me that maybe
I'm better off installing 3.0 and learning that rather than sticking
to 2.5.
But, I don't want to find out I have to go and relearn django all over
again.
I'm using 1.0 -- I keep reading that there is supposed to be one in
the upper right hand corner. I finally had to use Google images to
find an illustration.
But I don't have that link displayed. I do have the "change
password / logout" links, but not the doc link.
Can anybody throw me a
On Nov 24, 7:20 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-11-24 at 15:27 -0800, waltbrad wrote:
>
>
> James' book was written for Django 0.96. There were changes between 0.96
> and 1.0. In particular, the admin structure was improved and c
Hello again. I'm working my way through James Bennet's book. He is
implementing the use of a search function in the admin page.
The models.py for the project is supposed to read thus:
from django.db import models
from django.contrib.flatpages.models import FlatPage
# Create your models here.
On Nov 23, 9:00 pm, waltbrad <[EMAIL PROTECTED]> wrote:
> On Nov 22, 9:09 pm, waltbrad <[EMAIL PROTECTED]> wrote:
>
> > I'm working with James Bennet's book Practical Django Projects. He
> > puts a tiny_mce text editor into the admin flatpage interface.
>
>
On Nov 22, 9:09 pm, waltbrad <[EMAIL PROTECTED]> wrote:
> I'm working with James Bennet's book Practical Django Projects. He
> puts a tiny_mce text editor into the admin flatpage interface.
>
> I have this in the change_form.html, (at the proper place, I
> che
On Nov 22, 9:37 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2008-11-22 at 18:09 -0800, waltbrad wrote:
>
> [...]
>
> > # Uncomment the next line to enable the admin:
> > (r'^admin/(.*)', admin.site.root),
> > (r'^tiny_mce/
I'm working with James Bennet's book Practical Django Projects. He
puts a tiny_mce text editor into the admin flatpage interface.
I have the change_form.html on this path C:\mytemplates\admin\flatpages
\flatpage
tiny_mce.js is found here: C:\tinymce\jscripts\tiny_mce
This is my urls.py:
On Nov 20, 6:15 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
>, so check very carefully (for example,
> run tabnanny.py -- which is in the directory where Python is installed
> -- over your code to check)
>
Thanks for that, Malcolm. I'll have to remember that tool.
> > 1.1 pre-alpha
>
>
On Nov 20, 6:07 pm, waltbrad <[EMAIL PROTECTED]> wrote:
> On Nov 20, 5:45 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
>
>
>
> > > Is there something wrong with this. I am using django 1.1
>
> > Are you by any chance mixing spaces and tabs? The code
On Nov 20, 5:45 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
>
> > Is there something wrong with this. I am using django 1.1
>
> Are you by any chance mixing spaces and tabs? The code *looks* OK. I
> doubt you are using 1.1, however, since that hasn't been released yet.
>
> regards
> Steve
Hate to bother with this, I'm sure it's a small thing. I'm going
through the 1st django app tutorial in the django documentation. I'm
doing okay until the Unicode statements they want inserted into the
models.py file, for the representation of objects in the interpreter.
On the website they
On Nov 20, 1:22 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
>
>
> On Windows systems, the same result can be achieved by copying the file
> django-trunk/django/bin/django-admin.py to somewhere on your system
> path, for example C:\Python24\Scripts.
>
>
Hello Steve. Yes, I did that. Actually I
On Nov 20, 1:20 pm, Sahil R Cooner <[EMAIL PROTECTED]> wrote:
> Have you tried checking out the django documentation, it's gotten a lot
> better than a year ago.
>
> You can find what you're looking for there
> at:http://docs.djangoproject.com/en/dev/topics/install/?from=olddocs
>
>
Hello
Hi folks. I'm trying to install on my pc Django without success. I
was using instantdjango, but I'm told that there is some danger
because of it's internal webserver?
Anyway, I downloaded django and put the folder into C:\Python25\Lib
\site-packages. I also put the path to django-admin.py in my
Which is best to read the Django book, or to read the documentation/
tutorial?
I know someone is likely to say both, but which is best to read
first? Will one get you and going faster than the other?
--~--~-~--~~~---~--~~
You received this message because you
I started with Django about a year ago and got interrupted. So, now
I'm back and trying to go through a tutorial with the Django book.
Installation. I did this once on the upstairs computer, but can't
remember what I did. But, I did it without installing a database
engine. But, installation
Hi there. I'm a python novice, getting into the Mark Lutz tome. I'm
pretty enthusiastic about python and when I found out that it could be
used in website development I had to look into to Django, (mainly
because of the Satchmo project). So, I actually got Django installed
and got the webserver
35 matches
Mail list logo