bug in multi-level multi-table inheritance?

2013-07-18 Thread Dow Street
All, I'm seeing some unexpected behavior when using multi-level multi-table inheritance. In the example below there are three levels in the class hierarchy. When accessing the name field (which is stored in the Level1 base class) from an object in Level3, the query does not seem to walk the h

Re: is Django useful for a basic site as well?

2013-07-18 Thread Some Developer
On 18/07/2013 22:41, Alex Hall wrote: Yes, I suspected as much but was hoping for something easier than CSS. My last adventure in CSS somehow put my navigation buttons squashed against the right side of their div, and my footer ended up floating behind my main content. Well, at least Django will

Re:

2013-07-18 Thread Harjot Mann
On Thu, Jul 18, 2013 at 11:57 PM, Sivaram R wrote: > Have you given the correct url? for file > call ? Yes, the url is correct, even when I am trying to use render_to_response its showing me the html template but its not picking render_to_pdf(). -- Harjot Kaur Mann Blog: http://harjotmann.wordp

create random string for username

2013-07-18 Thread Sivaram R
Hi, I would like to create username in django user model as random string.I am using models form to save the user profile in that model. In models form i am having the fields like first_name,last_name,email_id,password,is_active,is_staff and is_superuser and username. While saving th

Re: Avoid unbounded memory consumption when running `manage.py test`

2013-07-18 Thread Matt McClure
On Thursday, July 18, 2013 6:12:16 PM UTC-4, Matt McClure wrote: > AFAICT, TestResult holds references to each TestCase instance. I can start to answer my own question. But I'm interested to know if others run into similar problems and how you solve them. It looks like there are at least two p

Re: Best practice - using Django model's in-built id field?

2013-07-18 Thread Mike Dewhirst
On 19/07/2013 12:05pm, Victor Hooi wrote: Hi, Actually, while we're there - is this a suitable use of AutoField? Or is there a better way to generate unique transactions IDs? python.uuid? Or something better? It depends on your use-case. If your unique transaction number requirement is only s

Re: Best practice - using Django model's in-built id field?

2013-07-18 Thread Victor Hooi
Hi, Actually, while we're there - is this a suitable use of AutoField? Or is there a better way to generate unique transactions IDs? python.uuid? Or something better? Cheers, Victor On Friday, 19 July 2013 11:57:21 UTC+10, Victor Hooi wrote: > > Hi, > > Ok, thanks, I'll generate my own AutoFie

Re: Best practice - using Django model's in-built id field?

2013-07-18 Thread Victor Hooi
Hi, Ok, thanks, I'll generate my own AutoField to track each transaction. Just to clarify - when you say they'll be issues with migration, what do you mean? Is it because that field is also as a FK to other models? Or something else? Cheers, Victor On Friday, 19 July 2013 11:50:25 UTC+10, Mik

Re: Best practice - using Django model's in-built id field?

2013-07-18 Thread Mike Dewhirst
On 19/07/2013 11:31am, Victor Hooi wrote: Hi, I'm just wondering - is it considered good or bad practice to use a Django model's in-built ID field? Say for example you wanted a unique identifier for each transactio - should you be generating your own, or can you use just self.id? Don't go the

Best practice - using Django model's in-built id field?

2013-07-18 Thread Victor Hooi
Hi, I'm just wondering - is it considered good or bad practice to use a Django model's in-built ID field? Say for example you wanted a unique identifier for each transactio - should you be generating your own, or can you use just self.id? Cheers, Victor -- You received this message because y

Re: Design for storing likes/dislikes?

2013-07-18 Thread Victor Hooi
Hi, I'm leaning more towards NullBooleanField at the moment. There's a number of reasons we're going for binary voting (like/dislike), versus say a star rating. Firstly, rating systems like that are ambiguous - a 2-star rating from me may not be the same as a 2-star rating from somebody else.

Avoid unbounded memory consumption when running `manage.py test`

2013-07-18 Thread Matt McClure
What's a good way to avoid unbounded memory consumption when running manage.py test? AFAICT, TestResult holds references to each TestCase instance. So attributes of my TestCase subclasses don't get freed by the garbage collector until the last reference to TestResult disappears, which isn't un

Re: is Django useful for a basic site as well?

2013-07-18 Thread Bill Freeman
Good programmers steal. Great programmers steal from the best. Find a beautiful site and don't deviate much from his layout/CSS scheme. On Thu, Jul 18, 2013 at 5:41 PM, Alex Hall wrote: > Yes, I suspected as much but was hoping for something easier than CSS. My > last adventure in CSS somehow

Re: is Django useful for a basic site as well?

2013-07-18 Thread Alex Hall
Yes, I suspected as much but was hoping for something easier than CSS. My last adventure in CSS somehow put my navigation buttons squashed against the right side of their div, and my footer ended up floating behind my main content. Well, at least Django will make my projects and articles easier

label_tag() escapes output twice

2013-07-18 Thread sephii
Hello, I'm trying to output a simple form but the label_tag() method tries to escape the field label twice. Here's what I have: # models.py # _ is ugettext_lazy, if it matters class MyModel(models.Model): name = models.CharField(_('My label')) # forms.py class MyForm(forms.ModelForm):

Re: is Django useful for a basic site as well?

2013-07-18 Thread Bill Freeman
Django still require templates, basically HTML from you, in order to make content be delivered to the user's browser. It is still best to use CSS to do things like positioning content into two or three columns with a header a footer (a pretty standard organization). It still requires something li

Form Wizard: Redirecting back to a step from inside the done() method

2013-07-18 Thread Steven Smith
I have a form wizard that walks a user through some system configuration steps. In the done() method, the cleaned_data is used to call out to a configuration system to do various set/unset operations. Most of the time, the validation that I have built into my form classes is sufficient. However

Re: rich text editor

2013-07-18 Thread Andre Terra
You're welcome! We're here to help. Glad to be of service. Cheers, AT On Thu, Jul 18, 2013 at 3:59 PM, Kakar Arunachal Service < kakararunachalserv...@gmail.com> wrote: > Thank you so much!!! I will try it for sure! Thanks again! > > > On Fri, Jul 19, 2013 at 12:15 AM, Andre Terra wrote: > >> I

Re: rich text editor

2013-07-18 Thread Kakar Arunachal Service
Thank you so much!!! I will try it for sure! Thanks again! On Fri, Jul 19, 2013 at 12:15 AM, Andre Terra wrote: > It seems you are asking two completely unrelated questions: > 1. to allow users to add some form of tags into their code for richer > submissions. > 2. to have a different css for e

Re: rich text editor

2013-07-18 Thread Andre Terra
It seems you are asking two completely unrelated questions: 1. to allow users to add some form of tags into their code for richer submissions. 2. to have a different css for each user One possible answer to #1 is BBCode, as I described. Question #2 is something altogether. Do you want each user me

Re:

2013-07-18 Thread Sivaram R
Have you given the correct url? for file call ? Regards, Sivaram R On Thursday, July 18, 2013 11:41:29 PM UTC+5:30, Harjot Mann wrote: > > http://tny.cz/ab1b86eb > Here are my views for creating pdfs but I am getting this error: > > HTTPError at /report/myview/ > > HTTP Error 404: Not Found

[no subject]

2013-07-18 Thread Harjot Mann
http://tny.cz/ab1b86eb Here are my views for creating pdfs but I am getting this error: HTTPError at /report/myview/ HTTP Error 404: Not Found -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Django user

NoReverseMatch when proxy model's parent is not registered on admin site.

2013-07-18 Thread Tomi Leppänen
Django 1.6 has a (documented) difference in handling NoReverseMatch on templates. I noticed that it causes a problem when I don't register proxy mode's parent on admin site. I have defined two models (actually three but only tw

Re: rich text editor

2013-07-18 Thread Kakar Arunachal Service
Thanks a lot! Was waiting for an answer. Just one more question though, I didnt understood much in the link you gave me. Its that, suppose I included it where users can post, will each post require another css, or something else. Please explain. Liked "Impossible is nothing™" On Thu, Jul 18, 201

is Django useful for a basic site as well?

2013-07-18 Thread Alex Hall
Hi all, As I said in my first post here, I despise CSS and laying out websites. I realize that much of that likely stems from my being legally blind, so I cannot check my work, use interactive CSS tools to practice coding and see results, or understand the subtile differences in styles or what h

Re: rich text editor

2013-07-18 Thread Andre Terra
Impossible is nothing™, but I don't see the benefits of combining rich text with social networking. Things like BBCode[0] usually offer a better trade-off between flexibility/usability/maintenance. Based on a quick google search, it seems there are solutions tailored for use with Django [1][2] [0]

Re: image rendering on the template

2013-07-18 Thread John
I don't use the web version; I use the mailing list, so don't have a link to send. My message was sent at Date: Tue, 09 Jul 2013 15:58:45 +0100 and entitled Re: django graphics. John On 15/07/13 17:20, sahitya pavurala wrote: > Hi john , > > > I searched for what you told me, but I could not fin

Same look and feel as Django admin site in My App

2013-07-18 Thread Enator24
Hi , I am I want same look and feel as Django admin site in My application. Could you please help me with the approach I should be using to achieve this. Many Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gr

small django project interesting for job seekers.

2013-07-18 Thread Martin Pagotto
Hi all, I want to share a small weekend project that I did, I think it's interesting for job seekers & freelancers. https://github.com/mpagotto/craigslistDjangoJobFeeds Basically it's a django page that reads all craigslist telecommuting job feeds worldwide (I hardcoded all cities), stores the

Re: Every view requires authentication

2013-07-18 Thread Jon Dufresne
On Thu, Jul 18, 2013 at 1:36 AM, Tom Evans wrote: > On Thu, Jul 18, 2013 at 1:11 AM, Jon Dufresne > wrote: > > Oh, I see what you're saying. The login_required does not need to be > added > > explicitly, because it is added implicitly by the authorization check. > Yeah > > that makes sense. As

change is_superuser field in django user table

2013-07-18 Thread Sivaram R
By default from project directory by running manage.py createsuperuser comment i am able to create a superuser,but the .is_superuser flag is the default django flag to differ superuser or other user. I don't what to use that because i am using that flag throughout the application to show sett

Collectstatic TypeError & Django-pipeline

2013-07-18 Thread Nesh Thompson
Good afternoon, I’m currently using Django 1.5.1 and Python 3.3 I have what seems to be an odd error that up until now I’ve been ignoring as it hasn’t appeared to harm any functionality of my deployed application. However - a couple of days ago I wanted to look into adding compression/minif

Testing django views: RequestFactory and CSRF protection

2013-07-18 Thread Vladimir Ignatev
I need using RequestFactory instead of Client to test one of my views. So the question is how to generate proper CSRF token to provide it to my @csrf_protect'ed view? At this moment I get 403 error when generating POST request. I've read similar topic in this group dated 2011 year, but that top

Custom authentication backend

2013-07-18 Thread Rok Jaklič
Hi, if I write custom authentication backend, do I need to create user in local database so that method get_user can find it? Can I avoid creating user in local database? Rok -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fro

rich text editor

2013-07-18 Thread Kakar Arunachal Service
Hello, Just a thought, can a rich text editor be integrated to a social networking site. Or should every user have a css each? Its just a thought, was just wondering but would be glad if any of you could advice me how to if its possible. Thank you. -- You received this message because you are sub

Is Celery the best option?

2013-07-18 Thread Nigel Legg
I am working on using the DataSift api to collect social media posts as part of my project. I have a page which lists defined searches, and I want to be able to start searches from here, and stop them when the user no longer requires them - that is, the search should continue until it is stopped, e

Re: Every view requires authentication

2013-07-18 Thread Tom Evans
On Thu, Jul 18, 2013 at 1:11 AM, Jon Dufresne wrote: > On Wed, Jul 17, 2013 at 4:24 PM, Arnold Krille wrote: >> >> Still interesting that you need authentication while not needing any >> authorization... > > > Oh, I see what you're saying. The login_required does not need to be added > explicitl