% endif %}
Thoughts?
On May 18, 5:56 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I have a ManyToMany field on a model, and when I want to get the
> related items and display them in a template in a for loop, the loop
> executes the correct number of t
Hi everyone,
I have a ManyToMany field on a model, and when I want to get the
related items and display them in a template in a for loop, the loop
executes the correct number of times, but in my output blocks there
are no values.
If I print the object, I get an array of values, same as any other
mageField isn't as easy to get
> working as it should be :-/
>
> I think my problem may be OS X related and having to do with OS X's
> Apache and mod_python being 64 bit while my PIL is something else, but
> I need to verify that PIL is, in fact, 32 bit still.
>
> On Ma
Hi everyone,
I can't get the newforms admin to upload images. I have PIL and JPEG
support installed. My selftest on PIL reports that JPEG is supported,
along with PNG, but when I try to upload, I get:
Upload a valid image. The file you uploaded was either not an image or
a corrupted.
I can conf
To elaborate, I can't do a self.instance, as it errors saying "self is
not defined". For example:
color_field =
forms.ModelMultipleChoiceField(queryset=self.instance.colors)
I need to find the difference of two lists on a model to form the
queryset in my application.
--~--~-~--~~
Is there a way to get the value of the 'instance' keyword argument
from within a Form sub-classed by ModelForm? For example:
class CS_SKU(models.Model):
colors = models.ManyToManyField(Color, blank=True, null=True)
color_field = forms.ModelMultipleChoiceField(queryset=colors)
class Form_
Finally - someone pointing me to more than just the documentation.
Thank you!
I'll give that a shot and see where it takes me - along with
memorizing the documentation. I really appreciate you taking the time
to respond to my question. Django is just awesome. I fell in love with
Rails having done
Anyone else receiving this error:
Invalid block tag: 'include_admin_script'
when loading the change form in newforms-admin?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
May 15, 8:05 am, Pigletto <[EMAIL PROTECTED]> wrote:
> On 15 Maj, 03:43, Brandon Taylor <[EMAIL PROTECTED]> wrote:> I saw this
> example in the
> documentation:http://www.djangoproject.com/documentation/forms/#validators
>
> > But where does this code live? Doe
I saw this example in the documentation:
http://www.djangoproject.com/documentation/forms/#validators
But where does this code live? Does this go into my models.py as a
subclass of my Model, or is it a separate file?
Advice appreciated,
Brandon
On May 14, 6:28 pm, Brandon Taylor <[EM
Hi everyone,
I've been using Django for awhile, but haven't had to customize the
admin, until now, and...I'm stuck.
Since newforms-admin is supposed to be more extensible, I'm running
the latest of that, and have defined a simple model:
from django.db import models
from django.contrib import ad
Hello everyone,
What's the process for incorporating the newforms admin? I'm currently
running trunk (0.97).
TIA,
Brandon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Hello everyone,
Does anyone have a good strategy for validating image and file
uploads? Like checking that images are the correct file type,
dimensions are within bounds, etc.
I see where we can override the save method on a model, but how would
we go about accessing properties of an uploaded fi
Specifically, I'd like to use this validation in the admin. Is the
best way to do this by overriding the save() method?
On May 12, 3:32 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm attempting to do some image validation. Here is my model:
>
&g
Hi everyone,
I'm attempting to do some image validation. Here is my model:
from django.db import models
GROUP_CHOICES = (
('Home Page', 'Home Page'),
('Tenets Sidebar', 'Tenets Sidebar'),
)
class Image(models.Model):
group = models.CharField(max_length=20, cho
Hi everyone,
I want to add an integer field to a table callled "position" to do
ordering by. I would like the field to auto-increment based on the
count of objects.
I've tried overriding the save() method of the model, but this doesn't
seem to work with the admin.
Here's some simple test code f
. then symlink : sudo ln -sf /Library/Python/2.5/site-packages/django/
> > bin/django-admin.py /usr/local/bin/django-admin.py
>
> > it works. /usr/local/bin is already in your path.
>
> > Francis
>
> > On May 7, 6:46 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
Hello everyone,
I'm setting up a dev environment on a co-worker's Mac running 10.5.2
I have Django cehcked out from trunk, and symlinked into Python 2.5.2.
I can successfully import Django from within a Python terminal
session.
I have django-admin.py symlinked from the trunk checkout to /usr/lo
I was wondering if there's any reason why get_FOO_display() calls
aren't being evaluated when updating/adding new objects via the admin
interface. What I mean by this is:
The workout "1" was changed successfully.
Instead of:
The workout "Running" was changed successfully.
The field in question
say suffer through a couple of tough installs, document
what you do so that you can do it again, and then you will be a lot
better off, and have a greater understanding of how everything works.
At least, that's what I do.
Taylor
On May 1, 10:43 pm, selmac <[EMAIL PROTECTED]> wrote:
I got it figured out. It wasn't anything to do with my session code at
all. It was my own fault, not matching the "thanks" view correctly.
I'm still getting used to matching routes with RegExes, but now I know
what to do next time.
Thanks,
Brandon
On Apr 30, 7:48 pm, Br
back out to the template, if it's not the way outlined in the
documentation...?
TIA,
Brandon
On Apr 30, 3:30 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 30, 2008 at 3:40 PM, Brandon Taylor <[EMAIL PROTECTED]>
> wrote:
>
>
>
>
>
>
On Apr 29, 9:03 pm, Roboto <[EMAIL PROTECTED]> wrote:
> My code to validate picture data posted below.
> My quick commentary on it is that it works 100% for fire fox, safari.
> But images won't validate with IE. I thought this might have to do
> with the accept-chartype. But I was dead wrong.
>
Hello everyone,
I must be missing the forest for the trees, because I simply can't see
what I'm doing wrong here!
#in views.py
def find_seminar_occurrence(request, slug, id):
occurrence = get_object_or_404(Occurrence, pk=id)
other_occurrences =
Occurrence.objects.filter(seminar=occurrenc
ts after you add the
> variable to the session and right before you push the variable into
> the template, to see if it's making it through the redirect.
>
> If it is, then the issue is with your template, if it's not then the
> issue is with the session.
>
> Doug V
Hello everyone,
I'm doing a redirect after a form to a "thank you" page, which I would
like to personalize with some of the data from the form. I've tried
setting a session as such:
### views.py code
if form.is_valid():
first_name = form.cleaned_data['first_name']
request.session['first
http://www.djangoproject.com/documentation/templates/#automatic-html-...
>
> > Hope that helps!
> > -Eric Florenzano
>
> > On Apr 24, 11:57 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
> > > Hi everyone,
>
> > > I've got TinyMCE integrated
Hi everyone,
I've got TinyMCE integrated into my admin, and is working great, but
when I output the HTML for the record into my template, the HTML tags
are being rendered as plain text, as in, all of the tags are visible.
What can I do to allow HTML stored in my database to render properly
in th
inar_occurrence),
)
fixed the problem. I simply added a caret to the beginning of the
second pattern. Hope this helps someone else.
Brandon
On Apr 19, 8:24 am, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> In my urls.py, I'm matching: a slug from a foreign key / t
Hi everyone,
In my urls.py, I'm matching: a slug from a foreign key / the year /
month / day / pk of the record as such:
from django.conf.urls.defaults import *
from rdk.training.views import *
urlpatterns = patterns('',
(r'^$', list_seminars),
(r'[
Hi everyone,
I've noticed that when uploading images when running an app from
Windows, file paths are stored using backslashes:
images\my_image.jpg
when running on Mac, they are forward slashes:
images/my_image.jpg
I've seen where there is a hook into the save method on a model. I'm
assuming
In this case, I think I'll be fine, as the templates that would match
any of these patterns just contain public, static content, nothing
dynamic. However, I will definitely keep the code snippet for future
use!
Thank you to all who have replied, I really appreciate your help and
guidance as I get
> view's name, not actually calling it, and your wrapper function needs
> to take request, and pass it along to dire3ct_to_template
>
> On Apr 18, 3:51 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
> > Sorry, forgot to say that I have imported the view into urls
Sorry, forgot to say that I have imported the view into urls.py
from rdk.pages.views import return_template
On Apr 18, 2:39 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> I understand the concept of that, but I'm having an issue with
> importing the view function into my urls.
you
> need(specifically doing that simple substitution), and then have it
> return django.views.generic.simple.direct_to_template, remember views
> are just functions, if you need an example let me know and I will
> write one up.
>
> On Apr 18, 3:10 pm, Brandon Taylor <[EMAIL PROTE
advise,
Brandon
On Apr 18, 1:34 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Direct_to_template does not substitute the template var in to the
> template param, you will need to write a simple wrapper to do
> something like this.
>
> On Apr 18, 12:35 pm, Brandon
:25 am, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On Fri, Apr 18, 2008 at 12:17 PM, Brandon Taylor
>
> <[EMAIL PROTECTED]> wrote:
> > (r'?P[-\w]+/$', direct_to_template, {'template' : '%
> > (template)s.html'}),
>
> >
Hi everyone,
Coming from Rails, I've been naming my templates according to their
corresponding URLs. But, since Django's routing is RegEx based, I'm
sure there's a better way to do this:
urlpatterns = patterns('',
(r'^$', direct_to_template, {'template':'home.html'}),
(r'^contact/$', dir
Hi Malcolm,
Everything's working. I'm still getting used to setting up routes in
Django, but overall I'm extremely impressed with this framework!
Thanks for your help,
Brandon
On Apr 18, 10:18 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Fri, 2008-04-18 at 08:
Hello everyone,
Here is my urls.py:
from django.conf.urls.defaults import *
from django.views.generic import list_detail
from rdk.staff.models import *
groups = {
'queryset' :
Group.objects.all().select_related().order_by('name'),
'template_name' : 'staff.html',
}
employee
Hello everyone,
Here are my models:
class Seminar(models.Model):
title = models.CharField(max_length=255)
display = models.BooleanField()
def __unicode__(self):
return self.title
class Admin:
ordering = ['title']
search_fields = ('title',)
class Met
Thanks Jay!
On Apr 15, 4:56 pm, "Jay Parlar" <[EMAIL PROTECTED]> wrote:
> On 4/15/08, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi everyone,
>
> > I'm sure there's a better way to do this in my settings.py fi
Hi everyone,
I'm sure there's a better way to do this in my settings.py file:
TEMPLATE_DIRS = (
os.path.join(os.path.dirname(__file__), 'pages',
'templates').replace('\\', '/'),
os.path.join(os.path.dirname(__file__), 'articles',
'templates').replace('\\', '/'),
os.path.join(os.path.
Thanks! I was trying to use a + concatenator and it just wasn't happy.
Brandon
On Apr 14, 1:00 am, 1234 <[EMAIL PROTECTED]> wrote:
> add "self"
>
> 2008/4/14, Malcolm Tredinnick <[EMAIL PROTECTED]>:
>
>
>
> > On Sun, 2008-04-13 at 22:0
Hello everyone,
I'm pretty new to Django, so please bear with me.
When I'm defining a model, and I want to return a value to use in the
admin for the information to be displayed as such:
from django.db import models
class Link(models.Model):
name = models.CharField()
url = models.CharF
ropriate template.
>
> http://www.djangoproject.com/documentation/url_dispatch/#handler404
>
> On Fri, Apr 11, 2008 at 1:07 PM, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
> > Hi Everyone,
>
> > Is there a way to define a catch-all route to send people to a 404
ht is to create a custom tag that automatically builds
the from with a hidden data in it, but I haven't looked into custom
tags to see if that's possible yet.
Thanks!
On Apr 11, 10:11 am, "Norman Harman" <[EMAIL PROTECTED]> wrote:
> Taylor wrote:
> > Thanks for t
Hi Everyone,
Is there a way to define a catch-all route to send people to a 404
page? Obviously I need to define a route that matches anything not
previously defined, but am struggling with the RegEx to do so.
Help appreciated!
Brandon
--~--~-~--~~~---~--~~
You re
use a in my
template.
Thanks
On Apr 10, 6:34 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote:
> Taylor wrote:
> > Does something exist so that a link on a page performs an action
> > rather than just showing a view?
> > For example: I have a counter saved to th
ink this would be a great addition to django. Many
frameworks are adding things like this, and I would gladly fill out a
ticket requesting this.
Thanks a bunch,
Taylor
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&quo
my search
again. Thank you very much for helping! I really appreciate your time.
Brandon
On Apr 9, 3:54 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 9, 2008 at 4:35 PM, Brandon Taylor <[EMAIL PROTECTED]>
> wrote:
>
>
>
>
>
> > Here&
d NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8
COLLATE=utf8_bin;
I'm assuming the "COLLATE=utf8_bin" is what's causing the problem?
Thanks,
Brandon
On Apr 9, 3:14 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
>
27;t made any changes to the
database. I actually haven't even touched it directly, only through
the Python code in Django.
Thoughts?
Brandon
On Apr 9, 2:20 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 9, 2008 at 2:16 PM, Brandon Taylor <[EMAIL PROTECTED]
I'm using MySQL 5, and it's using LIKE instead of ILIKE. I'll try
grabbing the latest from trunk and see how she goes, otherwise I might
switch to Postgres and file a ticket if the latest trunk doesn't
address this.
Thank you SO much for your help!
Brandon
On Apr 9, 1:10 pm, Rajesh Dhawan <[EMAI
"print" it will return 0
results. If I use "Print" it will return all of the WorkSamples with
the category of "Print"
Thoughts?
Brandon
On Apr 9, 11:51 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Apr 9, 12:44 pm, Brandon Taylor <[EMAIL PROTEC
_icontains='whatever')
)
results = WorkSample.objects.select_related().filter(qset).distinct()
from the shell
On Apr 9, 11:17 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Apr 9, 11:55 am, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
> > Hi Rajesh,
>
?
TIA,
Brandon
On Apr 9, 10:33 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Apr 9, 11:20 am, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi everyone,
>
> > I'm trying to build a simple search.
>
> > Here are the models in
Hi everyone,
I'm trying to build a simple search.
Here are the models in question:
class WorkCategory(models.Model):
title = models.CharField(max_length = 30)
position = models.PositiveSmallIntegerField()
def __unicode__(self):
return self.title
This would be great, I'd love to see this although I'm not really
experienced enough to help much.
On Apr 8, 10:21 am, "Peter Baumgartner" <[EMAIL PROTECTED]> wrote:
> Anybody interested in starting an app engine/big table db backend
> project? Should be interesting and might help pave the way fo
Hi everyone,
I'm on shared hosting and can't modify any Apache settings. So, I'm
assuming I need to specify which settings file to use in .htaccess.
I have two projects on my server. The first one is working correctly,
the second is not. The problem with the second is that it seems to be
loading
Thank you SO much for helping Kenneth. I just had to change
'workcategory_set' to 'worksample_set' and it's all good. I never
would have found this in the documentation without knowing the '_set'
keyword, but for those of you who are interested, it's in the
documentation here: http://www.djangopro
I already have my site built in Rails, and this is just a re-code in
Django. I've had really good luck with it until now :) You can see the
desired output (although the markup is different) at
http://www.btaylordesign.com/portfolio
On Mar 29, 12:47 am, Brandon Taylor <[EMAIL PROTECTED
my thinking way off for the way the
template system is designed? Thanks for your help, I really appreciate
your time.
On Mar 29, 12:43 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 29-Mar-08, at 10:52 AM, Brandon Taylor wrote:
>
> > So, to simplify my question, how can
of a
'work_category' through the nested for loop, given my model structure?
On Mar 29, 12:18 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 29-Mar-08, at 10:30 AM, Brandon Taylor wrote:
>
>
>
> > Sure. This app is for my portfolio. Here's my mod
'desc')
class Meta:
verbose_name_plural = 'Work Samples'
I thought I could probably loop through the work samples by saying:
{% for work_sample in work_category.work_samples %}{% endfor %}
But when I return the length of child records:
{{ work_categor
Sorry, that's my fault. I was trying to simplify the naming a bit for
the post. 'work_category' should just be 'category'
On Mar 28, 11:44 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 29-Mar-08, at 9:43 AM, Brandon Taylor wrote:
>
>
>
> >
Hi everyone,
Still wet behind the ears with Django, so please bear with me...
In my model, I have categories and items. Each item belongs to a
category. When I run the admin app, I can see my categories, and I can
see my products. I have visually verified that each item has a foreign
key for the
Hello everyone,
I'm about to embark on a Django/Satchmo project and was interested to
hear your experiences with deploying this combination into a shared
environment.
Thanks,
Brandon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Thanks!
On Mar 25, 10:24 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> If it is going to be in every page I would just use the now
> tag(http://www.djangoproject.com/documentation/templates/#now) in
> the base.html
>
> On Mar 25, 9:56 pm, Brandon T
Hello everyone,
Still fairly new to Django, but I'm loving it!
I have a base html template that I would like to display the current
year in. Where should I put the action that retrieves the current year
if I would like the value to appear on every page?
Thank you,
Brandon
--~--~-~--~---
than Rails, which, till now, I didn't think could happen.
So, if anyone could give me some pointers on extending the admin, I
would be very grateful!
Kind regards,
Brandon Taylor
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hello,
Yes, I'm using MySQL 5 and Django .097 pre. Actually, I just went into
the introspection.py file and changed the first line to:
from django.db.backends.mysql.base import DatabaseOperations
...and we're good to go. I'm not sure why it would be that way in the
repository, but it seems to b
Hi everyone, I'm brand-new to Django, so please bear with me.
I have created an app called 'portfolio' within my project, and added it to
my installed apps in 'settings.py'
In my models.py, here are my class definitions:
from django.db import models
class WorkCategory(models.Model):
t
YOU, MY FRIEND, ARE THE MAN.
I can't thank you enough. A tear almost ran down my cheek.
Kindest regards,
Brandon
On Feb 9, 1:29 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On 2/9/08, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
> > Any way, here is
Python, and it appears to be working
normally.
But, still, no images :(
On Feb 9, 1:00 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Hello Ian,
>
> I have set permissions for all groups and users to read/write for the
> entire project folder, including all enclosed items.
&
Man I hear you. I've been doing web for 10 years, in a variety of
languages. I have Django installed VERBATIM according to the
documentation.
I'm using Mac OS X 10.4.11. I have Python 2.5.1 and Django 0.97
installed.
I can get Django to run, but I can't get it to server images using the
built-in
Hello Ian,
I have set permissions for all groups and users to read/write for the
entire project folder, including all enclosed items.
Thanks,
Brandon
On Feb 9, 12:48 pm, "Ian Lawrence" <[EMAIL PROTECTED]> wrote:
> Ola
> what are the permissions on the image file?
> regards
> ian
>
> --
> always
Yes, here is my settings file:
- - -
import os.path
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', '[EMAIL PROTECTED]'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql',
'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = ''
uit the server with CONTROL-C.
[09/Feb/2008 11:58:42] "GET / HTTP/1.1" 200 39
[09/Feb/2008 11:58:42] "GET /site_media/my_image.jpg HTTP/1.1" 200 39
Ideas?
Thank you,
Brandon
On Feb 9, 10:59 am, Michael Hipp <[EMAIL PROTECTED]> wrote:
> Brandon Taylor wrote:
> > Hi ev
Hi everyone,
I'm just about to give up on Django. I can't even get it to load a
simple jpeg using the built-in server.
Here is my directory structure:
'/Users/bt/django_projects' is where all of my Django projects exist
/btaylor_design
settings.py, etc
/public
/images
/styl
Hi,
That doesn't seem to want to work for me. Since I've been able to get
mod_python to run my pages, I'm halfway there. Now I just can't get
images to show up in my pages.
My website directory structure is:
/website1
/public
/images
/__init__.py, urls.py, views.py, etc
If I'm spe
t how to use WAF to deploy my Django project and I'm all
> set :-{}
>
>
>
> On Fri, 2008-02-08 at 11:51 -0800, Brandon Taylor wrote:
> > FINALLY, it works.
>
> > I guess the entire problem was that I had specified the website
> > directory itself instead of t
, 1:08 pm, Adam Stein <[EMAIL PROTECTED]> wrote:
> Just started with Django myself. Went thru 3 different tutorials.
> Hopefully, what I'm mentioning below hasn't already been covered.
>
>
>
> On Fri, 2008-02-08 at 10:34 -0800, Brandon Taylor wrote:
> > So,
to learn and use this great framework, but so
far, getting out of the gate has been really tough and I'd really
appreciate some help. I'm in Austin, Texas, and if there's anyone
local that would be so gracious as to help me get started wit
on25\Scripts;c:\Python25\" in my system PATH.
> Running an XP SP2 box, wamp5 version 1.6.4, Apache 2.0.58(win32), mod_python
> 3.3.1, Python 2.5.1
> Don't know if there's anything else I can tell you that might help, good luck
> with it...
> Aaron
> Brandon Taylor
Hi Guys,
Yes, I've tried that as well. No dice. Ugh!
b
On Feb 6, 1:22 pm, Michael Hipp <[EMAIL PROTECTED]> wrote:
> Is there a reason this line looks like this:
> >
>
> Instead of like this:
> >
>
> Michael
>
> Brandon Taylor wrote:
> &g
uck on my Mac when I get home.
- Brandon
On Feb 6, 11:13 am, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Hi Aaron,
>
> I'm still getting the same error after I restart Apache. Is there a
> better setup to use for the install location for Django and where I
> place my pro
our error comes from django looking for the settings
> module in /django_projects/testproject/testproject/
>
> Like I said, shot in the dark, but hth...
> Aaron
>
> Brandon Taylor wrote:
> > Hi everyone,
>
> > I have Apache 2 and mod_python installed on Windows. The m
Hi everyone,
I have Apache 2 and mod_python installed on Windows. The mod_python
module is loaded and active.
Here's a breakdown of where things are...
Python is installed at: C:\Python25
Django is installed at: C:\Python25\Lib\site-packages
\django
My 'testproject' in i
Thanks guys! I'm about halfway through the Definitive Guide book, and
I like what I've seen so far. I'll just have to dig in, and start
coding. I've seen quite a few posts about how to organize a "typical"
website, so after I get one working I'll post an overview of what I
did and where I put thin
) root # - accessible to internet
/images
/css
/javascripts, etc
/non-related html files, etc
Thanks again,
Brandon
On Feb 6, 7:31 am, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Feb 6, 1:17 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
>
>
> >
Hello Beema,
Do you have the Python MySQL adapter installed? If not you, can find
the downloads at http://sourceforge.net/projects/mysql-python.
I'm not sure regarding the location of your template HTML file, I've
asked the group for an example of how to organize a Django project in
this post:
Hello everyone,
I'm just getting started, so please bear with me. How should I
organize my website? I haven't seen a definitive example of where to
put settings files, templates, applications, images, stylesheets, etc.
My best guess would be something like:
/website_root
/source
settings.
ngoproject.com/documentation/model-api/#imagefield
>
> Image Field also requires PIL which is what you'll use in-place of RMagick
>
> http://www.pythonware.com/products/pil/
>
> peace.
>
> Vance
>
> On Feb 5, 2008 5:47 PM, Brandon Taylor <[EMAIL PROTECTED]> wrote:
have the Definitive Guide to Django book from Apress, and am
experienced developer...just not with Python :) I'm very anxious to
learn and get started really building something with this great
framework.
Many TIA for your advice,
Brandon Tayl
Although Django's web side is nice, and I like the "free" Admin
interface, what I really want to use Django for is its data model ORM
and resulting "free" API. I want to use this to build a stand-alone
Python application, using wxWidget for more sophisticated UI than I
can get on a web page. I'v
ank=True,
verbose_name="ParentFolder")
On Sep 13, 4:32 pm, Martin Taylor <[EMAIL PROTECTED]> wrote:
> I've created a very simple Django app to model a tree (like a file
> system directory tree). Here's the model.py file:
>
> from django.db import models
>
I've created a very simple Django app to model a tree (like a file
system directory tree). Here's the model.py file:
from django.db import models
#
# Define constants used to control sizes of DB fields
#
MAX_NAME = 100 # Maximum size of an object's Name field
#
# Create your models here.
#
cla
Thank you very much to everyone for your help. It took a few tries,
but I finally got the paths configured correctly in my setup.conf for
psycopyg. I'm working through the first tutorial. Looks like I need to
grab the newest Django source from subversion. But, I'm able to create
and sync my models
r is
reported only once
psycopg/psycopgmodule.c:104: error: for each function it appears in.)
psycopg/psycopgmodule.c: In function 'psyco_connect':
psycopg/psycopgmodule.c:215: error: parse error before ')' token
psycopg/psycopgmodule.c: In function 'psyco_register_type'
401 - 500 of 507 matches
Mail list logo