Re: Django URLs with/without proxy server

2013-03-03 Thread Barun Saha
Bill, The URLs in the file for app1 do not have such prefix. Following are two lines from project/app1/urls.py -- other URLs have similar structure, including that for app2. urlpatterns = patterns('project.app1.views', url(r'^$', 'index', name='index'),

Re: Benchmarking and timing DB transactions in Django

2013-03-03 Thread Andy McKay
On Feb 22, 2013, at 3:18 AM, R R wrote: > I was wondering if there are any tools to benchmark DB transactions using the > Django ORM. I'm using PostGreSQL with Django 1.4. I'm required to compare and > come up with the best possible database design for a project which

Re: Is there a way to list users that have logged in within the pass 30 minutes

2013-03-03 Thread Bulkan
Hi, You can try something like the following; from datetime import datetime, timedelta from django.contrib.auth.models import User half_hour_ago = datetime.today() - timedelta(minutes=30) User.objects.filter(last_login__lt=half_hour_ago) Cheers http://bulkan-evcimen.com On Mon, Mar 4, 2013

Re: Upgrade django 1.5

2013-03-03 Thread Bulkan
Yes you could. https://docs.djangoproject.com/en/dev/releases/1.5/ http://bulkan-evcimen.com On Mon, Mar 4, 2013 at 1:32 PM, Randa Hisham wrote: > Iam working in aproject using django 1.4.2..could I upgrade to django1.5 > > -- > You received this message because you

Upgrade django 1.5

2013-03-03 Thread Randa Hisham
Iam working in aproject using django 1.4.2..could I upgrade to django1.5 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Upgrade to django 1.5

2013-03-03 Thread Randa Hisham
Iam now working in aproject using django 1.4.2 could I upgrade to django 1.5? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: FastCGI Recipe for shared hosting

2013-03-03 Thread Tim Johnson
* Marc Aymerich [130303 14:17]: > On Sun, Mar 3, 2013 at 5:33 PM, Tim Johnson wrote: > > Clearly, a red herring, and clearly django could do better with > > documentation and support for shared servers. > > (very frustrated) Drupal makes it so

Re: FastCGI Recipe for shared hosting

2013-03-03 Thread Tim Johnson
* Marc Aymerich [130303 14:17]: > On Sun, Mar 3, 2013 at 5:33 PM, Tim Johnson wrote: > > https://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/#running-django-on-a-shared-hosting-provider-with-apache :( I've read it a hundred times.

Re: FastCGI Recipe for shared hosting

2013-03-03 Thread Marc Aymerich
On Sun, Mar 3, 2013 at 5:33 PM, Tim Johnson wrote: > * Tim Johnson [130302 14:30]: > > * Tom Evans [130301 06:44]: > > > Apache httpd with mod_fastcgi: > > > > > > RewriteCond %{REQUEST_URI} !^/media > > > RewriteCond

Is there a way to list users that have logged in within the pass 30 minutes

2013-03-03 Thread frocco
I want to list users currently on our site. Would I use the last login date time? If so, what should the query look like? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-03 Thread Bruno Girin
Hi Chris, I've been working with Patrick on this charm and I implemented a simple version of support for private repositories. It basically creates a .netrc file with the user name and password for the correct machine. It's not ideal but it did enable me to get code from a private github repo.

Re: FastCGI Recipe for shared hosting

2013-03-03 Thread Tim Johnson
* Tim Johnson [130302 14:30]: > * Tom Evans [130301 06:44]: > > Apache httpd with mod_fastcgi: > > > > RewriteCond %{REQUEST_URI} !^/media > > RewriteCond %{REQUEST_URI} !^/ > > # repeat for any other directories you want httpd to serve > >

Re: urls.py not loading changes

2013-03-03 Thread Serge G. Spaolonzi
Maybe the server is loading an old .pyc file. try to delete the urls.pyc file and restart the server. On Sun, Mar 3, 2013 at 11:16 AM, Asier Hernández Juanes < asiertxo...@gmail.com> wrote: > Hi everyone, > > i have a remote Linux server with a Django application running in a nginx > server but

urls.py not loading changes

2013-03-03 Thread Asier Hernández Juanes
Hi everyone, i have a remote Linux server with a Django application running in a nginx server but when I make a change in urls.py like adding a new urlpattern the server is not applying the changes. I have restarted nginx server but the new url is not loading. Does anyone know what may be the

Templates: best way to access object attributes described in a external list.

2013-03-03 Thread Serge G. Spaolonzi
I am looking for best way to access object attributes described in a external list. The user case is to display a list of objects for different classes showing only some attributes, every list will contain only objects of the same kind, all the functionality repeats except the attributes to be

Re: django version 1.5 development server is more slow than early version

2013-03-03 Thread Some Developer
On 03/03/13 08:08, Fangzx wrote: It is very obvious when I press F5 to refresh whole index page. I've just upgraded one of my projects to Django 1.5 and can't say I've noticed a change in the speed of the development server. Are you sure you are not trying to compress your static files on

django version 1.5 development server is more slow than early version

2013-03-03 Thread Fangzx
It is very obvious when I press F5 to refresh whole index page. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To