MEDIA on remote server only accessible over FTP and HTTP

2009-08-24 Thread TheMaTrIx
Hi all, One of my clients has asked me to implement a Django site where they host the application side on their own Internet connection (low latency 2Mbit fibre pipe) while hosting the static content on their ISP's provided web space. Which is high speed (I tested it as likely having multiple 100

Django Sites -> Users

2009-06-19 Thread TheMaTrIx
I don't find the functionality in the admin interface, so I'm guessing its not implemented in the trunk. I thought that maybe it would be a handy thing to extend the sites framework into the users and groups framework. For my firm, we have several branches which run mostly the same website (all

Re: ANN: Making some changes to djangoproject.com

2007-09-14 Thread TheMaTrIx
Rewrote Django in PHP. Rewrote Django in ASP. Rewrote Django in Java. Dropped Django development and defected to Ruby on Rails. Rewrote Django to be the root of all online evil (but then again, doing any of the above would qualify it for this by default :p) If your server move messages have anyth

Re: ATTN: (NOT) Moving djangoproject.com to a new server!

2007-09-14 Thread TheMaTrIx
Hrm, I ran Django on configs from old to bleeding edge python, mod_python and apache and haven't had a problem with the auth layer (aka apache 2.2, python 2.5.1, latest mod_python etc) What trouble is it giving you? On Sep 14, 8:32 am, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > Hi all -- >

Re:

2007-09-14 Thread TheMaTrIx
I wish google would finaly start enabling their Gmail spam filters on these frigin boards. Spam is getting rediculous. On Sep 14, 11:38 am, "Useful Database" <[EMAIL PROTECTED]> wrote: > Hello friends and group members, > > I recently happened to see the below information ... just thought that it

ImageField paths

2007-09-02 Thread TheMaTrIx
When I use the following: image = models.ImageField(upload_to='img/news/', blank=True, null=True, verbose_name=_('Image 1')) the image in uploaded will be put in /MEDIA_ROOT/img/news right? Now, If I want to make every image uploaded go into its own subfolder thats related to the record I'm refe

What could cause settings.py invoked context processor to fail in 1 specific app?

2007-09-01 Thread TheMaTrIx
I've been busy implementing myghtyboard into a site today and ran into a bit of trouble. In all other apps for this site {{ MEDIA_URL }} gets recognized and parsed correctly, but in myghtyboard it simply parses blanks where the media_url should go. This causing that my css and images aren't load

Re: Django suddenly loses DJANGO_SETTINGS_MODULE running locally

2007-08-28 Thread TheMaTrIx
This is why, eventhough its noted in the docs as optional, I add the pythonpath to my site in the apache vhosts file by default. Adding the path globally isn't really a good thing to do but adding it whenever your webserver starts the site its needed for, even if its already defined somewhere else

Re: modpython and python2.5

2007-08-28 Thread TheMaTrIx
mod_python needs to be compiled against the python version your using. On windows mod_python even trows errors in the logfile (although it still functions) when you use the mod_python for python 2.5, while your using python 2.5.1. On Aug 28, 1:48 pm, Leandro Zanuz <[EMAIL PROTECTED]> wrote: > Y

DEBUG = False yet debug shows.

2007-08-22 Thread TheMaTrIx
Am I loosing my marbles or is this normal, that if your logged into the admin with your super account, debug gets enabled automaticly for you? Any idea why django is showing a mix of my 404's, 500's and django's debug 404's and 500's in this scenario? Not just all custom errors or all django erro

Re: Database cached?

2007-08-17 Thread TheMaTrIx
How long is the cache lifetime? On Aug 17, 5:41 pm, Doug B <[EMAIL PROTECTED]> wrote: > The caching is intentional, and designed to save you expensive > database queries. You can reset the cache in the shell by doing > something like this: > > qs=ModelName.objects.all() > # do stuff with your qu

Re: 404 Page not found handling

2007-08-15 Thread TheMaTrIx
Hi, > > > On Wed, Aug 15, 2007 at 08:04:20PM -0700, TheMaTrIx wrote: > > > Is it, in your opinions, "nice", "appropriate" and "correct", in other > > > words, ethical, for an internet site to setup 404 pages so that when > > > for i

404 Page not found handling

2007-08-15 Thread TheMaTrIx
We're having a bit of a discussion here about an idea I came up with. The Django site we're developing is the first friendly URL site we're building (with php we never bothered, mostly because we mainly do intranet sites and SEF urls havent ever been a requirement and in PHP with mod rewrite, SEF

Re: Weird problem with memcached enabled

2007-08-15 Thread TheMaTrIx
this together "time.time() + > cache_timeout" because on is float and the other is a string, so I > suspect that you somewhere have specified *cache_timeout* as a string > in quotes instead of just a number (without quotes). Either in the > settings.py or in manually in one of th

Weird problem with memcached enabled

2007-08-14 Thread TheMaTrIx
Firefox = All pages OK Internet Explorer = http://www.domain.com gives HTTP500 error with info: [error] PythonHandler django.core.handlers.modpython: Traceback (most recent call last): [error] PythonHandler django.core.handlers.modpython: File "/usr/lib/ python2.4/site-packages/mod_python/apac

DjangoSnippets.org is down

2007-08-14 Thread TheMaTrIx
Seems DjangoSnippets is down. Yesterday it took 10 minutes to load a page and now its simply erroring out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: cmemcached etc

2007-08-13 Thread TheMaTrIx
ormation on the tutorial and the info about how to install these modules. On Aug 14, 1:28 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 8/13/07, TheMaTrIx <[EMAIL PROTECTED]> wrote: > > > Neither of these apps has any kind of information on their sites or

Re: Debugging production site.

2007-08-13 Thread TheMaTrIx
Any idea why ADMINS would fail to send out the debug or 404 PNF mails while your apps are sending email perfectly with the settings you put in your settings.py for SMTP auth? On Aug 14, 12:03 am, Matt McClanahan <[EMAIL PROTECTED]> wrote: > On Aug 13, 2:11 pm, Merric Mercer <[EMAIL PROTECTED]> wr

cmemcached etc

2007-08-13 Thread TheMaTrIx
Ok, I've used memcached for quite some time with PHP sites and that was rather easy. Now I see you can use it with Django, but to get memcached support you need to either install cmemcached or python-memcached. Neither of these apps has any kind of information on their sites or in the archives o

Re: Django database API - What is it good for?

2007-08-13 Thread TheMaTrIx
Also, if I'm not mistaken, when you use the database api, the input validation steps are taken care of by the framework, you don't just tell in the models what format fields should be in the database, but at the same time are telling the framework what input it should accept for that field. If a f

Re: application/xhtml+xml MIME won't take

2007-08-13 Thread TheMaTrIx
ds. I've always done this with php in the past and I'll do the same in the future with Django. On Aug 13, 7:09 pm, "John Lenton" <[EMAIL PROTECTED]> wrote: > On 8/13/07, TheMaTrIx <[EMAIL PROTECTED]> wrote: > > > > > I'm developing a site th

Re: application/xhtml+xml MIME won't take

2007-08-13 Thread TheMaTrIx
Found it DEFAULT_CONTENT_TYPE = 'application/xhtml+xml' To override the global default. On Aug 13, 5:33 pm, TheMaTrIx <[EMAIL PROTECTED]> wrote: > I'm developing a site that needs to be xhtml 1.1, my page validates > just fine except that the server keeps spitting it

application/xhtml+xml MIME won't take

2007-08-13 Thread TheMaTrIx
I'm developing a site that needs to be xhtml 1.1, my page validates just fine except that the server keeps spitting it out as text/html instead of application/xhtml+xml. How the heck do I make django set application/xhtml+xml for the pages it serves? I tried changing the text/html entry in my mi

Re: django built-in web server

2007-08-10 Thread TheMaTrIx
You could use something like XAMPP if your really unconfortable setting up apache and mysql by hand. Xampp's base install gives you apache and mysql preconfigured and there is a python addon thats also preconfigured. And if you can install and develop python/django apps, don't be to afraid of in

Page generation times

2007-08-07 Thread TheMaTrIx
In PHP its handy and easy to setup a function to use during development where you can see page generation times, your linux load averages, a count for database calls in a page and compare between how much time spent between generating the PHP output and waiting for the database. Is there somethin

Re: Admin shows "BlaBla object" for every item in lists instead of the actual names of the objects.

2007-08-05 Thread TheMaTrIx
movie came out have gotten rather tiresome over the years. :p On Aug 5, 11:53 pm, "Kai Kuehne" <[EMAIL PROTECTED]> wrote: > Hi Neo, > > On 8/5/07, TheMaTrIx <[EMAIL PROTECTED]> wrote: > > > > > > > I have many tables with universal data I u

Admin shows "BlaBla object" for every item in lists instead of the actual names of the objects.

2007-08-05 Thread TheMaTrIx
I have many tables with universal data I use across projects, alot of them are tables with 1 column. One example of this is a table named "Continents" with the names of all continents and subcontinents including the less known ones (like the Kerguelen continent) When I setup the admin to display