Re: TypeError: execute() takes at most 3 arguments (4 given)

2009-08-23 Thread Bryan
Daniel is right on. And for future reference, it says "3 arguments" which may seem misleading, but keep in mind that the cursor object itself is the first argument. On Aug 22, 4:14 pm, kevin wrote: > cursor.execute("SELECT a,b,c FROM Table_Name WHERE a = %s AND b = %s ", > [string1],[string2])

Custom User Model and the Django Admin Site

2009-08-28 Thread Bryan
Hi All, Just a quick query to see if anyone has any ideas on this one. I have a model in my application that inherits from the django User model. In the admin site, without any extra configuration (just using ModelAdmin), I get a standard edit form with the custom model's fields as well as the

Re: Custom User Model and the Django Admin Site

2009-08-29 Thread Bryan
le thought has been put into custom user models in regards to the admin site. Ideally all that I would have to do is inherit from UserAdmin and override the fieldsets, but maybe I'm asking too much. On Aug 28, 3:23 pm, Karen Tracey wrote: > On Fri, Aug 28, 2009 at 10:20 AM, Bryan wrote: &g

Re: is this a sane way to show total number of objects in pagination?

2009-09-25 Thread Bryan
I can't think of a reason, if nothing else its a matter or taste/ preference. He said "I would probably...", so he may have been implying that there was a technical reason but most likely he was just stating his preference. On Sep 25, 5:03 am, Chris Withers wrote: > Jani Tiainen wrote: > > Chri

Re: are django applications portable?

2009-09-26 Thread Bryan
It is definitely possible to "install" django-tagging on your project path if you really wanted to. I did this for a while and it worked just fine. You could export the latest version from source control or alternatively do the install and then move files from the python packages directory to yo

Django v1.2 TestCase doesn't seem to load fixtures except 'initial_data'

2010-05-26 Thread Bryan
I am using Django v1.2 The fixture I defined "forum_fixtures.json" don't seem to be loading when I run tests. from django.test.client import Client from django.test import TestCase from utils import * from forum.models import * from forum import auth from django.contrib.contenttypes.models import

Re: Django v1.2 TestCase doesn't seem to load fixtures except 'initial_data'

2010-05-27 Thread Bryan
] $ python manage.py test Creating test database 'default'... <> No fixtures found. I don't know why this is happening, but it is. :-( Bryan On May 27, 8:33 am, Karen Tracey wrote: > On Wed, May 26, 2010 at 4:28 PM, Bryan wrote: > > I am using Django v1.2 >

How can reverse('opensearch') work in the shell, but fail in a Test?

2010-08-13 Thread Bryan
I'm trying to install django-lean into my application. Open search is used in my app App. I can reverse('opensearch') in the Python shell. However, in the test, reverse('opensearch') * NoReverseMatch: Reverse for 'opensearch' with arguments '()' and keyword arguments In [47]: reverse('opense

URL template tags fail in Tests but work in Dev and Production ( Django 1.2.1 )

2010-08-17 Thread Bryan
I've been trying to add the django-lean app to my project. I have not been able to get the tests to pass. It took me a few days with a debugger to determine what the problem was. It seems that all the URL template tags fail in Test mode, but not in Production nor Developement. Failure happens is

Using all project URLs when using TestCase.urls?

2010-08-20 Thread Bryan
I've been trying to add the django-lean app to my project. I have not been able to get the tests to pass because of NoReverseMatch errors for named urls defined in other apps. It seems the issue is that the TestCase defines a value for urls: urls = 'django_lean.experiments.tests.urls' As b

augmenting admin delete

2007-07-03 Thread Bryan
Is there an easy way to augment deleting from the admin page. Specifically, I'm uploading an image and as part of saving the image model I make a thumbnail (which isn't part of the model). The admin delete will remove the uploaded image but not the thumbnail, so I'd like to basically say, whenever

Phoenix Users

2006-09-19 Thread Bryan
If you live in the Phoenix area and would be interested in attending a django users group, please respond to this thread: http://groups.google.com/group/refreshphoenix/browse_frm/thread/c04332f78a68ecef?hl=en Thanks, Bryan --~--~-~--~~~---~--~~ You received

is_approved patch for django.contrib.auth

2006-08-31 Thread Bryan
In the Django Developers group/mailing-list, I brought up an enhancement for adding the is_approved field to django's contrib.auth. This request was declined. It was suggested that I add this to the profile class instead. This doesn't make sense to me, because authentication should be independen

Re: Is Django the right tool?

2006-08-31 Thread Bryan
I use several web frameworks and will fairly say that Django is the best tool for this because of the python packages you will find to help you scrape the prices from those existing sites. Good luck, Bryan brad wrote: > Hello. I am wondering right now whether Django will help speed up

What is the simplest way to install MySQL-python on Lion 10.7 with Xcode 4.3?

2012-02-27 Thread Bryan
d to run the server, I got the following Traceback: Traceback (most recent call last): File "/Users/Bryan/work/osqa/forum_modules/mysqlfulltext/ __init__.py", line 8, in import MySQLdb File "build/bdist.macosx-10.7-intel/egg/MySQLdb/__init__.py", line 19, in File &q

How can Selenium see a record that I can't find from a debugger?

2012-06-26 Thread Bryan
I am creating Selenium tests for my App. I can create a new user, but I can't seem to figure out how to have it deleted from the database. After the tests run successfully the first time, subsequent tests fail because the username already exists. **Why am I not able to query the newly created r

Re: How can Selenium see a record that I can't find from a debugger?

2012-07-02 Thread Bryan
I'm still stuck regarding how to delete a user from the database directly. On Tuesday, June 26, 2012 9:59:09 AM UTC-4, Bryan wrote: > > I am creating Selenium tests for my App. > I can create a new user, but I can't seem to figure out how to have it > deleted from the d

Upgrade to Django-1.3 seeing AttributeError: 'NoneType' object has no attribute '_info'

2011-04-27 Thread Bryan
I just downloaded and installed Django 1.3, I can't seem to run the console or server with this error: AttributeError: 'NoneType' object has no attribute '_inf $ python manage.py shell Traceback (most recent call last): File "manage.py", line 13, in execute_manager(settings) File "/usr/

Re: Form with manytomany field

2011-05-03 Thread Bryan
"Maybe what I need is something like OneToMany relationship" You need a ManyToMany field: multiple people may have worked for the same company previously, correct? As for your original question, I would make a ModelForm for your Person model (or whatever it is) and another one for your Company mod

validate_unique not checking parents of parents' fields?

2011-04-02 Thread Bryan
As far as I can tell, if one has three models, GrandparentModel, ParentModel, and ChildModel, in which GrandparentModel defines a unique field unique_field, Childmodel.validate_unique() will not check the uniqueness of unique_field. The fields to check are determined by ChildModel._get_unique_chec

Re: validate_unique not checking parents of parents' fields?

2011-04-02 Thread Bryan
Ah perfect thanks! I looked to see if something had been submitted, but couldn't find it. On Apr 2, 3:26 pm, Karen Tracey wrote: > On Sat, Apr 2, 2011 at 4:37 PM, Bryan wrote: > > Is this a bug? > > Yes:http://code.djangoproject.com/ticket/15321 > > Karen > --ht

Re: Authentication system

2011-04-04 Thread Bryan
http://docs.djangoproject.com/en/1.3/topics/auth/#limiting-access-to-logged-in-users You can either put the @log_required decorator on each of the views you want protected, or you can do it the raw way (see link), which may offer more flexibility. On Apr 4, 5:22 am, GOUTAM KUMAR RANA wrote: > Ho

problem enabling the admin interface

2008-11-19 Thread Bryan Oakley
I inherited a django app and I'm trying to enable the admin interface without much luck. When I try to access the admin interface I see this at the end of the error log: OperationalError: no such table: django_session Sure enough, it's not in my (sqlite) database. If I create a new database fro

Re: problem enabling the admin interface

2008-11-19 Thread Bryan Oakley
ocs.djangoproject.com/en/dev/topics/http/sessions/#topics-htt... > > On 19 Nov 2008, at 19:42, Bryan Oakley wrote: > > > > > I inherited a django app and I'm trying to enable the admin interface > > without much luck. When I try to access the admin interface I see thi

Problems with creating formsets with Dynamic initial values

2009-06-26 Thread Bryan Wheelock
expected. I started with the examples here: http://www.pointy-stick.com/blog/2009/01/23/advanced-formset-usage-django/ but now I'm at a loss for how to resolve this. thanks for any help, Bryan Django 1.1 beta 1 # # models.py class Product(models.Model): # manufacturer = models.Fo

mod_python problem

2009-08-20 Thread Bryan Fordham
I'm sure this is something simple, but I'm a bit stumped. It's been a while since i've don't this, and obviously I'm missing something I have my django app installed on server. When I go to any URL that matches something in the urls.py file, I get a blank page. As in the server is returning a 200

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
It's at http://bfordham.org/ The project runs from the root. It was set that way on the development server, too, with no problem On Thu, Aug 20, 2009 at 11:11 AM, Mario wrote: > > Bryan, > > Can you post your project url? Also try changing from > to > > _Mario >

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
> The default template is not loading correctly. Check and verify your > settings.py and make sure it is pointing to the absolute path e.g., > TEMPLATE_DIRS ="/home/users/templates", It seems right >From settings.py: TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates"

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
> The default template is not loading correctly. Check and verify your > settings.py and make sure it is pointing to the absolute path e.g., > TEMPLATE_DIRS ="/home/users/templates", You're right. Changed the index view to just return an HttpResponse, skipping the template, and it worked. So, go

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
> > Don't forget the comma after the absolute path. For example, > > '/home/bfordham/websites/bfordham/trunk/bfordham/blog/templates', > < comma Tried that, no change. Changed the template path to an invalid path, same thing. Very weird -- Thanks --B --~--~-~--~~~--

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
Also tried switching to wsgi, just to see if it would make a difference. It didn't. I'm seriously stumped On Thu, Aug 20, 2009 at 3:56 PM, Bryan Fordham wrote: >> >> Don't forget the comma after the absolute path. For example, >> >> '/home/bf

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
> Is the page truly blank? Ie., have you gone 'View Source' in the > browser to see what is returned. Are you sure you haven't stuffed up > something in global HTML template whereby missing a closing '>' for > HTML. Yup, view source shows it's blank, as in nothing is in the source at all. > Sinc

conventions for adding pluggable apps to Django

2009-04-21 Thread Bryan Wheelock
several ways to do this; however, I guess I wanted to learn if there was a convention for adding pluggable apps. thanks, Bryan -- The best marketing related articles are at http://www.InstantDirectMarketing.com --~--~-~--~~~---~--~~ You received this message because

Help with Formset (I think it is formset I need)

2010-06-20 Thread Bryan A
Hello: I am trying to create a form with a check box list for Tags associated with an Appointment. Form: Please list tags for this Appoingmen _ Work _ School _ Other I need to design this so users can add additional ta

Extending UserManager and PAM-based authentication

2010-11-04 Thread Bryan Bishop
_user & friends actually create_user via PAM as well. My first guess is that I should be extending UserManager or User. How do I go about doing this? I would prefer to make modifications that stay in my webapp's directory, instead of editing the actual UserManager class. Any ideas? Thank you,

Sorting by a GenericRelation Causes Result Oddities

2010-02-08 Thread Bryan Veloso
filtering that I'm trying to do to it. Hopefully that makes some kind of sense. I don't know if there's a way around it, or if it's a bug that needs to be fixed. But any insight would be great. :) Cheers, Bryan -- You received this message because you are subscribed to the

QuerySet Question - Selecting a Single Field

2007-06-05 Thread Bryan Veloso
Alright, new problem for you guys. Here's an example model in an app called "scores", which contains all the scores for a particular player: # Baseball baseball= models.PositiveIntegerField('Baseball Skill Level', blank=True, null=True, maxlength=4) # Bowling bowling

Re: QuerySet Question - Selecting a Single Field

2007-06-05 Thread Bryan Veloso
> Score.objects.order_by('-baseball') > > will return all the objects in reverse order. Does this only grab the baseball scores? Or grabs all of them and THEN sorts them by score? (Just for future reference.) > However, it looks like your table is intended to be at least partially > sparse (i.e.

Re: QuerySet Question - Selecting a Single Field

2007-06-05 Thread Bryan Veloso
> This will grab _all_ score objects, and sort them by baseball score. > If there isn't a baseball score, then 'baseball' will have a value of > None, which is still a sortable value. Alright, so just to be safe, I really shouldn't be showing the values for all players, since that risks showing v

Uploading Image, Marking a Field as True

2007-06-06 Thread Bryan Veloso
Alright, example model: # Baseball baseball = models.PositiveIntegerField('Baseball Skill Level', blank=True, null=True, maxlength=4) baseball_approved = models.BooleanField('Approved', default=False) baseball_proof = models.ImageField('Proof', upload_to="/images/proof/ baseball", height_field='b

Re: Uploading Image, Marking a Field as True

2007-06-10 Thread Bryan Veloso
> I think you need to work on your workflow a little more. You will > definitely need to play with views; I'm not sure what you think > signals will acheive. > > You need to think in terms of "what HTML pages can I present to the > user, in what order; and what conditions must be met to move from

Re: Admin: Hiding fields from certain user groups

2007-06-15 Thread Bryan Chow
We have done this before by creating a second model with a different fields definition in the Admin class, and then assigning the model to the same database table by specifying db_table in the Meta class. This allowed us to specify separate access permissions on each model, even though both models

SelectDateWiget Problem

2007-06-18 Thread Bryan Veloso
birthday= forms.DateField(widget=SelectDateWidget(years=range(today.year, 1900,-1)), required=False) I have this in my forms.py, and it defaults to January 1, 2007. So, I set my birthday, save, come back and it's back to that default, so if I were to save the form without changing that va

Re: SelectDateWiget Problem

2007-06-18 Thread Bryan Veloso
Yep, the other fields are populated correctly. My Form: class ProfileForm(forms.Form): name= forms.CharField(required=False) avatar = forms.Field(widget=forms.FileInput, required=False) photo = forms.Field(widget=forms.FileInput, required=False) city

Re: SelectDateWiget Problem

2007-06-20 Thread Bryan Veloso
I was looking through the code today and saw this: http://code.djangoproject.com/browser/django/trunk/django/newforms/extras/widgets.py def value_from_datadict(self, data, name): y, m, d = data.get(self.year_field % name), data.get(self.month_field % name), data.get(self.day_field

Re: Development times

2007-06-20 Thread Bryan Veloso
I've only developed two sites, a blog and a dynamic scoreboard, having no prior python experience. The blog took about 4 weeks, with a lot of help, and it's still not done due to some limitations I've hit with the framework (or limitations in my own knowledge). The scoreboard I just finished an "

Hypothetical: Customizable Member Pages

2007-06-20 Thread Bryan Veloso
hat this can be done? Has anybody else attempted something like this yet? Thanks. :) ~ Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: Hypothetical: Customizable Member Pages

2007-06-20 Thread Bryan Veloso
> Not really sure if it's a good idea to > allow users to enter arbitrary HTML code. I mean, just look at what > happened to MySpace and Friendster :) It's better to just allow users > to select from a set of predesigned templates and then allow them to > customize the CSS stylesheets. Believe me

Ticket #3297 & Newforms Image Uploading

2007-06-21 Thread Bryan Veloso
taking the leap. Thanks! Bryan V. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group,

Re: Ticket #3297 & Newforms Image Uploading

2007-06-21 Thread Bryan Veloso
> You can always write the code to process File/Image fields in the view > or just extend your form to handle them properly. I have managed to do > so either by processing in the view or extending the form. As of now, > all processing of all forms occur in the view and validation for file > and im

Re: Ticket #3297 & Newforms Image Uploading

2007-06-22 Thread Bryan Veloso
> Can't paste the code from the actual app (am under NDA) but the logic > in saving the image from form data is here: > > http://dpaste.com/12731/ The only problem with this, and probably why I'm looking to use #3297 (which actually didn't work too well anyway), is because I have as many as 15 fi

Re: Ticket #3297 & Newforms Image Uploading

2007-06-23 Thread Bryan Veloso
> for n in range(0, MAX_NUM_UPLOADS): > img_manip = ImageAttachment.AddManipulator() > img_obj = img_manip.save() > uploaded = clean_data['img_fld%d' % n] > obj.save_image_file(uploaded['filename'], uploaded['content']) What library did you have to import to get ImageAttachment to

Re: Ticket #3297 & Newforms Image Uploading

2007-06-23 Thread Bryan Veloso
On Jun 23, 2:41 pm, Bryan Veloso <[EMAIL PROTECTED]> wrote: > > for n in range(0, MAX_NUM_UPLOADS): > > img_manip = ImageAttachment.AddManipulator() > > img_obj = img_manip.save() > > uploaded = clean_data['img_fld%d' % n] > > obj.

Re: looking for calender and a message board

2007-06-23 Thread Bryan Veloso
I just found this a few minutes ago: http://code.google.com/p/beastly/ On Jun 23, 9:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > If by message board you mean a forum, a la VBulletin and the like, > Zyons is the only Django one I know of:http://zyons.com/ > > As for calendar, I wasn't a

Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
del that gets copied as md5 or plain-text to my accounts table? Thanks in advance, please let me know if I have to explain things a bit more. :) Cheers, Bryan V. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
Alright, I did about 2 hours of searching today and I'm beginning to think that the above is an impossibility. Which probably means that I'm going to have to bypass Django authentication and make my own, but I don't even know where to start on that, so I'm at quite a loss. :/ --~--~-~--~

Re: Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
> The usual route I go with when trying to extend on the User model is > to create a new model and link it to the User model. For example: > > class UserExt(models.Model): > user = models.ForeignKey(User) > # ... other fields that you need here > > def __init__(self, user): > s

Re: Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
Alright. I tried looking in the actual source for any mention of password_md5... and it no longer exists. So I'm sure I just can't call the field. I'd have to recreate it or something correct? --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
> The original poster suggested adding a field called password_md5 to a > model that is an extension of User. It was never indicated that such a > field already existed. Ah, my bad. I misinterpreted. --~--~-~--~~~---~--~~ You received this message because you are

Random string template tag

2007-07-03 Thread Bryan Veloso
I don't know if this exists or not, but I'd like to insert a tag (much like cycle) that allows the random selection of a string. I'm trying to randomly assign a class to a to simulate "random image rotator" type functionality. Something like... Any ideas? --~--~-~--~~

Re: Random string template tag

2007-07-03 Thread Bryan Veloso
> One option is to use the 'random' filter; your context would need to > define the list of possible strings: > > Context({ >'classes': ['class1','class2','class3','class4'] > > }) > > but then your template could use: > > {{ classes|random }} Can you serve Context to the base template? I tho

Re: Random string template tag

2007-07-03 Thread Bryan Veloso
> If you want to hardcode the availability of the 'classes' variable in > every context (so you don't have to remember to define it every time), > you could write a context processor. See > django.core.context_processors for examples. That's probably what I'll need since it'll always have to be t

Cross Importing Model Problem

2007-07-04 Thread Bryan Veloso
I don't know if this is even possible, since I've had so many errors thrown at me, but I wanted to ask here so I can get a clear picture. I have 2 models for an MMORPG control panel I'm building. Each set of data is within it's own app with related models, etc. So here's my example. It's run off

Re: Cross Importing Model Problem

2007-07-05 Thread Bryan Veloso
Thanks for the help guys. Splitting the models up was mostly a cosmetic thing for the admin, but these problems quickly kicked me out of that state. Anyway, yes, the database design is really bad, mostly because that's not what the game developers are experts at unfortunately. --~--~-~--

Re: Cross Importing Model Problem

2007-07-05 Thread Bryan Veloso
Oh also, I thought OneToOneFields were discouraged in favor of ForeignKeys with unique=True as per http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Slug (w/o using SlugField) Problems

2007-07-06 Thread Bryan Veloso
know I'm messing something up, but it's either way too late for me to think straight, or I just have no idea what to fix. The thing that bothers me is that `name` isn't really a `slug_field` as it hasn't been slugified, and th

Re: Slug (w/o using SlugField) Problems

2007-07-06 Thread Bryan Veloso
> You might need to adopt a different approach to URL construction that is > reversible (writing your own version of slugify, possibly?). Thanks for the help Malcolm. Using Jeff Croft's "I'm not a programmer" excuse, would it be too much trouble to request a small example of a reversible slugify?

Re: Django hosting website

2008-03-24 Thread Bryan Veloso
>Lots more flexibility, but when things break its your fault. Well at least you're able to rebuild instead of begging customer service to do it for you. I'll definitely submit my +1 for Slicehost. -Bryan --~--~-~--~~~---~--~~ You received this messag

get_or_create and DoesNotExist

2008-03-31 Thread Bryan Veloso
houldn't it create it? I'm thinking that something is either preventing the instance from being created. The really odd thing is that it created one instance and then stopped, when I asked for it to import my photos from the last 7 days. All-in-all, I'm

Re: get_or_create and DoesNotExist

2008-03-31 Thread Bryan Veloso
Sure thing Bruno, Model: http://dpaste.com/hold/42454/ Flickr Importer: http://dpaste.com/hold/42455/ I think that's all that's involved. Cheers, Bryan On Mar 31, 1:22 pm, "Bruno Tikami" <[EMAIL PROTECTED]> wrote: > Hi Bryan, > > would you post your mod

Re: New Project : Django Sites Integration

2008-04-27 Thread Bryan Veloso
Hey Mike, I can add this to the Django Plugables directory if you'd like. Let me know. :) Cheers, Bryan On Apr 27, 10:36 am, Mike H <[EMAIL PROTECTED]> wrote: > Oh, and it automatically filters the model's querysets by the current   > site. Kinda important that it does

Dev Server - Being Denied Admin Media

2007-04-28 Thread Bryan Veloso
Permission denied: /usr/local/lib/python2.5/site-packages/django/ contrib/admin/media/ Getting this message when I'm trying to access the admin. It's odd, because I didn't do any changing of permissions. Any reason this would happen -other- than the obvious? --~--~-~--~~

Import Errors - Development vs. Production

2007-04-28 Thread Bryan Veloso
Problems are only getting weirder for me. So I'm using a few external applications, such as django-tagging and template_utils: Now, if I am viewing my production (mod_python) admin, I have to configure INSTALLED_APPS this way in order to be clear of ImportErrors: INSTALLED_APPS = ( 'tagging'

Re: Import Errors - Development vs. Production

2007-04-30 Thread Bryan Veloso
Thanks James, that helped a lot. I also ran into the --pythonpath toggle for manage.py which also did the job. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

"Complex" Views/Generic Views

2007-04-30 Thread Bryan Veloso
Just want to thank everybody for their help so far. :) The responses here are a lot faster than I had expected. Anyway, here's my next question. I have a blog, and I have 3 post types, regular posts (Entry), videocasts and tutorials. Now, I want to be able to have all of these grouped in chronolo

Re: "Complex" Views/Generic Views

2007-04-30 Thread Bryan Veloso
> What you *can* do, if you're willing to be a bit adventurous, is pull > out the content you want from the different models you want, and dump > the results into one big list (a list doesn't care what types of > objects it contains). Then you can take advantage of Python's > list-sorting faciliti

Re: "Complex" Views/Generic Views

2007-04-30 Thread Bryan Veloso
> In fact, that whole thread possibly has some relevance to your problem. > Note that the solution in the particular post I've highlighted works on > Python 2.3 and up, but if you are using 2.4 or later, Ned Batchelder's > post is of more than trivial relevance. So, (with my very limited python k

Feed Displaying Odd Dates

2007-05-05 Thread Bryan Veloso
= "Bryan Veloso" author_email = "xxx" title = "Avalonstar" link = "http://avalonstar.com"; description= "The latest from Avalonstar, the home of Bryan Veloso." def items(self): return Entry.

Re: Feed Displaying Odd Dates

2007-05-08 Thread Bryan Veloso
Thanks for the help Malcom, > The feed framework looks at the attribute called "pubdate" to determine > the publication date for items. Your attribute is called "pub_date", so > ti isn't being examined. Simplest solution here is to add a pubdate() > method or property to your model that returns t

Re: Feed Displaying Odd Dates

2007-05-10 Thread Bryan Veloso
> The secret is to look in the syndication documentation and search for > the word "pubdate". There, it talks about the item_pubdate() method that > can be used to generate the date for a single item. I tried that, it'd be... def item_pubdate(self) return Entry.pub_date But it'd give me err

Re: How well should I know Python before using Django?

2007-05-10 Thread Bryan Veloso
> To use Django, a developer should have an exceptionally strong > knowledge of the following area(s) of Python: __ > > dictionaries Amen. Those things still baffle me a bit. Other than that, I'd say #1. --~--~-~--~~~---~--~~ You received thi

Re: Feed Displaying Odd Dates

2007-05-13 Thread Bryan Veloso
That worked, -and- I learned something too! Thank you for the advice. :D Cheers, Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: MySQLdb Error

2007-05-15 Thread Bryan Veloso
It looks like you're using version 1.2.2. Try using 1.2.1_p2 and see if that works, I had a problem similiar to yours and downgrading to that version fixed my problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Case insensitive urls

2007-06-02 Thread Bryan Chow
mod_rewrite to map the "wrong case" URLs to the correct ones. For example, you could configure mod_rewrite to convert all URLs to lowercase. RewriteEngine on RewriteMap lowercase int:tolower RewriteRule ^/(.*)$ /${lowercase:$1} Hope this helps. Bryan On Jun 1, 6:35 pm, Ramashis

Re: a conflict between django and php4

2006-09-18 Thread Bryan Murdock
t; following error message: > > Mod_python error: "PythonHandler django.core.handlers.modpython" Are you having this problem? http://www.modpython.org/FAQ/faqw.py?req=show&file=faq02.013.htp Bryan --~--~-~--~~~---~--~~ You received this message because yo

Re: Can't get Apache + mod_python + sqlite3 to work

2006-10-28 Thread Bryan Murdock
One thing I noticed when I set up sqlite was that the apache user had to have full permissions on both the database file and the directory where the file was contained. I don't remember the exact errors I got back when I had that problem, but figured I'd throw out my experience. Bryan

admin returning 404 when user is clicked

2006-10-29 Thread Bryan Murdock
nd free comment. I didn't get those messages when I did the syncdb for flatpages with my development database. When I look at the auth_permission table I see all those permissions duplicated and some of them (these newly added ones) don't have any content_type_id. Bryan --~--~-~

Re: Debugging Django: print statements?

2007-01-22 Thread Bryan Murdock
tement. > > How do you debug your Django apps? I have used print statements with the built-in webserver. The output showed up in the terminal where I ran manage.py runserver. Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribe

can't edit magic removal wiki page

2006-05-27 Thread Bryan Murdock
er. That issue gave me a hard time when trying to update my blog to use the latest magic-removed django code, until I found this with google: http://www.mail-archive.com/django-users@googlegroups.com/msg07017.html Bryan --~--~-~--~~~---~--~~ You received this messa

Re: Wiki or Blogs done with django

2006-05-29 Thread Bryan Murdock
://step-inside.org/projects/stepinside/browser/trunk > > Though it is not ported to the latest version (post magic-removal) of Django. The code for the djangoproject.com blog is open source: http://code.djangoproject.com/browser/djangoproject.com Looks like it hasn't been porte

Re: Wiki or Blogs done with django

2006-05-31 Thread Bryan Murdock
On 5/30/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 5/29/06, Bryan Murdock <[EMAIL PROTECTED]> wrote: > > The code for the djangoproject.com blog is open source: > > > > http://code.djangoproject.com/browser/djangoproject.com > > > > L

Re: Good VPS and/or django hosting?

2006-06-03 Thread Bryan Murdock
leave the darkside :-) There seriously is a lot of good online help for Ubuntu. It's not as hard as you think. Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

freecomments not displaying after magic-removal

2006-06-03 Thread Bryan Murdock
is kind of thing even? What magic-removal code change did I miss? Thanks, Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users

Re: freecomments not displaying after magic-removal

2006-06-03 Thread Bryan Murdock
On 6/3/06, Bryan Murdock <[EMAIL PROTECTED]> wrote: > I have a little blog based closely on the djangoproject.com blog. I'm > updating it to magic-removal and everything seems to be going well, > except comments aren't displaying. No template errors or anything, > j

Re: freecomments not displaying after magic-removal

2006-06-03 Thread Bryan Murdock
uot;entries," not "entry." Looks like I need to clean that table up, becaues there is another row that has "entry" for the model. Hmm... Thanks for the tips. Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed

django_content_type

2006-06-04 Thread Bryan Murdock
. What is the right thing to do to migrate that table over? RemovingTheMagic doesn't come out and say it, but should I just change everything in the model column from singular to plural? Thanks, Bryan --~--~-~--~~~---~--~~ You received this message because yo

rss feeds from django handled differently by firefox

2006-06-12 Thread Bryan Murdock
refox does would make it very easy to verify that the feeds I'm creating look sane. Does anyone know how to fix this? Thanks, Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Re: rss feeds from django handled differently by firefox

2006-06-12 Thread Bryan Murdock
OK, it's the same with Internet Exploder. Here's two links to click on and see if it's the same for you: Displays nicely: http://www.blueskyonmars.com/?feed=rss&cat=19 Doesn't: http://www.djangoproject.com/rss/weblog/ Bryan On 6/12/06, Bryan Murdock <[EMAIL PROTE

Re: rss feeds from django handled differently by firefox

2006-06-13 Thread Bryan Murdock
or rss feeds (in other words, how do I find out what MIME type django is using for these)? In that case and from what you are saying, firefox is doing the correct thing in asking me where to save the file instead of just displaying it? Thanks, Bryan --~--~-~--~~~

Re: rss feeds from django handled differently by firefox

2006-06-13 Thread Bryan Murdock
On 6/13/06, Bryan Murdock <[EMAIL PROTECTED]> wrote: > On 6/13/06, James Bennett <[EMAIL PROTECTED]> wrote: > > > > On 6/12/06, Eugene Lazutkin <[EMAIL PROTECTED]> wrote: > > > I suspect the difference is > > > due to different MIME type of the

  1   2   3   >