Re: Error During Django Install on Mac

2007-10-23 Thread Ben van Staveren
No offense but uh, RTFM? (Protip: man sudo, man su) On 24/10/2007, at 1:45 PM, jnap wrote: > > anyone? > > On Oct 24, 2:36 am, jnap <[EMAIL PROTECTED]> wrote: >> sorry for another dumb question...but how do i do it as root? >> >> On Oct 24, 2:32 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:

Re: Error During Django Install on Mac

2007-10-23 Thread jnap
anyone? On Oct 24, 2:36 am, jnap <[EMAIL PROTECTED]> wrote: > sorry for another dumb question...but how do i do it as root? > > On Oct 24, 2:32 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 24-Oct-07, at 11:55 AM, jnap wrote: > > > > jnap:~ jnap$ ln -s /usr/local/lib/python2.3/site-pa

Re: Avoid Unhandled exception page from flup

2007-10-23 Thread Thomas Guettler
Am Dienstag, 23. Oktober 2007 11:24 schrieb Rafal bluszcz Zawadzki: > Hello. I am trying to avoid default (below attached) default Unhandled ex. > pagtes served by flup. There should not be unhandled exceptions in flup. If there is an unhandled exception in django, either the debug template or ha

Selecting one field

2007-10-23 Thread Rufman
hey if I use the Django db api it automatically does SELECT * FROM How can I select only one (or a certain number of fields) so that I can run a distinct query. i.e something like this in sql: SELECT field FROM table. Which would lead to the distinct query: SELECT DISTINCT field FROM table. i

Django rearranges query strings?

2007-10-23 Thread Dani
Hi, I'm a bit new to django, so I hope this isn't too stupid. Can anyone explain why when I'm accessing this address: http://localhost:8000/app?a=1&b=2&c=3 I'm getting a redirected to this address? http://localhost:8000/homeless/?a=1&c=3&b=2 This causes a problem, because I'm using a weird enco

Computer

2007-10-23 Thread Flowers
High Speed Internet Details.. http://www.freewebs.com/induster/ http://amigos.com/go/g904311-pmem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Error During Django Install on Mac

2007-10-23 Thread jnap
sorry for another dumb question...but how do i do it as root? On Oct 24, 2:32 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 24-Oct-07, at 11:55 AM, jnap wrote: > > > jnap:~ jnap$ ln -s /usr/local/lib/python2.3/site-packages/django_src/ > > django/bin/django-admin.py /usr/local/bin/django-

Getting image field in a template

2007-10-23 Thread Page
I'm new to Django and Python but trying to catch on. I have an image model for a portfolio page. I also have a model for the portfolio information for that page. After creating a template for the portfolio item detail page I can pull in of the fields by simply including a template tag like {{ obj

Re: Error During Django Install on Mac

2007-10-23 Thread Kenneth Gonsalves
On 24-Oct-07, at 11:55 AM, jnap wrote: > jnap:~ jnap$ ln -s /usr/local/lib/python2.3/site-packages/django_src/ > django/bin/django-admin.py /usr/local/bin/django-admin.py > ln: /usr/local/bin/django-admin.py: Permission denied you have to do it as root -- regards kg http://lawgon.livejournal

Re: Error During Django Install on Mac

2007-10-23 Thread jnap
Here is my current bash_profile in case you need it: # Setting PATH for MacPython 2.5 # The orginal version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:$ {PATH}" export PATH=$PATH:/usr/local/bin On Oct 24, 2:25 am, jnap <[EMAIL PROTECTED

Error During Django Install on Mac

2007-10-23 Thread jnap
I am new at this so I apologize if this is a stupid question... Why do I keep getting a permission denied error when I run the following: jnap:~ jnap$ ln -s /usr/local/lib/python2.3/site-packages/django_src/ django/bin/django-admin.py /usr/local/bin/django-admin.py ln: /usr/local/bin/django-admi

Error During Django Intall on Mac

2007-10-23 Thread jnap
I am new at this so I apologize if this is a stupid question... Why do I keep getting a permission denied error when I run the following: jnap:/usr jnap$ ln -s /usr/local/lib/python2.3/site-packages/ django_src/django/bin/django-admin.py /usr/local/bin/django-admin.py ln: /usr/local/bin/django-a

Re: Model Validation - Best practices

2007-10-23 Thread Malcolm Tredinnick
On Wed, 2007-10-24 at 04:40 +, Camo wrote: > Hi Guys, > > I just been working my way through Django, top framework by the way. > > Anyways I just wondering if any one can shed some light model > validation, > > It seems the only validations are either through the newforms or > simple valida

Re: Model Validation - Best practices

2007-10-23 Thread Kenneth Gonsalves
On 24-Oct-07, at 10:10 AM, Camo wrote: > So I was just wondering how people go about validating models. overide the save() method and add your own business rules in the model -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~--

Model Validation - Best practices

2007-10-23 Thread Camo
Hi Guys, I just been working my way through Django, top framework by the way. Anyways I just wondering if any one can shed some light model validation, It seems the only validations are either through the newforms or simple validation through the fields. But there doesn't seem to be any bussin

Re: AP-style state names

2007-10-23 Thread [EMAIL PROTECTED]
On Oct 23, 9:11 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-10-23 at 17:43 -0700, [EMAIL PROTECTED] wrote: > > I just know this has got to be lurking around in Django somewhere... > > If I use USStateField, is there a filter or other method to output the > > state name in As

Re: AP-style state names

2007-10-23 Thread Malcolm Tredinnick
On Tue, 2007-10-23 at 17:43 -0700, [EMAIL PROTECTED] wrote: > I just know this has got to be lurking around in Django somewhere... > If I use USStateField, is there a filter or other method to output the > state name in Associated Press style? I know there's AP filters for > times and numbers, but

Re: AP-style state names

2007-10-23 Thread James Bennett
On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I just know this has got to be lurking around in Django somewhere... > If I use USStateField, is there a filter or other method to output the > state name in Associated Press style? I know there's AP filters for > times and numbers, but c

AP-style state names

2007-10-23 Thread [EMAIL PROTECTED]
I just know this has got to be lurking around in Django somewhere... If I use USStateField, is there a filter or other method to output the state name in Associated Press style? I know there's AP filters for times and numbers, but can't find anything for states. and looking around in localflavor I

Re: How to select all the values from my Field attribute 'choices?

2007-10-23 Thread Karen Tracey
On 10/23/07, Greg <[EMAIL PROTECTED]> wrote: [snip] > class Collection(models.Model): > > THE_MATERIAL = ( > ('1', 'Paper'),('2', 'Plastic'),('3', 'Other'), > ) > > material = models.CharField(max_length=50, choices=THE_MATERIAL) > > /// > > However, now I want

Re: Scaling the server

2007-10-23 Thread Graham Dumpleton
On Oct 24, 5:13 am, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote: > Hi guys, > > A few weeks ago I had problems with my dedicated server, it was > stucking twice or more times a week. After some digging, I solve the > problem updating the mysqldb lib version. The server goes ok almost > all the

How to select all the values from my Field attribute 'choices?

2007-10-23 Thread Greg
Hello, When I first developed my application I created a table that stored all the different types of materials class Material(models.Model): material = models.CharField(maxlength=100) To get all the materials in the table all I needed to do was query the table. Recently, I've been going th

Re: Django writing self-generated files to disk

2007-10-23 Thread rsc
Thanks for taking the time to answer this, much appreciated. On Oct 22, 6:26 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Oct 23, 6:27 am, Scott SA <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I have a django instance running under mod-python/apache and am having > > trouble with a user th

Scaling the server

2007-10-23 Thread Michel Thadeu Sabchuk
Hi guys, A few weeks ago I had problems with my dedicated server, it was stucking twice or more times a week. After some digging, I solve the problem updating the mysqldb lib version. The server goes ok almost all the time, but I still have server stuck when I had too much hits. My server had 1.

Re: Error message when viewing admin? (ViewDoesNotExist at /admin/)

2007-10-23 Thread DJango Fett
The same thing happens to me. I was going through the Tutorial to make the Poll application. The admin url was working fine. When I added in the patterns for the poll app, I get the same error you did. If I comment out the admin line, the poll lines work fine. If I comment out the poll lines,

Re: Need help selecting a Django hosting provider

2007-10-23 Thread Yishai
We are very happy with webfaction (http://www.webfaction.com). Setting up a django instance, database, etc. is a breeze. It also seems that it would be pretty easy to scale with them (though we have not tried this yet), at least up to medium+ traffic levels. On Oct 18, 12:09 am, Greg <[EMAIL P

Re: which Django version to use for live site to be released in end of february 2008

2007-10-23 Thread Jeremy Dunck
We're running on r6023 OK. It was a quiet point on trunk after Unicode landed and the related bugfixes were done. If I were picking now, I'd find a rev closer to current trunk. But I'm pretty knowledgeable about Django and don't mind managing my own rev and applying important bugfixes when nee

Re: which Django version to use for live site to be released in end of february 2008

2007-10-23 Thread ydjango
Not for the February/March 08 release, but yes, I will need it by the last quarter of 2008. Ashish On Oct 23, 8:18 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 10/23/07, ydjango <[EMAIL PROTECTED]> wrote: > > > > > I am working on product which will be released end of february. I am > > pla

Earn $$ with WidgetBucks! and yuwie

2007-10-23 Thread http://r.yuwie.com/chiangmai
Earn $$ with WidgetBucks! and yuwie Earn $$ with WidgetBucks! http://www.widgetbucks.com/home.page?referrer=3761001 or read more http://r.yuwie.com/chiangmai and http://yuwie.blogth.com/ As this particular method of advertising has proven to be a great way of generating revenue I thought I'd g

Re: which Django version to use for live site to be released in end of february 2008

2007-10-23 Thread Jeremy Dunck
On 10/23/07, ydjango <[EMAIL PROTECTED]> wrote: > > I am working on product which will be released end of february. I am > planning to use Django for building the site. I am new to Django > > Which version should I use - SVN or 0.96? > > If I use 0.96, I am worried migration to 1.0 will be very pa

which Django version to use for live site to be released in end of february 2008

2007-10-23 Thread ydjango
I am working on product which will be released end of february. I am planning to use Django for building the site. I am new to Django Which version should I use - SVN or 0.96? If I use 0.96, I am worried migration to 1.0 will be very painful and time consuming. If I use SVN version , I am not su

Re: Does anyone know where I can find cache tag library?

2007-10-23 Thread Jeremy Dunck
On 10/23/07, Karen Tracey <[EMAIL PROTECTED]> wrote: > If you're referring to template fragment caching, it's been in trunk since > rev. 6580 (just a couple of days). Doc is here: > > http://www.djangoproject.com/documentation/cache/#template-fragment-caching > > Does your checkout not have django

Re: newforms: required field mark

2007-10-23 Thread panta
I've done something similar for auto-generated forms (form_for_model() and form_for_instance()), by derivating a class from BaseForm and providing my own _html_output() method, which emits the label with different attributes depending on its "requiredness" (using the 'attrs' parameter to BoundFiel

Re: Does anyone know where I can find cache tag library?

2007-10-23 Thread Karen Tracey
If you're referring to template fragment caching, it's been in trunk since rev. 6580 (just a couple of days). Doc is here: http://www.djangoproject.com/documentation/cache/#template-fragment-caching Does your checkout not have django/templatetags/cache.py? It's certainly in svn: http://code.dja

Re: Does anyone know where I can find cache tag library?

2007-10-23 Thread Jeremy Dunck
On 10/22/07, Nicholas Ding <[EMAIL PROTECTED]> wrote: > Hi, guys: > I've checked out the code from svn, and wanna use cache in the template, but > cache tag library has gone... > Does anyone know where is the tag library? http://www.djangosnippets.org/snippets/223/ --~--~-~--~~---

Re: Djangonauts in Amsterdam, Prague, or Krakow?

2007-10-23 Thread Rafal bluszcz Zawadzki
On Friday 19 October 2007 19:10:28 Brian Luft wrote: > My wife and I are travelling through Eastern Europe for the next 2 > months. (we're starting in Amsterdam though). > > I'd love to meet up with any Djangonauts for a little chat. I like > beer, wine, Django, and open source software if anyone

Re: unable to display images

2007-10-23 Thread Rafal bluszcz Zawadzki
On Tuesday 23 October 2007 04:55:26 Anurag wrote: > Sorry for this repeat post - but i am getting quite desperate and be > very thankful for some help... > > I am unable to display images directly through Apache - with the > following configuration.Can someone please help. Much thanks! What is t

Re: Authenticating static content when not using mod_python

2007-10-23 Thread AndyB
(my reply via email doesn't appear to have made it to the list - sorry if the first paragraph is a repeat for anyone) Thanks Chris, I didn't know about this and it would be the ideal solution if I could get Dreamhost to install mod_xsendfile! Still hopefully this will be useful for someone out th

Re: can contrib.sites.models (Site) belong to an application model?

2007-10-23 Thread Tim Perrett
For sure, ive been playing with it and have seen that I can have one- to-many (Site has-many Partners) and ManyToMany, but I was looking to have it so that one partner has many sites? Is the ManyToMany the only way to do this? As in terms of a DB schema, its not a many to many relationship. Ideal

Re: can contrib.sites.models (Site) belong to an application model?

2007-10-23 Thread Russell Keith-Magee
On 10/23/07, Tim Perrett <[EMAIL PROTECTED]> wrote: > > I have a model called Partner which i would like to have-many Sites, > is this possible? Or is this too ingrained in the django code itself? Sure - Site is just a model in the contrib 'sites' application, so you can import and reference the

Re: GET parameter in a template

2007-10-23 Thread Rufman
> > The attribute on request is called GET (all upper-case). Django's > templating language is case-sensitive. thanks!! that was the problem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: GET parameter in a template

2007-10-23 Thread Malcolm Tredinnick
On Tue, 2007-10-23 at 08:57 +, Rufman wrote: > hey > > I render my template by passing a RequestContext object. This way i > can access the user info ({{ user.username }}). I tried displaying the > GET parameter like this: {{ get. }} and > {{ request.get. }}. Either way i don't get any > outp

Avoid Unhandled exception page from flup

2007-10-23 Thread Rafal bluszcz Zawadzki
Hello. I am trying to avoid default (below attached) default Unhandled ex. pagtes served by flup. Is there any easy way to override it / serve own page instead one of this: def error(self, req):$ """$ Called by Request if an exception occurs within the handler. May and$

Some more interesting Powerpoint Shows

2007-10-23 Thread Ankur Kothari
How to make yourself happy How to make things better How to make them stay

GET parameter in a template

2007-10-23 Thread Rufman
hey I render my template by passing a RequestContext object. This way i can access the user info ({{ user.username }}). I tried displaying the GET parameter like this: {{ get. }} and {{ request.get. }}. Either way i don't get any output. Is there even a way to display the get parameter without ex