Problem displaying value(s) from ManyToMany relationship

2008-05-18 Thread Brandon Taylor
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

Re: Image upload not working in newforms admin?

2008-05-16 Thread Brandon Taylor
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 May 16, 1:06 pm, Brandon Taylor <[EMAIL PROTECTED]> wrot

Image upload not working in newforms admin?

2008-05-16 Thread Brandon Taylor
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

Re: Help with custom validator - please, please, please

2008-05-15 Thread Brandon Taylor
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

Invalid block tag: 'include_admin_script' in newforms admin?

2008-05-15 Thread Brandon Taylor
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

Re: Help with custom validator - please, please, please

2008-05-15 Thread Brandon Taylor
[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? Does this go into my models.py as

Re: Help with custom validator - please, please, please

2008-05-14 Thread Brandon Taylor
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

Help with custom validator - please, please, please

2008-05-14 Thread Brandon Taylor
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

How to: Integrate the newforms admin?

2008-05-14 Thread Brandon Taylor
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,

Validating image and file upload via the admin

2008-05-12 Thread Brandon Taylor
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

Re: clean_xxx field not working - help please

2008-05-12 Thread Brandon Taylor
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: > > from dj

clean_xxx field not working - help please

2008-05-12 Thread Brandon Taylor
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,

Auto-increment a integer column in admin?

2008-05-11 Thread Brandon Taylor
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

Re: django-admin.py not working on OS X 10.5

2008-05-08 Thread Brandon Taylor
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: > > >

django-admin.py not working on OS X 10.5

2008-05-07 Thread Brandon Taylor
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

Re: Simply can't get sessions to work - help!

2008-04-30 Thread Brandon Taylor
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, Brandon Tayl

Re: Simply can't get sessions to work - help!

2008-04-30 Thread Brandon Taylor
e 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: > > > > > > > Hello

Simply can't get sessions to work - help!

2008-04-30 Thread Brandon Taylor
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 =

Re: Session/Varibale and HttpResponseRedirect help please

2008-04-29 Thread Brandon Taylor
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 Van Hornhttp://maydigital.com/ >

Session/Varibale and HttpResponseRedirect help please

2008-04-28 Thread Brandon Taylor
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']

Re: Rendering HTML stored in database

2008-04-25 Thread Brandon Taylor
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 integ

Re: Need help loading template

2008-04-19 Thread Brandon Taylor
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 / the year / > month / day

Need help loading template

2008-04-19 Thread Brandon Taylor
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),

Image upload path different between Windows & Mac

2008-04-18 Thread Brandon Taylor
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

Re: Need help DRYing up urls.py

2008-04-18 Thread Brandon Taylor
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

Re: Need help DRYing up urls.py

2008-04-18 Thread Brandon Taylor
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.py > > > from rdk.pages.views import return_template > > > On Apr

Re: Need help DRYing up urls.py

2008-04-18 Thread Brandon Taylor
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.py. H

Re: Need help DRYing up urls.py

2008-04-18 Thread Brandon Taylor
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 PROTECTED]> wrote: > > > Hi Alex, > > &g

Re: Need help DRYing up urls.py

2008-04-18 Thread Brandon Taylor
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 Taylor <[EM

Re: Need help DRYing up urls.py

2008-04-18 Thread Brandon Taylor
AIL 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'}), > > >  ...and received an error saying: > >  Error while importing URLc

Need help DRYing up urls.py

2008-04-18 Thread Brandon Taylor
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/$',

Re: Need help understanding generic detail view

2008-04-18 Thread Brandon Taylor
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:11 -0700, Brand

Need help understanding generic detail view

2008-04-18 Thread Brandon Taylor
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

Filter on ForeignKey not working

2008-04-16 Thread Brandon Taylor
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

Re: New to Python, need help DRYing up some code

2008-04-15 Thread Brandon Taylor
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 file: > &

Re: __unicode__(self):

2008-04-14 Thread Brandon Taylor
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:04 -07

__unicode__(self):

2008-04-13 Thread Brandon Taylor
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 =

Re: Catch-all route?

2008-04-11 Thread Brandon Taylor
gt; 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 > >  page? Ob

Catch-all route?

2008-04-11 Thread Brandon Taylor
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: Lookup that spans relationship not working as expected

2008-04-09 Thread Brandon Taylor
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's the outp

Re: Lookup that spans relationship not working as expected

2008-04-09 Thread Brandon Taylor
RIMARY 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: > On Wed, Apr 9, 2008 at 3:

Re: Lookup that spans relationship not working as expected

2008-04-09 Thread Brandon Taylor
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]> > wrote: > > > > > I'm

Re: Lookup that spans relationship not working as expected

2008-04-09 Thread Brandon Taylor
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

Re: Lookup that spans relationship not working as expected

2008-04-09 Thread Brandon Taylor
ot; 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 PROTECTED]> wrote:

Re: Lookup that spans relationship not working as expected

2008-04-09 Thread Brandon Taylor
='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, > > > Thanks fo

Re: Lookup that spans relationship not working as expected

2008-04-09 Thread Brandon Taylor
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 question: > >

Lookup that spans relationship not working as expected

2008-04-09 Thread Brandon Taylor
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

Multiple sites on shared host

2008-03-30 Thread Brandon Taylor
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

Re: Problem with nested loop

2008-03-29 Thread Brandon Taylor
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:

Re: Problem with nested loop

2008-03-28 Thread Brandon Taylor
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]>

Re: Problem with nested loop

2008-03-28 Thread Brandon Taylor
' 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 models.py > > > class WorkCat

Re: Problem with nested loop

2008-03-28 Thread Brandon Taylor
records: {{ work_category.work_samples|length }} I get 0. Thoughts? On Mar 28, 11:55 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 29-Mar-08, at 10:13 AM, Brandon Taylor wrote: > > > Sorry, that's my fault. I was trying to simplify the naming a bit for > > the post

Re: Problem with nested loop

2008-03-28 Thread Brandon Taylor
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: > > > > > def showCategories(requ

Anyone have experience with Satchmo in a shared hosting environment?

2008-03-26 Thread Brandon Taylor
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

Re: Displaying a variable in my base template

2008-03-26 Thread Brandon Taylor
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

Displaying a variable in my base template

2008-03-25 Thread Brandon Taylor
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

Admin recipes anyone?

2008-03-09 Thread Brandon Taylor
nk 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 Google Groups "Django users" group. To

Re: Error running: python manage.py sqlall 'myapp'

2008-03-08 Thread Brandon Taylor
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

Error running: python manage.py sqlall 'myapp'

2008-03-08 Thread Brandon Taylor
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):

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
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 my cu

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
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. > > Thanks, > Bra

Re: i'm tired

2008-02-09 Thread Brandon Taylor
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

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
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 > > -- >

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
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 = ''

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
8: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 everyone, > > > I'm just about to give up on Django. I can't even get it to load a > > simpl

About to give up!!!

2008-02-09 Thread Brandon Taylor
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

Re: Getting development environment configured

2008-02-08 Thread Brandon Taylor
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

Re: Getting development environment configured

2008-02-08 Thread Brandon Taylor
ject 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 the PARENT of the website directory in the >

Re: Getting development environment configured

2008-02-08 Thread Brandon Taylor
, 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, chin up, m

Getting development environment configured

2008-02-08 Thread Brandon Taylor
ally 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 with some face-to-face tutoring, I'd be more than happy to compensate you for your time. Kind regards, Bran

Re: Setting up Apache & mod_python on my development computer

2008-02-06 Thread Brandon Taylor
amp5 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 wrote:Hi Guys, Yes, I've tried that as well. No dice. Ugh! b > On Feb 6, 1:22 pm, Mic

Re: Setting up Apache & mod_python on my development computer

2008-02-06 Thread 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: > > We

Re: Setting up Apache & mod_python on my development computer

2008-02-06 Thread Brandon Taylor
n 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 projects that plays nice with Apache? > >

Re: Setting up Apache & mod_python on my development computer

2008-02-06 Thread Brandon Taylor
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 mod_python > > module is loaded and

Setting up Apache & mod_python on my development computer

2008-02-06 Thread Brandon Taylor
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

Re: How to organize a django website

2008-02-06 Thread Brandon Taylor
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

Re: How to organize a django website

2008-02-06 Thread Brandon Taylor
) 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: > > > > >

Re: new to django

2008-02-06 Thread Brandon Taylor
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:

How to organize a django website

2008-02-06 Thread Brandon Taylor
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

Re: Extending Django's admin application

2008-02-05 Thread Brandon Taylor
.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: > > >

Extending Django's admin application

2008-02-05 Thread Brandon Taylor
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 Taylor www.btaylordesign.com

Re: Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread Brandon Taylor
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

Re: Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread Brandon Taylor
r: command 'gcc' failed with exit status 1 Thoughts? Thanks, Brandon On Sep 2, 6:09 pm, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote: > On Sun, 2007-09-02 at 16:04 -0700, Brandon Taylor wrote: > > Hi everyone, > > > I have Python 2.5.1 and Django installed and runnin

Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread Brandon Taylor
Hi everyone, I have Python 2.5.1 and Django installed and running on OS X 10.4.10, but can't seem to get either the Psycopg2 or MySQL-python bindings installed so I can actually use a database with Django. I have the latest version of PostgreSQL and MySQL5 installed and running. Can someone

Re: Help with Django installation on OSX 10.4.10

2007-08-27 Thread Brandon Taylor
EMAIL PROTECTED]> wrote: > Use the path settings from my earlier post - that fits perfectly with > MacPorts and should do you. > > -joe > > On 8/26/07, Brandon Taylor <[EMAIL PROTECTED]> wrote: > > > > > Hi everyone, > > > I scrapped my custom install of

Re: Help with Django installation on OSX 10.4.10

2007-08-26 Thread Brandon Taylor
to Java for a really fast, one-stop-shop open-source framework. Again, many thanks, Brandon On Aug 26, 11:00 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote: > Use the path settings from my earlier post - that fits perfectly with > MacPorts and should do you. > > -joe &g

Re: Help with Django installation on OSX 10.4.10

2007-08-26 Thread Brandon Taylor
, Brandon On Aug 26, 1:34 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 26-Aug-07, at 11:51 AM, Brandon Taylor wrote: > > > -bash: django-admin.py: command not found > > what happens if you run /usr/local/bin/django-admin.py, that is, with > the full path name

Help with Django installation on OSX 10.4.10

2007-08-26 Thread Brandon Taylor
Hi everyone, I'm just getting started with Django/Python. I have installed Python 2.4.4, and Django from the latest build. I can run 'python' and 'import django' from bash and it does not error out, so I'm assuming my installs are correct. I have made an alias of 'django-admin.py' and placed it

<    1   2   3