Re: Django 1.6 test cases for code which calls transaction.set_autocommit()

2014-03-06 Thread Anssi Kääriäinen
On Friday, March 7, 2014 12:11:59 AM UTC+2, Justin Michalicek wrote: > > It appears that due to test cases running in an atomic block, testing > methods which use transaction.set_autocommit() all fail. I've got a small > handful of test cases around methods which need to use manual transaction

Trying to set up hashed versioning in Django for static files

2014-03-06 Thread Vernon Burt
Hello all, I've pretty quikly found out in my DJango adventure that I need to have some kind of versioning for my static css and javascript files. After talking to some web developers I was directed to use Django's CachedStaticFilesStorage app to append an md5 hash to the static files path. No

Re: Using inlines on a one to many but not seeing "add another" link

2014-03-06 Thread Dennis Marwood
I found the answer to my issue, posting it here in case others have the same issue. The problem was caused by an old version of inline.js being loaded. I ran collectstatic at some point and a version of the script from 1.3 was saved. On Saturday, 1 March 2014 15:53:41 UTC-8, Dennis Marwood wro

Pandas in Django

2014-03-06 Thread judy wawira
Hello I have a CSV file that i wish to manipulate based on user inputs and show this on a Djnago project I dont necessarily wish to save the data in the model Can anyone point me to a direction on how to do this I have tried creating a normal app like below but it says listmethod not found

Re: Code Layout with an Apache Server

2014-03-06 Thread Tom Browder
On Thu, Mar 6, 2014 at 7:29 PM, Tom Browder wrote: > On Thu, Mar 6, 2014 at 5:24 PM, Tom Browder wrote: >> I am working on my first Django project and would like to get comments >> on a reasonable layout for a single Django instance used with several > ... > > In the attached file there were a co

Re: Code Layout with an Apache Server

2014-03-06 Thread Tom Browder
On Thu, Mar 6, 2014 at 5:24 PM, Tom Browder wrote: > I am working on my first Django project and would like to get comments > on a reasonable layout for a single Django instance used with several ... In the attached file there were a couple of mistakes. In the macro definition directive the file

Code Layout with an Apache Server

2014-03-06 Thread Tom Browder
I am working on my first Django project and would like to get comments on a reasonable layout for a single Django instance used with several Django projects where: 1. each project is a single web site on a unique virtual host (vhost) 2. all virtual hosts are on a single, real server running Debian

Re: "Authenticating Users" where should I put the code?

2014-03-06 Thread Jack Yan
Thank you :) On Friday, March 7, 2014 12:13:26 AM UTC+8, Felipe Coelho wrote: > > 2014-03-06 11:45 GMT-03:00 Jack Yan >: > >> in the tutorial and section "Authenticating Users": >> https://docs.djangoproject.com/en/1.6/topics/auth/default/ >> >> where can I put code: >> >> from django.contrib.auth

Django 1.6 test cases for code which calls transaction.set_autocommit()

2014-03-06 Thread Justin Michalicek
It appears that due to test cases running in an atomic block, testing methods which use transaction.set_autocommit() all fail. I've got a small handful of test cases around methods which need to use manual transaction management and they are definitely working when I actually use the site, but

Re: Different content type objects in django template

2014-03-06 Thread Daniel Roseman
On Thursday, 6 March 2014 18:33:36 UTC, Robin Lery wrote: > > I am having a hard time to understand ContentType. I am learning from a > tutorial, this is the link . I have synced the database, and its working in > the admin. But when I try to load the ContentType objects in the template, > I get

Different content type objects in django template

2014-03-06 Thread Robin Lery
I am having a hard time to understand ContentType. I am learning from a tutorial, this is the link . I have synced the database, and its working in the admin. But when I try to load the ContentType objects in the template, I get nothing. When I see the page source, the get_rendered_method is not lo

Re: "Authenticating Users" where should I put the code?

2014-03-06 Thread Felipe Bessa Coelho
2014-03-06 11:45 GMT-03:00 Jack Yan : > in the tutorial and section "Authenticating Users": > https://docs.djangoproject.com/en/1.6/topics/auth/default/ > > where can I put code: > > from django.contrib.auth import authenticateuser = > authenticate(username='john', password='secret')if user is no

Re: "Authenticating Users" where should I put the code?

2014-03-06 Thread Robin Lery
This should be in your views.py. On Thu, Mar 6, 2014 at 8:15 PM, Jack Yan wrote: > in the tutorial and section "Authenticating Users": > https://docs.djangoproject.com/en/1.6/topics/auth/default/ > > where can I put code: > > from django.contrib.auth import authenticateuser = > authenticate(us

Django Site(s) looks ugly with ?None as query parameter.

2014-03-06 Thread Christian Schmitt
Hello, currently I have some Django sites one of them is http://www.schnooge-hansili.de/ if i open it with http://www.schnooge-hansili.de/?None It looks really ugly. Currently the first site is just a simple CBV view. Nothing really special. -- You received this message because you are subscri

"Authenticating Users" where should I put the code?

2014-03-06 Thread Jack Yan
in the tutorial and section "Authenticating Users": https://docs.djangoproject.com/en/1.6/topics/auth/default/ where can I put code: from django.contrib.auth import authenticateuser = authenticate(username='john', password='secret')if user is not None: # the password verified for the user

Re: Newbie: ImportError during syncdb

2014-03-06 Thread Jay Parikh
Hi David, Instead of specifying ''django_bookmarks.bookmarks'' in 'INSTALLED_APPS' i would suggest you to use your app name which you have created e.g someting like as below: INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.co

Re: Newbie: ImportError during syncdb

2014-03-06 Thread Jay Parikh
Let say for example i am going to create new app say bookmarks then i will do something like *"python manage.py startapp bookmarks" *likewise whatever name you have passed in place of *bookmarks.* Just place it inside INSTALLED_APPS. On Thu, Mar 6, 2014 at 1:06 PM, Robin Lery wrote: > What the

Re: Class that extends a model that is not a model

2014-03-06 Thread Domagoj Kovač
Thanks Havier, Proxy models also look like something that fit my needs. -- 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.c