Re: How to display file extension in django template ?

2014-02-07 Thread werefrog
Hello, In that case, I would use a filter that returnos.path.splitext(myfile.path)[1] (the result will be '.jpeg' with your example). Regards, Michel -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Translated URL's

2014-02-07 Thread werefrog
Hello, I don't know where you're trying the troublesome reverse but maybe the following can help. # myproject.urls from django.conf.urls import patterns, url from django.utils.translation import ugettext_lazy as _ from django.conf.urls.i18n import i18n_patterns from help.views import

Re: Django deployment - problems with static files

2014-02-07 Thread Schmitt, Christian
You need to change the permissions of the static files that the webserver user could access those. 2014-02-07 18:29 GMT+01:00 : > Hello, > > I am trying to deploy a new Django website where I am trying to point to > many css, js, image, pdf files, etc. Everything works

manage.py test doesn't respect DEBUG setting

2014-02-07 Thread Rosemary McCloskey
Hello, I am trying to run unit tests on my project, and the DEBUG setting is not being preserved during the tests. I'm using Django 1.6.1, with Python 2.7.3 on Ubuntu 12.04. My settings file looks like this: DEBUG = True ADMINS = ( ('Rosemary McCloskey', 'rmcclosk.m...@gmail.com')

Re: manage.py test doesn't respect DEBUG setting

2014-02-07 Thread Rosemary McCloskey
I'm sorry, please disregard this email. I found the answer in the documentation. On 14-02-07 10:36 AM, Rosemary McCloskey wrote: Hello, I am trying to run unit tests on my project, and the DEBUG setting is not being preserved during the tests. I'm using Django 1.6.1, with Python 2.7.3 on

Re: what are the files goes inside "contrib" folder?

2014-02-07 Thread Felipe Bessa Coelho
2014-02-07 Giri : > Can someone tell me what are the files goes inside "contrib" folder? > > If possible give me a webpage link that explains django's folder > structure.. > > I don't remember whether there is a overall description of the Django project structure, but

Django deployment - problems with static files

2014-02-07 Thread bhudspeth60
Hello, I am trying to deploy a new Django website where I am trying to point to many css, js, image, pdf files, etc. Everything works well in the development setup. Basically, I am using a mod-wsgi setup in Apache, and Django version 1.5 on Ubuntu linux 12.10. The application is served with

Using a paginator with two models in the same view

2014-02-07 Thread Some Developer
I have two models: Thread and EmailThread. As the names suggest the Thread model relates to threads created via the web interface and the EmailThread model relates to threads created via email. I want to display a list of all threads from both models on the same page and I want to paginate

Translated URL's

2014-02-07 Thread Felipe Mesquita de Oliveira
Hi all, I'm trying to work with translated URL's, but the behavior I'm getting is not the one I expected. Part of the code is below: from django.utils.translation import ugettext_lazy as _ urlpatterns += patterns('', url(_(r'^help/$'), HelpView.as_view(), name='HelpView'),

Re: ImportError: cannot import name execute_manager

2014-02-07 Thread Larry Martell
On Fri, Feb 7, 2014 at 10:53 AM, felix kimutai wrote: > I get the following error > > " Traceback (most recent call last): > File "manage.py", line 2, in > from django.core.management import execute_manager > ImportError: cannot import name execute_manager " > >

ImportError: cannot import name execute_manager

2014-02-07 Thread felix kimutai
I get the following error " Traceback (most recent call last): File "manage.py", line 2, in from django.core.management import execute_manager ImportError: cannot import name execute_manager " when I run this command : python manage.py runserver, what could be the problem. -- You

Re: How to display file extension in django template ?

2014-02-07 Thread Russell Keith-Magee
On Fri, Feb 7, 2014 at 3:25 PM, Ashish Tiwari wrote: > It's a simple question but i'm not able to find easily. > How can I display the file extension of uploaded file in template ? > > ex : uploaded-filename.jpeg > {{file.}} will display "jpeg" in template. > There

Re: sprint at europython 2014

2014-02-07 Thread Russell Keith-Magee
On Fri, Feb 7, 2014 at 6:02 PM, waverider wrote: > Wouldn't it be a good idea for some core dev(s) to be present at > EuroPython and organize a sprint? > Looks like sprints were formally announced last year: > https://ep2013.europython.eu/p3/sprints/ > I wasn't aware

Re: what are the files goes inside "contrib" folder?

2014-02-07 Thread James Turley
The short answer is: it depends what OS you're on, and where your Django package is installed. On Unix-like systems, it'll be somewhere like lib/python2.7/site-packages/django/contrib/ (substitute your python version, obviously). But what goes before 'lib' depends on where your Python libraries

what are the files goes inside "contrib" folder?

2014-02-07 Thread Giri
Can someone tell me what are the files goes inside "contrib" folder? If possible give me a webpage link that explains django's folder structure.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

How to display file extension in django template ?

2014-02-07 Thread Ashish Tiwari
It's a simple question but i'm not able to find easily. How can I display the file extension of uploaded file in template ? ex : uploaded-filename.jpeg {{file.}} will display "jpeg" in template. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: sprint at europython 2014

2014-02-07 Thread waverider
Wouldn't it be a good idea for some core dev(s) to be present at EuroPython and organize a sprint? Looks like sprints were formally announced last year: https://ep2013.europython.eu/p3/sprints/ vineri, 7 februarie 2014, 02:13:58 UTC+2, Russell Keith-Magee a scris: > > Hi, > > Django sprints