how can an abstract class know which class inherits it

2013-07-11 Thread Mike Dewhirst
I have four models, all of which inherit the fields and methods of a single abstract model. For one of those abstract fields, I would like help_text to vary depending on which model has inherited it. Is this possible? If so, how can I do it? Thanks Mike -- You received this message becaus

Re: Unable to get python manage.py runserver to work

2013-07-11 Thread Mike Dewhirst
On 12/07/2013 1:01pm, Yves S. Garret wrote: I was able to import django from inside of python 2.6.6 (which is what I'm going with at the moment). However, when I try to display something in a browser, this is the problem that I'm getting: $ python /path/to/file/manage.py runserver Traceback (mo

Re: Unable to get python manage.py runserver to work

2013-07-11 Thread Kamal Kaur
On Fri, Jul 12, 2013 at 8:31 AM, Yves S. Garret wrote: > What am I screwing up? Try using quote: [...] project_name.settings [...] instead of [...] {{ project_name }}.settings [...] -- Kamaljeet Kaur Blog:http://kamalkaur188.wordpress.com/ -- You received this message because you are subsc

Re: Unable to get python manage.py runserver to work

2013-07-11 Thread Yves S. Garret
Note, I'm trying to avoid using a database. I'm, ultimately, planning on getting Django Dynamic Scraper to work and figured that this is a good first step. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Unable to get python manage.py runserver to work

2013-07-11 Thread Yves S. Garret
I was able to import django from inside of python 2.6.6 (which is what I'm going with at the moment). However, when I try to display something in a browser, this is the problem that I'm getting: $ python /path/to/file/manage.py runserver Traceback (most recent call last): File "/home/azureuser/

Re: form.errors

2013-07-11 Thread Kakar Arunachal Service
Its just displaying form again, but without any errors. Please guide me to where am missing something. On Fri, Jul 12, 2013 at 4:34 AM, Kakar Arunachal Service < kakararunachalserv...@gmail.com> wrote: > I am sorry, but its still not displaying any errors after it renders. > > > On Fri, Jul 12,

Re: form.errors

2013-07-11 Thread Kakar Arunachal Service
I am sorry, but its still not displaying any errors after it renders. On Fri, Jul 12, 2013 at 3:47 AM, carlos wrote: > try this with django 1.5.1 > from django.shortcuts import render > > def register_page(request): > if request.method == 'POST': > form = RegistrationForm(request.PO

Re: form.errors

2013-07-11 Thread carlos
try this with django 1.5.1 from django.shortcuts import render def register_page(request): if request.method == 'POST': form = RegistrationForm(request.POST) if form.is_valid(): form.save() return HttpResponseRedirect('/register/success/') else:

form.errors

2013-07-11 Thread Kakar Arunachal Service
Hi, I am learning Django from an old Django version book, and i am stuck with a problem regarding forms. When i render forms, i get the registration right, but if its incorrect, it does not show the error msg in the html. I tried {{form.errors}}, but couldn't fix he problem. Please guide me. Thank

Submit a form but stay on the page and the form changes

2013-07-11 Thread Cody Scott
I would like to put a Poll Voting Form on any page like a blog post page or the homepage. Here is the page that I display the form and the view that it gets posted to in the form action attribute. I would like to be able to submit the form but stay on that page and have the form change into the

Re: video app

2013-07-11 Thread Rafael E. Ferrero
XMPP... and have fun! 2013/7/11 Michael Hernandez > I am sorry if that response came off a bit rude, I meant totally just to > help, I am having a stressful day, and just wanted to stress that you > should breakdown things in your head or on paper, and research the > individual components. > Th

Re: duda

2013-07-11 Thread Rafael E. Ferrero
Evidentemente tenes un lio de Templates ... no te encuentra el "registration/password_ change_done.html" Por la segunda pregunta... con forms hechos a mano supongo? fijate cuando haces el syncdb y habilitaste el middleware de usuarios te crea las tablas... Fijate por acá: https://docs.djangoprojec

duda

2013-07-11 Thread Ernesto Pulgaron
hola, estoy introduciendome en django por lo que tengo algunas dudas, quisiera sabes como es que se usa UserChangeForm ya que cdo trato de accecer al link de password = ReadOnlyPasswordHashField(label=_("Password"), help_text=_("Raw passwords are not stored, so there is no way to see "

Re: video app

2013-07-11 Thread Michael Hernandez
I am sorry if that response came off a bit rude, I meant totally just to help, I am having a stressful day, and just wanted to stress that you should breakdown things in your head or on paper, and research the individual components. There is never a one size fits all solution. On Thu, Jul 11, 201

Re: video app

2013-07-11 Thread Michael Hernandez
There is no package in the world that will do your work for you. What are you trying to do. Limit the scope of your question and then ask for help? Heres some help though. First, divide up your application into high level segments. 1. Chat Application ( if there is text based chat on top of video

Re: Add an icon "not displayed on website" to certain fields on Admin interface.

2013-07-11 Thread Jérémie Ferry
I found solution... but not sure is the best. here it is: https://gist.github.com/mothsART/acf73a13e5298348e463 I update admin css files to catch my css class and bring me an icon before "fields not visible"... What did you think about? Le mardi 9 juillet 2013 15:46:48 UTC+2, Jérémie Ferry a

Re: Error in return the view (The view did not return an HttpResponse object)

2013-07-11 Thread Hélio Miranda
Yes, this really was the problem Brett Already decided, 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, send an email to django-users+unsubscr...@googlegroups.com. To pos

custom authenticate method

2013-07-11 Thread adroit . goose
Hello, In the custom authentication documentation, I saw a example of how to authenticate using email address and password. But, I did not understand how we can authenticate using 3 parameters for eg, [userid, password] from user table and [companyid] (from company table as a foreign key in us

Re: Error in return the view (The view did not return an HttpResponse object)

2013-07-11 Thread Larry Martell
On Thu, Jul 11, 2013 at 5:23 AM, Hélio Miranda wrote: > Good. > I have the following view: > def characValue(request, name): > if request.method == 'POST': > charac = CharacteristicsValue.objects(name=name) > val = [] > for aa in charac: > val.append(aa.valu

Re: Error in return the view (The view did not return an HttpResponse object)

2013-07-11 Thread Brett Parker
On 11 Jul 04:23, Hélio Miranda wrote: > Good. > I have the following view: > *def characValue(request, name):* > *if request.method == 'POST':* > *charac = CharacteristicsValue.objects(name=name)* > *val = []* > *for aa in charac:* > *val.append(aa.value)* >

Error in return the view (The view did not return an HttpResponse object)

2013-07-11 Thread Hélio Miranda
Good. I have the following view: *def characValue(request, name):* *if request.method == 'POST':* *charac = CharacteristicsValue.objects(name=name)* *val = []* *for aa in charac:* *val.append(aa.value)* *jsonString = json.dumps(val)* *return H

Re: exploring django framework source code

2013-07-11 Thread Tom Evans
On Wed, Jul 10, 2013 at 10:25 PM, Ahmad wrote: > Hi every body, > I'd like to know how to explore the django framework source code like if you > are reading a book, like where to start, where to get a general overview of > the code organization, where to head next and so on until you become >