Re: Does Hostmonster support Django?

2007-11-11 Thread Mike Cantelon
> I personally use webfaction for public hosting, but its a major pain > > Just buy your own box ...or go the VPS route. Any hosting company offering Xen-based virtual servers (I used provps.com, who have been great) can give you the flexibility of your own server without the cost of a dedicated

Re: Admin Dies With White Screen

2007-11-11 Thread Mike Cantelon
Postscript: I managed to fix this, funnily enough, by upgrading the PHP on the same server to PHP 5. In the process of upgrading, MySQL also got upgraded to 5 and the MySQL-python RPM got upgraded as well. Mike > I'm trying to run the latest Subversion version of Django on Centos > 4.4 with

Re: Does Hostmonster support Django?

2007-11-11 Thread justquick
It is possible to install Django (of any version) onto a webserver if you own it and have shell access, like a dedicated server. Other webhosts have these features already installed and are "easily" configurable. The complete list is here:

Re: Feeds

2007-11-11 Thread justquick
Try giving your model a get_absolute_url(self) method which returns the absolute (http://...) url of the object for use in feed links. If that does not work, reply with the complete traceback (usually found by clicking 'Switch to copy-and-paste view' on a standard Django error report) Justin On

Re: media directory for testing

2007-11-11 Thread Amit Ramon
Another solution is to use environment variables for the settings that are different. You can then use the same settings file for all different environments. All you have to do is to read the environment variables in the settings file, something like: DATABASE_NAME =

Re: Django or Cheetah (why not both)?

2007-11-11 Thread justquick
Now the project is going under the name django_cheetahtemplates to avoid contrib namespace confusion. Regardless of name, having cheetah templates is very handy and increases the rendering times of your templates. We are working on transferring over all the power of the django tags/filters to

Re: Configuring a Django Project for Intranet Deployment

2007-11-11 Thread Martin J Hsu
> could change!)? However, at the same time I want to be able to run the > development environment at http://127.0.0.1/ and want any maintenance > overhead e.g. managing two sets of url.py files or changing any urls expanding on Stefan's solution: You probably want a separate settings.py or at

Re: Django or Cheetah (why not both)?

2007-11-11 Thread justquick
Thanks for the advise, we were a little up in the air about where to put this module. I proposed a middleware module to process the responses marked as cheetah templates with a provided context, but it seemed more suited to put it in the contrib section so you could process contexts/templates

Re: Django or Cheetah (why not both)?

2007-11-11 Thread James Bennett
On 11/11/07, justquick <[EMAIL PROTECTED]> wrote: >I have been working with another developer to create a contrib > addon for cheetah template processing. The new django.contrib.cheetah > is now in production and can render django contexts and templates into > responses faster than django's

Django or Cheetah (why not both)?

2007-11-11 Thread justquick
Hi all, I have been working with another developer to create a contrib addon for cheetah template processing. The new django.contrib.cheetah is now in production and can render django contexts and templates into responses faster than django's builtin template engine. I want to see if any of

Re: Catching Exceptions thrown in .save() / Best practice question

2007-11-11 Thread Malcolm Tredinnick
On Sun, 2007-11-11 at 20:44 -0800, marknca wrote: > According to a previous (http://groups.google.com/group/django-users/ > browse_thread/thread/64a9558d5c02e39/c0c28daed410898d?lnk=gst=catch > +save+exception#c0c28daed410898d) post it's bad practice to wrap a > model's .save() in a try/except.

Catching Exceptions thrown in .save() / Best practice question

2007-11-11 Thread marknca
According to a previous (http://groups.google.com/group/django-users/ browse_thread/thread/64a9558d5c02e39/c0c28daed410898d?lnk=gst=catch +save+exception#c0c28daed410898d) post it's bad practice to wrap a model's .save() in a try/except. Adrian suggests using manipulators instead. I'm writing a

Re: Does Hostmonster support Django?

2007-11-11 Thread James Bennett
On Nov 11, 2007 7:50 PM, Hannus <[EMAIL PROTECTED]> wrote: > I am going to buy the host services in host monster,does it support > Django? If not, plz advice me some other hosting companies. > Thank you very much You would need to ask them whether they support it; they're the ones who would

Feeds

2007-11-11 Thread Miguel Galves
Hi, i'm new to Django, and I'm warming up building a simple job board app. I'm trying to put a feed system to work using the middleware bundled with Django. - url.py: feeds = { 'ads': AdFeed, } urlpatterns = patterns('', (r'^admin/', include('django.contrib.admin.urls')), (r'^$',

Does Hostmonster support Django?

2007-11-11 Thread Hannus
Hi guys, I am going to buy the host services in host monster,does it support Django? If not, plz advice me some other hosting companies. Thank you very much Kind regards, Hannus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: admin-interface - 500 error - missing MEDIA_URL

2007-11-11 Thread Malcolm Tredinnick
On Sun, 2007-11-11 at 16:51 -0800, sime wrote: > Now I expect this again is going to be defended religiously; but the > fact that 500's don't run context processors, to me, serves as a nice > little reminder that {% media_url %} or similar needs to be a core > template tag. Where is the sense in

Re: admin-interface - 500 error - missing MEDIA_URL

2007-11-11 Thread sime
Now I expect this again is going to be defended religiously; but the fact that 500's don't run context processors, to me, serves as a nice little reminder that {% media_url %} or similar needs to be a core template tag. Where is the sense in bothering with a custom 500 if you can't conveniently

Re: Model Validation - Best practices

2007-11-11 Thread [EMAIL PROTECTED]
On Nov 11, 4:51 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2007-11-11 at 23:30 +, [EMAIL PROTECTED] wrote: > > > > At the moment this is work in progress. There is some development going > > > on to finish upmodel-awarevalidationand complete some earlier work > > >

Re: Model Validation - Best practices

2007-11-11 Thread Malcolm Tredinnick
On Sun, 2007-11-11 at 23:30 +, [EMAIL PROTECTED] wrote: > > > > > At the moment this is work in progress. There is some development going > > on to finish upmodel-awarevalidationand complete some earlier work > > onmodelvalidation. At that time, you'll be able to call > >

Re: Error in the http module in trunk

2007-11-11 Thread Malcolm Tredinnick
On Sun, 2007-11-11 at 20:28 +0100, Antoni Aloy wrote: > Hi! > > I have filed a ticket > http://code.djangoproject.com/ticket/5920#preview concerning an error > in the trunk version of Django. > > It get an function' object has no attribute 'status_code' error > message in some pages when I run

Re: include('myapp....') -> Modified settings

2007-11-11 Thread Malcolm Tredinnick
On Sun, 2007-11-11 at 20:22 +0100, [EMAIL PROTECTED] wrote: > Hi, > > the include method used in urls.py is very nice. Nevertheless I > miss something: It would be nice if you could use some settings, > which only get used, if the request follows this include. > > It would be good, if you

Re: Model Validation - Best practices

2007-11-11 Thread [EMAIL PROTECTED]
> > At the moment this is work in progress. There is some development going > on to finish upmodel-awarevalidationand complete some earlier work > onmodelvalidation. At that time, you'll be able to call > my_model.validate() and have things work similarly to how they do with > newforms. are

Re: The Django admin interface optimized for iPhone/iPod touch

2007-11-11 Thread Jannis Leidel
Hi again! This is only a short reminder that I just released django-mobileadmin 0.2, the Django admin interface optimized for iPhone/iPod touch and other MobileSafari based devices. http://code.google.com/p/django-mobileadmin/ It brings the following new features and bugfixes: * full

Commercial downloadable Django products

2007-11-11 Thread Hugh Bien
Hi all, Out of curiosity, has anyone made commercial Django products that are available for download/running on your own server? I was wondering what you used for source code protection or if you went the 'full source code available' route (like haveamint.com and warehouseapp.com ). Thanks! -

Re: Django deployment à lá Capistrano

2007-11-11 Thread Panos Laganakos
I've put up the script I use for deploying our apps, on our internal work server. It's pretty ugly, but It could be extended/improved *alot*. It doesn't check about anything _at all_, it just works or doesn't. :) http://code.google.com/p/djdeliver Anyone who feels like contributing, just let me

icon request

2007-11-11 Thread vivacarlie
I would like to use the icon (or possibly a modification) you use for the favicon on your site. I want to use it for a mac osx gui easy installer for django [http://code.google.com/p/idjango/] the dj looks better than the one we have. and i make it more mac like. I would just like your permission

Re: Strange problem with flup response code

2007-11-11 Thread Jarek Zgoda
OK, it turns out, this middleware was removed in Flup 1.0. Will try this one. On 9 Lis, 21:12, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > I'm using Django-0.96.1 deployed on apache/mod_fastcgi and sometimes I > see strange result of handling HTTP errors by flup 0.5. > I started investigating the

Error in the http module in trunk

2007-11-11 Thread Antoni Aloy
Hi! I have filed a ticket http://code.djangoproject.com/ticket/5920#preview concerning an error in the trunk version of Django. It get an function' object has no attribute 'status_code' error message in some pages when I run in the django trunk development server, but I don't get it in previous

include('myapp....') -> Modified settings

2007-11-11 Thread guettli . google
Hi, the include method used in urls.py is very nice. Nevertheless I miss something: It would be nice if you could use some settings, which only get used, if the request follows this include. It would be good, if you could activate some middleware and alter the TEMPLATE_DIR only, if the url

Re: __str__(self) for ManyToManyField

2007-11-11 Thread Xan
On Nov 11, 1:16 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-11-10 at 11:26 -0800, Xan wrote: > > > On Nov 10, 6:01 am, Malcolm Tredinnick <[EMAIL PROTECTED]> > > wrote: > > > On Fri, 2007-11-09 at 08:19 -0800, Xan wrote: > > > > > On Nov 9, 2:36 am, Malcolm Tredinnick

Re: django and s3

2007-11-11 Thread Adam Fast
The one thing I'd note is that EC2 is not the most price-effective solution if you're just getting into Django and wanting to play. It's a lot of resources and a fair price for those resources, but with a basic site it's absolute overkill. I would recommend Webfaction as a good starter plan. I

Re: newforms-admin fieldsets classes question

2007-11-11 Thread Karen Tracey
On 11/11/07, Matthias Urlichs <[EMAIL PROTECTED]> wrote: > > IMHo it makes sense to usee a tuple there. I'd go so far as to > recommend *not* to concatenate that (three lines down...); the > subsequent test in line 81 will cause false positives otherwise. ? I don't see how false positives will

Re: newforms-admin fieldsets classes question

2007-11-11 Thread Karen Tracey
On 11/11/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > > On 11/10/07, Karen Tracey <[EMAIL PROTECTED]> wrote: > > Was it intended to change the type of the 'classes' value in an Admin > field > > (now fieldset in newforms-admin) specification from string to tuple? > > > > Yes, it was

Re: django and s3

2007-11-11 Thread sebey
ok so I will have a look at EC2 thanks very much for that anything else I may encounter useing amazon elastic computing service On Nov 11, 1:01 am, "Adam Fast" <[EMAIL PROTECTED]> wrote: > Sebastian, > > S3 is simply a storage service. There is no way to run scripts (such as > django) against

Re: Configuring a Django Project for Intranet Deployment

2007-11-11 Thread Stefan Matthias Aust
On Nov 11, 2007 1:44 PM, RichardH <[EMAIL PROTECTED]> wrote: > From researching posts and blogs, I know this is a difficult issue but > was wondering whether anyone has come up with simple solutions? I had a similar problem. My solution was to setup a context processor which adds a "root"

Re: Not Required Field

2007-11-11 Thread James Bennett
On 11/11/07, Ronaldo Z. Afonso <[EMAIL PROTECTED]> wrote: > I'd like to know how I set a field of a Model to be not required when > someone is inserting data in the model using the admin interface? The documentation on creating models covers this:

Re: Configuring a Django Project for Intranet Deployment

2007-11-11 Thread Malcolm Tredinnick
On Sun, 2007-11-11 at 04:44 -0800, RichardH wrote: > The problem: How do you best configure a Django project so that it can > be deployed in a production Intranet environment where you don't "own" > the domain root url, i.e. the Django project appears at >

Not Required Field

2007-11-11 Thread Ronaldo Z. Afonso
Hi all, I'd like to know how I set a field of a Model to be not required when someone is inserting data in the model using the admin interface? Thanks. Ronaldo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: User Authentication and Models

2007-11-11 Thread Darryl Ross
Patrick Ohearn wrote: > I have tried adding the following lines to by models.py. > > author = models.ForeignKey(User) > author = models.ForeignKey(django.contrib.auth.models.User) > > Both to no avail, thank you for your help so far :) Perhaps a more complete example might help you:

Configuring a Django Project for Intranet Deployment

2007-11-11 Thread RichardH
The problem: How do you best configure a Django project so that it can be deployed in a production Intranet environment where you don't "own" the domain root url, i.e. the Django project appears at http://www.mydomain.com/some/url/path/to/django/project/name (and it could change!)? However, at

Re: Unsubscribing from this group... impossible?

2007-11-11 Thread Nils-Hero Lindemann
Hey Guys, i can't unsubscribe too. Nils --~--~-~--~~~---~--~~ 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, send

Can I customize RelatedManagers?

2007-11-11 Thread Stefan Matthias Aust
Hi, I wonder whether there's a way to achieve the following: Let's assume I've two models User and Fav with a 1-to-many relation. Favs have a rating. Now, I'm interested in a User's highest rated Fav. I could create a custom function or User instance method to call

Re: User Authentication and Models

2007-11-11 Thread Patrick Ohearn
On Sun, 2007-11-11 at 04:05 -0600, James Bennett wrote: > On Nov 11, 2007 3:57 AM, Patrick Ohearn <[EMAIL PROTECTED]> wrote: > > I have tried adding the following lines to by models.py. > > > > author = models.ForeignKey(User) > > author =

Re: User Authentication and Models

2007-11-11 Thread James Bennett
On Nov 11, 2007 3:57 AM, Patrick Ohearn <[EMAIL PROTECTED]> wrote: > I have tried adding the following lines to by models.py. > > author = models.ForeignKey(User) > author = models.ForeignKey(django.contrib.auth.models.User) > > Both to no avail, thank you for your help so far :) In

Re: User Authentication and Models

2007-11-11 Thread Malcolm Tredinnick
On Sun, 2007-11-11 at 19:57 +1000, Patrick Ohearn wrote: > On Sun, 2007-11-11 at 20:39 +1100, Malcolm Tredinnick wrote: > > > > On Sun, 2007-11-11 at 01:30 -0800, Patrick Ohearn wrote: > > > I am writing a simple blog application with Django 0.96. I intend to > > > use > > > the built in Admin

Re: User Authentication and Models

2007-11-11 Thread Patrick Ohearn
On Sun, 2007-11-11 at 20:39 +1100, Malcolm Tredinnick wrote: > > On Sun, 2007-11-11 at 01:30 -0800, Patrick Ohearn wrote: > > I am writing a simple blog application with Django 0.96. I intend to > > use > > the built in Admin page to manage my blog, so I wish to use Django's > > User

Re: User Authentication and Models

2007-11-11 Thread Malcolm Tredinnick
On Sun, 2007-11-11 at 01:30 -0800, Patrick Ohearn wrote: > I am writing a simple blog application with Django 0.96. I intend to > use > the built in Admin page to manage my blog, so I wish to use Django's > User Authentication system. In my Blog model I need to make a > relationship for my

App for rendering and far future caching of css and js files

2007-11-11 Thread Itai Tavor
Hi all, I made one of them apps, like the subject says... From the README (which is as well as I can explain it, if I could say it better I'd edit the README, right?): The app provides two main functions: 1. Render and serve css files based on django templates. To aid in generating

User Authentication and Models

2007-11-11 Thread Patrick Ohearn
I am writing a simple blog application with Django 0.96. I intend to use the built in Admin page to manage my blog, so I wish to use Django's User Authentication system. In my Blog model I need to make a relationship for my 'user' field to the auth_user table, but I can not find the model name to

Re: newforms-admin fieldsets classes question

2007-11-11 Thread Matthias Urlichs
IMHo it makes sense to usee a tuple there. I'd go so far as to recommend *not* to concatenate that (three lines down...); the subsequent test in line 81 will cause false positives otherwise. --~--~-~--~~~---~--~~ You received this message because you are