Newbie Question - How do I get my burger and fries from BK and not Mickey D's?

2007-06-22 Thread Wiley
I'm a true novice programmer, brand new to django, but lovin' it so far. I was wondering if there was any way to do something a little tricky via the Admin classes that could help me not write a custom view. Basically I'd love to do all my data entry from the Admin interface, but I need to filte

Re: Newbie Question - How do I get my burger and fries from BK and not Mickey D's?

2007-06-22 Thread Wiley
particular Restaurant somehow using the Admin class or other magic? Wiley On Jun 23, 1:13 am, "Dirk van Oosterbosch, IR labs" <[EMAIL PROTECTED]> wrote: > Hi Wiley, > > I would say your data model -as you describe it- makes more sense if > Dishes has a foreign key to R

Re: Newbie Question - How do I get my burger and fries from BK and not Mickey D's?

2007-06-28 Thread Wiley
I may not totally understand what you are suggesting here - I can use javascript to manipulate the data that's already on the page, but I want to filter the choices displayed to me using information that I have to get out of the database...will put js on that particular admin page do the trick? O

Newbie Question: site working in dev, not in production...probable issue with httpd.conf

2007-07-02 Thread Wiley
Here's the ultra-newbie question of the day. I have a lil' site running well under runserver, when I hook it up to apache2 and mod_python, something goes wrong. For the EXACT same python/django code, the admin site and all URLS come up fine in the built-in server. When I switch to the apache se

Re: Newbie Question: site working in dev, not in production...probable issue with httpd.conf

2007-07-02 Thread Wiley
That did the trick, thanks guys! Now I'm trying to figure out how to serve my static content (I think Vincent anticipated that this would be my next problem :) ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: Generic Relations + Admin Interface

2007-07-03 Thread Wiley
I posted about the exact same issue a couple days ago and someone suggested using the js attribute of the admin class. Unfortunately as a novice programmer this is going to take me a while to navigate so I've moved on to other areas of my application before I get down into it. I'm watching this

Painfully simple template problem

2007-08-14 Thread Wiley
Sorry for the newbie question here, I've searched the group and all the documentation I can find. I'm sure I'm missing something basic. Here's the principle that I don't understand behind the practical question I'm going to ask: When a view only renders a single template, how does django "know"

Re: Painfully simple template problem

2007-08-14 Thread Wiley
se_header.html would use the code from base.html, but > override the contents of block header. > > On 8/14/07, Wiley <[EMAIL PROTECTED]> wrote: > > > > > Sorry for the newbie question here, I've searched the group and all > > the documentation I can fin

unicode characters garbled on dumpdata / loaddata using postgres

2007-08-22 Thread Wiley
I was wondering if anyone else had trouble or a workaround for dumping and loading data with mixed character sets using a postgres backend. My data has quite a few Chinese characters, they run from my normal installation fine, but when i dump and reload the data, it's all corrupted. Any hints her

Re: unicode characters garbled on dumpdata / loaddata using postgres

2007-08-23 Thread Wiley
%} Frustratingly, it seems to read other parts of the Chinese database just fine...I'm not sure what's going wrong here? My database and application are both set to UTF8 On Aug 22, 7:56 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > Wiley wrote: > > I was wondering

Re: unicode characters garbled on dumpdata / loaddata using postgres

2007-08-23 Thread Wiley
and open source communities. In a situation where I believe I've found a bug, should I first post it here and confirm? Should I post it on the http://code.djangoproject.com trac page? Thanks for the help! On Aug 23, 3:49 pm, Wiley <[EMAIL PROTECTED]> wrote: > I started with the .96 versi

Re: Question about views.py

2008-01-10 Thread Wiley
Just off the top, it looks like the get_all_tags function could be re- written as a list comprehension. As for the more django oriented stuff, I'll leave that to the pros. On Jan 10, 7:12 am, "Matic Žgur" <[EMAIL PROTECTED]> wrote: > Hi everybody, > > being new in Django, I'd like to ask you for

apache2 + mod_python vhosts conflict

2007-10-16 Thread Wiley
Hi guys, noob question here about setting up apache to serve up 2 different domains, each with a distinct django project. When I run apache with only one of these hosts enabled, each works fine, its just when I run then both at the same time, if i go to mandarinland.com, it loads a css-free versio

Re: apache2 + mod_python vhosts conflict

2007-10-16 Thread Wiley
ginal post...am I missing something obvious? Wiley On Oct 17, 9:40 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 17-Oct-07, at 12:19 AM, Wiley wrote: > > > apache with only one of these hosts enabled, each works fine, its just > > when I run then both

Re: apache2 + mod_python vhosts conflict

2007-10-16 Thread Wiley
add a page to your Django application which dumps out what > is in os.environ for each site? That seems totally possible, I'll have to dig into the documentation to figure it out, I will post to the thread with the results. Thanks so much for your thorough and thoughtful reply! Wiley --~--

Re: apache2 + mod_python vhosts conflict

2007-10-16 Thread Wiley
Graham, You're right, removing the PythonPath line doesn't make any difference, but the two virtual hosts still have the same problem...so I guess the next thing that I will try is seeing if I can display the environment variables via template debugging as you suggest. Thanks aga

Re: apache2 + mod_python vhosts conflict

2007-10-20 Thread Wiley
everyone who posted ideas on this thread! On Oct 17, 6:27 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Oct 17, 5:38 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 17-Oct-07, at 7:31 AM, Wiley wrote: > > > > Kenneth and Bob, the PythonInt

Re: apache2 + mod_python vhosts conflict

2007-10-20 Thread Wiley
, Wiley <[EMAIL PROTECTED]> wrote: > Update on this issue, things seemed to work themselves out when I > commented out the python eggs line in each of the virtual hosts > settings and re-enabled the virtual hosts using the a2ensite in > apache... > > I hope that this might be a h

Re: apache2 + mod_python vhosts conflict

2007-10-20 Thread Wiley
Graham, I am not to my knowledge using mod_cache...I certainly never set it up, but as far as I can tell, the definitive factor was that single NameVirtualHost * line Please let me know if there's any further testing I can do to help you Wiley On Oct 20, 5:33 pm, Graham Dumpleton &l

Re: python mvc framework and java mvc framework

2007-10-22 Thread Wiley
One of those threads was mine and I just wanted to say that I'm now happily hosting three django projects using apache virutal hosts on the same server with no problems - my problem was only an apache configuration file issue having nothing to do with django. On Oct 20, 10:28 am, Kenneth Gonsalve

simple model with won't pass doctest that passes in a unicode string

2007-10-29 Thread Wiley
Hi all, I'm writing a doctest for a simple model and I can't get it to pass. The problem seems to be that no matter how I enter the data into the test db, whether as a Unicode string or a utf-8 bytestring, and no matter what I tell my test to expect as a return value, the expected value is alway

Re: Reverse Engineer + Database + Models

2007-10-29 Thread Wiley
Hi Arun, I'm new to django as well, but I believe this is quite possible, and is covered in the "Integrating with a legacy database" section of django's online documentation, located at: http://www.djangoproject.com/documentation/legacy_databases/ Best of luck with your pro

lookup spanning apps

2007-10-30 Thread Wiley
I've run into a problem with a lookup that follows a long long chain of foreign key relationships spanning two apps (two groups of database tables with different app label prefixes)... the error is: table name "a_long__list__of__relationships__that__eventually__gets__cut_off..." specified more th

Re: simple model with won't pass doctest that passes in a unicode string

2007-10-30 Thread Wiley
Malcom, Thanks _so_ much for this. I've learned a great deal from you both from your responses on this forum and by reading your blog. I will continue to work on this issue and post to the thread if I come up with anything of archival value. Wiley On Oct 31, 10:33 am, Malcolm Tredi