Re: UnicodeEncodeError

2010-09-30 Thread Karen Tracey
On Wed, Sep 29, 2010 at 5:32 PM, werefr0g wrote: > Sorry, sorry I proposed Jean to send me the actual file to check its > encoding. I asked for his OS too in order to see what editor are available > and how it allows to "transcode" the text. > Not the contents of the

Re: template syntax errors in production admin site (version problem?)

2010-09-30 Thread Karen Tracey
On Thu, Sep 30, 2010 at 12:39 PM, bobbymanuel wrote: > PROBLEM SOLVED: upgrade to Python 2.7 on server resolved issue. > Apparrently Django 1.2.3 is not fully compatible with Python 2.5 > I suspect it is your application code, not Django 1.2.3, that is not compatible

QuerySet values + annotate + order_by

2010-09-30 Thread ScottF
The background here is that I am trying to modify django-voting to sort the objects by score, but this is a general question. The following code works minus the order_by statement on the end: queryset = self.filter( object_id__in = object_ids,

Re: UnicodeEncodeError

2010-09-30 Thread werefr0g
Sorry, sorry I proposed Jean to send me the actual file to check its encoding. I asked for his OS too in order to see what editor are available and how it allows to "transcode" the text. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Full Text Search

2010-09-30 Thread Steve Holden
On 9/30/2010 8:26 PM, Nick Arnett wrote: > Brain is mush, though. Obviously, otherwise you'd have left it in the hope that someone else would reply with an answer before you recovered consciousness. Great heavens, this community is *so* anxious to help. Kudos for trying with a frazzled brain!

Re: Possible backwards incompatibility introduced by change 12950 (in upgrade from 1.1.1 to 1.1.2)

2010-09-30 Thread Russell Keith-Magee
On Thu, Sep 30, 2010 at 8:01 PM, Jyrki Pulliainen wrote: > Hi! > > We encountered a possible backwards incompatibility with change 12950 > [1]. This was noticed when upgrading from 1.1.1 to 1.1.2. > > If I understand correctly the change 12950 removes squelching of >

Re: Full Text Search

2010-09-30 Thread Nick Arnett
On Thu, Sep 30, 2010 at 8:34 AM, Alessandro Ronchi < alessandro.ron...@soasi.com> wrote: > Is there any way to make a FULL TEXT search not in BOOLEAN MODE? > I've found only > http://docs.djangoproject.com/en/1.1/ref/models/querysets/#search > > It says it uses BOOLEAN MODE as a default, but

URL's and Multi Dimensional Filtering/Searching

2010-09-30 Thread Brendon Costa
Hi all, I have a table with a list of data that I would like present to a user and allow them to drill down into the data, but there are multiple dimensions they may want to drill down into and I am not sure the best way to do this with DJango URLs. To give a bit of an example of what I am

Re: Can you make a subclass of a model just to alter behavior?

2010-09-30 Thread Russell Keith-Magee
On Fri, Oct 1, 2010 at 2:57 AM, orokusaki wrote: > I'm looking to do the opposite of what Django's proxy model does. I > want to subclass Model, add some extra methods to it, add behavior to > save(), set a default manager that adds some my-application-specific >

Re: Tabular output

2010-09-30 Thread Martin Tiršel
Yes, I know, but what I doesn't know, is how to create these cells when the for loop ends. {% for image in gallery.image_set.all %} {% if forloop.counter0|divisibleby:gallery_cols %} {% endif %} {% endfor %}

Key based session expiration

2010-09-30 Thread Thomas Gautier
Hi there! I want my registered users to authenticate again to access some parts of my website but without setting the whole session expiration on browser close (which is done by setting set_expiry(0) if I got it correctly). Let's say that the section I want to secure again is

what describes an url?

2010-09-30 Thread SlafS
Hi there! I have a question about the urls. What set of attributes of RegexURLPattern makes a "primary key" of all the url patterns among applications in a Django project? (notice the "" signs) what i mean is: what is the minimal set of attributes of RegexURLPattern that is sufficient to

Re: Separating application media from project media

2010-09-30 Thread Carles Barrobés
If the ideal solution for you is different sites, one authentication, I found a reference in... http://stackoverflow.com/questions/556907/how-to-get-distinct-django-apps-on-same-subdomain-to-share-session-cookie ...pointing to a "django-cas" application that is meant for that purpose (Single

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Miguel Araujo
Thanks, I already got that :) I misunderstood the license, regards Miguel Araujo 2010/9/30 Steve Holden > On 9/30/2010 1:55 PM, Miguel Araujo wrote: > > Hi Michael, > > > > I have been looking at your project, django.extauth and I have to say I > > really like its

Re: Can you make a subclass of a model just to alter behavior?

2010-09-30 Thread Shawn Milochik
> > Hmm.. I can't think of any caveats off the top of my head. Did you try that? > The only thing that smells a little like trouble to me is setting a > default manager. If you create a custom manager, then add it to each model as "objects," then it'll be the default (and only) manager and any

Re: Change auth User display name in admin interface

2010-09-30 Thread Daniel Roseman
On Sep 30, 6:34 pm, Nathan wrote: > I'm using the django User authentication. > > I have a model that has a ManyToManyField which allows you to select > several users to associate with that model. In the django admin site, > it's set to use the filter_horizontal option.

Re: Can you make a subclass of a model just to alter behavior?

2010-09-30 Thread Gonzalo Delgado
El 30/09/10 15:57, orokusaki escribió: > I'm looking to do the opposite of what Django's proxy model does. I > want to subclass Model, add some extra methods to it, add behavior to > save(), set a default manager that adds some my-application-specific > methods, and then subclass that to create

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Steve Holden
On 9/30/2010 1:55 PM, Miguel Araujo wrote: > Hi Michael, > > I have been looking at your project, django.extauth and I have to say I > really like its architecture and permission handling. I have to say that > my rule system is kind of the same thing of your role system, except > mine is less

Can you make a subclass of a model just to alter behavior?

2010-09-30 Thread orokusaki
I'm looking to do the opposite of what Django's proxy model does. I want to subclass Model, add some extra methods to it, add behavior to save(), set a default manager that adds some my-application-specific methods, and then subclass that to create most of the models in my application. Is this

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Miguel Araujo
Sorry, I misunderstood it. Then everything looks great 2010/9/30 mhall119 > The license is a 3-clause BSD style license, it's compatible with > Django's license as far as I know. > > On Sep 30, 1:55 pm, Miguel Araujo wrote: > > Hi Michael, > > > > I

Re: Need opinion for an object permission rule backend

2010-09-30 Thread mhall119
The license is a 3-clause BSD style license, it's compatible with Django's license as far as I know. On Sep 30, 1:55 pm, Miguel Araujo wrote: > Hi Michael, > > I have been looking at your project, django.extauth and I have to say I > really like its architecture and

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Miguel Araujo
Hi Michael, I have been looking at your project, django.extauth and I have to say I really like its architecture and permission handling. I have to say that my rule system is kind of the same thing of your role system, except mine is less flexible. I'm going to look a little bit the code, install

Change auth User display name in admin interface

2010-09-30 Thread Nathan
I'm using the django User authentication. I have a model that has a ManyToManyField which allows you to select several users to associate with that model. In the django admin site, it's set to use the filter_horizontal option. When adding a new instance of the model through the admin interface,

Unable to login to admin site in localhost

2010-09-30 Thread mamcx
As reported on :http://stackoverflow.com/questions/3817808/unable-to- login-to-admin-site-in-localhost I can't login to the admin site on localhost. I try with firefox, IE. I try using the 127.0.0.1:8000 address. Also, I set the SESSION_COOKIE_DOMAIN to localhost, localhost:8000 I change the

Re: Directing User to specific page after login

2010-09-30 Thread Huy Ton That
I was going to mention passing a next variable, but Jurgen responded with a cleaner global solution (: Learn something new every day. On Thu, Sep 30, 2010 at 11:59 AM, octopusgrabbus wrote: > I am looking for either programming samples or specific documentation >

PgWest Talk descriptions are up

2010-09-30 Thread Joshua D. Drake
Hello, The talk descriptions for PostgreSQL Conference West 2010 are up, including a healthy dose of Django content. https://www.postgresqlconference.org/2010/west/talks JD -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579 Consulting,

contrib-admin in a multiuser environment is a bit scary

2010-09-30 Thread AndyB
I've been having bad dreams about the ways in which contrib-admin can eat your data when you have more than one administrator. As a worst-case scenario imagine a model with some list_editable fields: Admin1 has the changelist open for a considerable length of time Admin2 makes a load of changes

Re: Directing User to specific page after login

2010-09-30 Thread Jurgen Blignaut
I am assuming that you already have an URL in mind that you want to redirect to after login. To automatically go to that URL, simply put this setting in your "settings.py" file: LOGIN_REDIRECT_URL = '/the_url_you_want/to_redirect_to/' Upon login, the member will automagically end up at that URL.

Re: UnicodeEncodeError

2010-09-30 Thread jean polo
ok, thanks to everybody for the help but unfortunately nothing works for my issue. (except Karen one that solves it on one of my local machines but not the other which has the same linux system... weird..). I guess I'll ask my client to rename their files without any special char not the best

Re: Upload above apache web root?

2010-09-30 Thread Federico Capoano
I wanted to write this post anyway, gives a quick solution to upload files above the public directory and serve the files with django- filetransfers. Hopefully it will be easier to find from search engines. http://nemesisdesign.net/blog/coding/django-private-file-upload-and-serving/ On Sep

Re: template syntax errors in production admin site (version problem?)

2010-09-30 Thread bobbymanuel
PROBLEM SOLVED: upgrade to Python 2.7 on server resolved issue. Apparrently Django 1.2.3 is not fully compatible with Python 2.5 On Sep 30, 11:28 am, bobbymanuel wrote: > interesting idea - but unfortunately, not it. > > i actually made a copy of admin.contrib.templates

Re: Why Django Admin Won't Display full graphics

2010-09-30 Thread Alec Shaner
Also, if you're using mod_wsgi (recommended over mod_python), see this: http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango On Thu, Sep 30, 2010 at 12:12 PM, Addy Yeow wrote: > runserver takes care of thing like this for you but you need to handle > it properly in

Re: Why Django Admin Won't Display full graphics

2010-09-30 Thread Addy Yeow
runserver takes care of thing like this for you but you need to handle it properly in Apache. See http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#serving-the-admin-files On Fri, Oct 1, 2010 at 12:03 AM, octopusgrabbus wrote: > > When I run Django

Why Django Admin Won't Display full graphics

2010-09-30 Thread octopusgrabbus
When I run Django admin with runserver running, I get nice graphics. I don't when I run Django admin from apache. I can log into my django application from apache, but do not get the graphics. I'm looking for examples or documentation on how to fix this. Thanks. cmn -- You received this message

Directing User to specific page after login

2010-09-30 Thread octopusgrabbus
I am looking for either programming samples or specific documentation that show how a user is redirected to a page specific to that user, after login. Given I am just starting out with Django, if this is really advanced, then I'll settle for getting people logged in and give them the same page.

Re: url not going to view

2010-09-30 Thread Bradley Hintze
OH, they're regular expressions, right? Ok, I need to try to understand RE but they still escape any meaning for me somehow. On Thu, Sep 30, 2010 at 11:33 AM, Carlton Gibson wrote: > Django: The Definitive Guide gives a good tutorial/refresher too: > >

Full Text Search

2010-09-30 Thread Alessandro Ronchi
Is there any way to make a FULL TEXT search not in BOOLEAN MODE? I've found only http://docs.djangoproject.com/en/1.1/ref/models/querysets/#search It says it uses BOOLEAN MODE as a default, but doesn't tell how to avoid default... -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi

Re: url not going to view

2010-09-30 Thread Carlton Gibson
Django: The Definitive Guide gives a good tutorial/refresher too: http://djangobook.com/en/2.0/chapter03/ On 30 Sep 2010, at 16:25, Steve Holden wrote: > Just as "^" means "start of string" so "$" mean "end of string", so "^$" > means a string where the end is next to the beginning. > > You

Re: DjangoCon 2011

2010-09-30 Thread Steve Holden
On 9/30/2010 10:36 AM, sserrano wrote: >> I live in Argentina, If I wanted to go to the DjangoCon in >> Portland, it would require a Bus to Buenos Aires, then take an >> international flight to a US mayor city and then another to reach >> Portland, overall I would be travelling more nearly an

Re: template syntax errors in production admin site (version problem?)

2010-09-30 Thread bobbymanuel
interesting idea - but unfortunately, not it. i actually made a copy of admin.contrib.templates and fixed the syntax that its complaining about, and it starts working. it doesn't like the following syntax : {% url name1 as name2 %} - found in 6 places in admin.contrib.templates it also doesn't

Re: url not going to view

2010-09-30 Thread Steve Holden
Just as "^" means "start of string" so "$" mean "end of string", so "^$" means a string where the end is next to the beginning. You can read the Python documentation for the "re"module for more insight into all this. regards Steve On 9/30/2010 11:20 AM, Bradley Hintze wrote: > LOL, let me

Re: url not going to view

2010-09-30 Thread Bradley Hintze
LOL, let me rephrase. What is the significance of the '$' (or what does it mean) in the URLs as pointed out in previous messages? On Thu, Sep 30, 2010 at 11:15 AM, Carlton Gibson wrote: > Its the plural of $. > > On 30 Sep 2010, at 16:02, Bradley Hintze wrote: > >> Why

Re: Calling method of a proxy-model in a template

2010-09-30 Thread Daniel Roseman
On Sep 30, 3:31 pm, mettwoch wrote: > Hi, > > Let's say that I have a proxy model of the User model that adds some > methods. What would be an elegant way to access these methods from > within a template in the same easy way I access the User attributes > through {{

Re: url not going to view

2010-09-30 Thread Carlton Gibson
Its the plural of $. On 30 Sep 2010, at 16:02, Bradley Hintze wrote: > Why $s, if you don't mind me asking? > > On Thu, Sep 30, 2010 at 10:55 AM, Carlton Gibson > wrote: >> >> On 30 Sep 2010, at 15:42, Bradley Hintze wrote: >> >>> urlpatterns = patterns('', >>>

Re: url not going to view

2010-09-30 Thread Bradley Hintze
Why $s, if you don't mind me asking? On Thu, Sep 30, 2010 at 10:55 AM, Carlton Gibson wrote: > > On 30 Sep 2010, at 15:42, Bradley Hintze wrote: > >> urlpatterns = patterns('', >>    (r'^', home_view), >>    (r'^here/', here), >>    # Example: >> ) > > your first

Re: template syntax errors in production admin site (version problem?)

2010-09-30 Thread Steve Holden
On 9/30/2010 9:50 AM, bobbymanuel wrote: > Hi all - i've got a mysterious problem with my admin templates and I > think its a version problem but can't figure it out. > > The contrib.admin templates seem to be throwing some very crazy > TemplateSyntaxError(s) in many of the admin templates when i

Re: Need opinion for an object permission rule backend

2010-09-30 Thread mhall119
I've recently open-sourced some code that I developed for my work projects that may do at least part of what you need: http://bitbucket.org/mhall119/django-extauth/wiki/Home The basic idea is that you define a "role" that is a relationship between a user and an instance of a given Model. With

Re: url not going to view

2010-09-30 Thread Carlton Gibson
On 30 Sep 2010, at 15:42, Bradley Hintze wrote: > urlpatterns = patterns('', >(r'^', home_view), >(r'^here/', here), ># Example: > ) your first pattern matches all URLs which have a beginning, which is all URLs. You need to add the $s at the end: urlpatterns = patterns('',

url not going to view

2010-09-30 Thread Bradley Hintze
Hi, I have made a successful Django app in the past. and decided to start a new one. Except I'm running into a problem. I started a new project to isolate the problem but still am having a problem. Here it is: I have a link to a different page from 'home' called 'here'. When I click the link I

Re: DjangoCon 2011

2010-09-30 Thread sserrano
I live in Argentina, If I wanted to go to the DjangoCon in Portland, it would require a Bus to Buenos Aires, then take an international flight to a US mayor city and then another to reach Portland, overall I would be travelling more nearly an entire day to reach the conference. New York, San

Calling method of a proxy-model in a template

2010-09-30 Thread mettwoch
Hi, Let's say that I have a proxy model of the User model that adds some methods. What would be an elegant way to access these methods from within a template in the same easy way I access the User attributes through {{ request.session.user.some_attribute }}. Kindly Yours Marc -- You received

template syntax errors in production admin site (version problem?)

2010-09-30 Thread bobbymanuel
Hi all - i've got a mysterious problem with my admin templates and I think its a version problem but can't figure it out. The contrib.admin templates seem to be throwing some very crazy TemplateSyntaxError(s) in many of the admin templates when i moved my app to my production environment. I'm

Re: Help Reading data from an uploaded CSV

2010-09-30 Thread Tom Evans
You have code like this try: except: pass around the pertinent block. Perhaps not suppressing errors might indicate where your code is failing. Cheers Tom On Thu, Sep 30, 2010 at 3:09 PM, Chris McComas wrote: > I have this code: > >

Help Reading data from an uploaded CSV

2010-09-30 Thread Chris McComas
I have this code: http://dpaste.com/250981/ The file is uploading properly, but it is not creating any entries in my Pharmcas table, it's worked before, last spring when we used it last, but right now it's not working? It uploads and saves the file as it should, but then doesn't do any of the

Re: Possible backwards incompatibility introduced by change 12950 (in upgrade from 1.1.1 to 1.1.2)

2010-09-30 Thread Jyrki Pulliainen
On Sep 30, 3:38 pm, Karen Tracey wrote: > On Thu, Sep 30, 2010 at 8:01 AM, Jyrki Pulliainen wrote: > > We encountered a possible backwards incompatibility with change 12950 > > [1]. This was noticed when upgrading from 1.1.1 to 1.1.2. > > > If I understand

Need opinion for an object permission rule backend

2010-09-30 Thread Miguel Araujo
Hi everyone, I have been recently thinking about an object permission system. After reviewing Florian Apolloner (apollo13) patch for ticket #11010 and reading his article at Django Advent. I though about

Re: Tabular output

2010-09-30 Thread aid
On Sep 30, 2:14 pm, Martin Tiršel wrote: > Sorry, my bad, I thought that it has to be completed, so it is ok. Problem   > would be only if I wanted to make cell borderds, around the empty cells   > too. For the cells you don't have an object to insert; try inserting ''

Re: Tabular output

2010-09-30 Thread Martin Tiršel
Sorry, my bad, I thought that it has to be completed, so it is ok. Problem would be only if I wanted to make cell borderds, around the empty cells too. Thanks, Martin On Thu, 30 Sep 2010 14:53:11 +0200, Carlton Gibson wrote: I think it's not a problem. I

Re: TemplateSyntaxError at /accounts/register/ Invalid filter: 'apnumber'

2010-09-30 Thread prakashadm
Hello i have removed from {% load humanize %} from my mail activation code.. then it's given me below error Thanks Prakash On Sep 30, 5:56 pm, Daniel Roseman wrote: > On Sep 30, 1:14 pm, prakashadm wrote: > > > Hello friends, > > > I have getting

Re: TemplateSyntaxError at /accounts/register/ Invalid filter: 'apnumber'

2010-09-30 Thread Daniel Roseman
On Sep 30, 1:14 pm, prakashadm wrote: > Hello friends, > > I have getting below error > > TemplateSyntaxError at /accounts/register/ > > Invalid filter: 'apnumber' > > i am working on simple user registration of page.any budy have idea > abt it? > >

Re: Tabular output

2010-09-30 Thread Carlton Gibson
I think it's not a problem. I just ran this via the (HTML5) validator and it didn't complain: cell1 cell2 cell1 Regards, Carlton On 30 Sep 2010, at 13:49, Martin Tiršel wrote: > Thanks, this looks better,

Re: Tabular output

2010-09-30 Thread Martin Tiršel
Thanks, this looks better, but one more thing - If I have for example 3 columns and 13 images, I end with: what is not a correct table. I need to insert two more TDs or one with colspan. Is there a solution for this? Martin On Thu, 30 Sep 2010 14:31:48 +0200, Xavier Ordoquy

Re: Django app that uploads media files and servers them through a view?

2010-09-30 Thread Thomas Weholt
On Thu, Sep 30, 2010 at 1:52 PM, Xavier Ordoquy wrote: > Hi, > > Although I haven't done it, the following link may give you a good overview > of how to do it: > http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/ > > Regards, > Xavier. > > Le 30 sept. 2010 à

TemplateSyntaxError at /accounts/register/ Invalid filter: 'apnumber'

2010-09-30 Thread prakashadm
Hello friends, I have getting below error TemplateSyntaxError at /accounts/register/ Invalid filter: 'apnumber' i am working on simple user registration of page.any budy have idea abt it? http://www.stonemind.net/blog/2007/04/13/django-registration-for-newbies/ thanks Prakash -- You

Re: Possible backwards incompatibility introduced by change 12950 (in upgrade from 1.1.1 to 1.1.2)

2010-09-30 Thread Karen Tracey
On Thu, Sep 30, 2010 at 8:01 AM, Jyrki Pulliainen wrote: > We encountered a possible backwards incompatibility with change 12950 > [1]. This was noticed when upgrading from 1.1.1 to 1.1.2. > > If I understand correctly the change 12950 removes squelching of > ImportErrors from

Re: Tabular output

2010-09-30 Thread Xavier Ordoquy
Hi, Could you elaborate on your issue ? If you have hard time positionning you can loop on you list items and use loop.counter or loop.counter0 and use the divisibleby tag to display line start and end Regards, Xavier. Le 30 sept. 2010 à 14:15, Martin Tiršel a écrit : > Hello, > > I have a

Re: UnicodeEncodeError

2010-09-30 Thread Karen Tracey
On Wed, Sep 29, 2010 at 12:59 PM, jean polo wrote: > Hi. > I get an 'UnicodeEncodeError' if I upload a file (ImageField) with non- > ascii chars in my application (django-1.2.1). > > I added: > > export LANG='en_US.UTF-8' > export LC_ALL='en_US.UTF-8' > > in my

Tabular output

2010-09-30 Thread Martin Tiršel
Hello, I have a list of images from database I need to print in a table and this seems to be more difficult as I expected. Is there an easy way how to print results into table? Number of collumns depends on a constant in settings. Thanks, Martin -- You received this message because you

Re: ANN: PyMySQL 0.3

2010-09-30 Thread Andy
Great! Thank you very much. On Sep 29, 6:56 pm, Bo Shi wrote: > The following patch to your application's manage.py will allow you to > use pymysql without patching Django. > >  #!/usr/bin/env python > +try: > +    import pymysql > +    pymysql.install_as_MySQLdb() > +except

Possible backwards incompatibility introduced by change 12950 (in upgrade from 1.1.1 to 1.1.2)

2010-09-30 Thread Jyrki Pulliainen
Hi! We encountered a possible backwards incompatibility with change 12950 [1]. This was noticed when upgrading from 1.1.1 to 1.1.2. If I understand correctly the change 12950 removes squelching of ImportErrors from AppCache. AppCache in turn provides reverse- relations for app introspection, for

Re: Django app that uploads media files and servers them through a view?

2010-09-30 Thread Xavier Ordoquy
Hi, Although I haven't done it, the following link may give you a good overview of how to do it: http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/ Regards, Xavier. Le 30 sept. 2010 à 13:34, Thomas Weholt a écrit : > On Thu, Sep 30, 2010 at 1:20 PM, Stodge

Re: Django app that uploads media files and servers them through a view?

2010-09-30 Thread Jirka Vejrazka
>> Is anyone aware of a Django app that lets you upload media files (not >> necessarily in the admin site) but serves them through a view instead >> of as static files via the web server? I need to control access to the >> media using permissions. Thanks > > Serving media using views are very

Re: Separating application media from project media

2010-09-30 Thread Benedict Verheyen
On 29/09/2010 18:55, Carles Barrobés wrote: > At some point I also thought this was a good idea. This way I can > reuse the app and all its visual stuff as well. > > But the problem is that for most cases you will want your templates > and media to be consistent with a site's design and look This

Re: Separating application media from project media

2010-09-30 Thread Benedict Verheyen
On 29/09/2010 13:58, Benedict Verheyen wrote: > On 29/09/2010 13:13, David De La Harpe Golden wrote: >> On 29/09/10 09:34, Benedict Verheyen wrote: >> >>> In my template i add this: >>> >> href="{{MEDIA_URL_CALLTRACKING}}/style/login.css" /> >>> >> >> (I'd favour prefix rather than suffix if

Re: Django app that uploads media files and servers them through a view?

2010-09-30 Thread Thomas Weholt
On Thu, Sep 30, 2010 at 1:20 PM, Stodge wrote: > Is anyone aware of a Django app that lets you upload media files (not > necessarily in the admin site) but serves them through a view instead > of as static files via the web server? I need to control access to the > media using

Re: iPhone posting FILEs = "Invalid content length"

2010-09-30 Thread Carlton Gibson
On 30 Sep 2010, at 11:55, Danny Bos wrote: > Basically I've got an iPhone app sending a POST to a django app, it > contains one FILE. > Every now and then (very sporadically, about 1 in 5) one fails and I > get the below message. > Exception Value: > Invalid content length: 0 > Any ideas? This

Django app that uploads media files and servers them through a view?

2010-09-30 Thread Stodge
Is anyone aware of a Django app that lets you upload media files (not necessarily in the admin site) but serves them through a view instead of as static files via the web server? I need to control access to the media using permissions. Thanks -- You received this message because you are

iPhone posting FILEs = "Invalid content length"

2010-09-30 Thread Danny Bos
Hey there, I've got a new error I'm totally stumped on. All searches are saying it's a "http vs https" or similar. I'd be keen to hear your thoughts. Basically I've got an iPhone app sending a POST to a django app, it contains one FILE. Every now and then (very sporadically, about 1 in 5) one

Re: Upload above apache web root?

2010-09-30 Thread Xavier Ordoquy
Hi, To me, it looks like the documentation already gave the answer. Regards, Xavier. Le 30 sept. 2010 à 10:37, Federico Capoano a écrit : > PS: i'll post a solution so other noobs like me will see how to do > that.. > > > On 30 Set, 10:35, Federico Capoano wrote:

Re: Upload above apache web root?

2010-09-30 Thread Federico Capoano
PS: i'll post a solution so other noobs like me will see how to do that.. On 30 Set, 10:35, Federico Capoano wrote: > Yes you're right, I'm trying it out. I'll post a solution when I'm > done. > > On 30 Set, 10:10, Xavier Ordoquy wrote: > > > > >

Re: Upload above apache web root?

2010-09-30 Thread Federico Capoano
Yes you're right, I'm trying it out. I'll post a solution when I'm done. On 30 Set, 10:10, Xavier Ordoquy wrote: > Well, the documentation already tells you about > it:http://docs.djangoproject.com/en/1.2/topics/files/#the-built-in-files... > > Le 30 sept. 2010 à 09:49,

Re: Upload above apache web root?

2010-09-30 Thread Xavier Ordoquy
Well, the documentation already tells you about it: http://docs.djangoproject.com/en/1.2/topics/files/#the-built-in-filesystem-storage-class Le 30 sept. 2010 à 09:49, Federico Capoano a écrit : > Is this not possible? I wonder why Django force to upload files only > in a certain directory and

Re: Upload above apache web root?

2010-09-30 Thread blaamann
On Sep 30, 9:49 am, Federico Capoano wrote: > Is this not possible? I wonder why Django force to upload files only > in a certain directory and doesn't allow more flexibility. > > On 29 Set, 19:46, Federico Capoano wrote: > > > Hi everyone, > >

Re: Upload above apache web root?

2010-09-30 Thread Federico Capoano
Is this not possible? I wonder why Django force to upload files only in a certain directory and doesn't allow more flexibility. On 29 Set, 19:46, Federico Capoano wrote: > Hi everyone, > > is it possible to write a custom model filefield that upload files > somewhere