Help using Model Managers please

2008-05-30 Thread Brandon Taylor
Hello everyone, I have two Models: Member, Job Member has two types: Staff, Board Job needs to have a ManyToMany field for Member, so I can send emails to those associated records. So, what I'm trying to accomplish is to filter the list of Members that are shown in the ManyToMany to include o

Re: Issue with newforms-admin

2008-05-23 Thread Brandon Taylor
OMG. I can't believe I missed the trailing slash when I set up the get_absolute_url for the results page. I need sleep. Thanks Karen, Brandon On May 22, 4:19 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, May 22, 2008 at 3:21 PM, Brandon Taylor <[EMAIL PROTEC

Issue with newforms-admin

2008-05-22 Thread Brandon Taylor
Hi everyone, I'm having a problem with an url pattern. When I try to do a custom view using the newforms admin, such as: (r'^admin/surveys/survey/answers/(?P[-\w]+)/$', 'app.surveys.views.answers_list'), If I remove: (r'^admin/(.*)', admin.site.root), #the default routing for newforms- admin

Re: Problem displaying value(s) from ManyToMany relationship

2008-05-18 Thread Brandon Taylor
own sanity :) Cheers, Brandon On May 18, 6:57 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Here is my code: > > #in models.py > class Instructor(models.Model): >     prefix = models.CharField(max_length=50, blank=True, null=True) >     first_name = models

Re: Trouble installing PIL

2008-05-18 Thread Brandon Taylor
Hi Austin, I followed this tutorial to install JPEG support into PIL: http://paul.annesley.cc/articles/2007/11/19/django-and-python-imaging-library-pil-on-leopard Hope this helps, Brandon On May 18, 6:22 pm, Austin Govella <[EMAIL PROTECTED]> wrote: > I used MacPorts to install jpeg (libjpeg),

Re: Problem displaying value(s) from ManyToMany relationship

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

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 other

Re: Image upload not working in newforms admin?

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

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 conf

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 done

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 group

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

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

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 ad

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 fi

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: > &g

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, cho

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 f

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 /usr/lo

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, Br

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

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

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 = Occurrence.objects.filter(seminar=occurrenc

Re: Session/Varibale and HttpResponseRedirect help please

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

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'] request.session['first

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 integrated

Rendering HTML stored in database

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

Re: Need help loading template

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

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), (r'[

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 get

Re: Need help DRYing up urls.py

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

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.

Re: Need help DRYing up urls.py

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

Re: Need help DRYing up urls.py

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

Re: Need help DRYing up urls.py

2008-04-18 Thread Brandon Taylor
: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'}), > > >  

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/$', dir

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:

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 Met

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 fi

New to Python, need help DRYing up some code

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

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:0

__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 = models.CharF

Re: Catch-all route?

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

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

Re: Lookup that spans relationship not working as expected

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

Re: Lookup that spans relationship not working as expected

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

Re: Lookup that spans relationship not working as expected

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

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 <[EMAI

Re: Lookup that spans relationship not working as expected

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

Re: Lookup that spans relationship not working as expected

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

Re: Lookup that spans relationship not working as expected

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

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 loading

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: http://www.djangopro

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
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

Re: Problem with nested loop

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

Re: Problem with nested loop

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

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: > > > > >

Problem with nested loop

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

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 the

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
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

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 b

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): t

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

Re: About to give up!!!

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

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 built-in

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 > > -- > always

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
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

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 /styl

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 spe

Re: Getting development environment configured

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

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,

Getting development environment configured

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

Re: Setting up Apache & mod_python on my development computer

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

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: > &g

Re: Setting up Apache & mod_python on my development computer

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

Re: Setting up Apache & mod_python on my development computer

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

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 i

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 thin

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 settings.

Re: Extending Django's admin application

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

Extending Django's admin application

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

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 models

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

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

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 plea

Re: Help with Django installation on OSX 10.4.10

2007-08-26 Thread Brandon Taylor
0 pm, "Joseph Heck" <[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, > > &

Re: Help with Django installation on OSX 10.4.10

2007-08-26 Thread Brandon Taylor
go as an alternative 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 yo

Re: Help with Django installation on OSX 10.4.10

2007-08-26 Thread Brandon Taylor
TIA, 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

Help with Django installation on OSX 10.4.10

2007-08-25 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