Re: how to use get_queryset in my code

2012-11-19 Thread Nebros
I can really need your help, i don't have found the solution till now. :( -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/l397ya2KOJgJ. To post to this gro

Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

2012-11-19 Thread Sergiy Khohlov
Which version of django ? Is this one version has python 3.x support ? 2012/11/20 Cj Taylor : > ok, so what needs to happen here? Do I need to recode > /usr/local/lib/python3.2/dist-packages/django/db/backends/mysql/base.py to > use this new module? > > > On Sunday, November 18, 2012 4:57:02 PM

Re: TemplateDoesNotExist Error...

2012-11-19 Thread rmschne
Yes, with guidance from Django/Python, I am sure the error occurs there. Django/Pythyon presents the trace and the line number which causes the exception is reported to the command Line. However, I will look again at that line and all lines above. Yes, I know there is a "good" chance as the cl

Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

2012-11-19 Thread Cj Taylor
ok, so what needs to happen here? Do I need to recode /usr/local/lib/python3.2/dist-packages/django/db/backends/mysql/base.py to use this new module? On Sunday, November 18, 2012 4:57:02 PM UTC-5, iƱigo medina wrote: > > > On Sat, 17 Nov 2012, Cj Taylor wrote: > > > That package installs into

Re: Is there a recommended pattern for creating "replaceable" apps?

2012-11-19 Thread Russell Keith-Magee
On Tue, Nov 20, 2012 at 6:28 AM, Chris Cogdon wrote: > Hi folks! > > I'm creating an application to manage an art show (with art pieces to view > and sell, silent and voice auctions, and a sales process). To have this > work, it of course needs to keep track of people (including names, > addresse

Help with django-allauth

2012-11-19 Thread Hari Seldon-Cooper
Hello there! I'm following some tutos on web about django-allauth like Amyth Arora's one. I think i'm on the good way but i'm hitting a wall. I can access /accounts/login but not /accounts/twitter/login I get this error : DoesNotExist at /accounts/twitter/login/ SocialApp matching query does no

Building an API to facilitate a mobile app

2012-11-19 Thread Amrutha Rajiv
Hey All, I posted this on the django-tastypie group and I haven't got a response yet. I hope there's someone here who can help me with this: I have a django project that is currently accessible through a web client. What I need to do is create API end points to it so that a mobile app can send

Is there a recommended pattern for creating "replaceable" apps?

2012-11-19 Thread Chris Cogdon
Hi folks! I'm creating an application to manage an art show (with art pieces to view and sell, silent and voice auctions, and a sales process). To have this work, it of course needs to keep track of people (including names, addresses, email, etc). But to make this more useful to anyone, I want

Re: TemplateDoesNotExist Error...

2012-11-19 Thread Chris Cogdon
If you're sure your error appears at the "txt=" line, look at the definition for that template. There is a good chance it's trying to pull in a template (via an include, or a extends) that doesn't exist. If you need more debugging, you can always modify the LOGGING variable to drop a bunch of l

need help with postgres installation and set-up for doing tutorials

2012-11-19 Thread Luisa Beck
Hi, I'm new to web development and I'm trying to get my mac set up for doing the tutorials. I installed postgres and pgAdmin III and set it up on the default port (5433). I created a test database. Now when I try to open it on the local server, I get an error message: 'ERROR: column "datconfig"

Re: Multi Database + Huge lookups

2012-11-19 Thread Russell Keith-Magee
On Mon, Nov 19, 2012 at 10:06 PM, alexandre...@gmail.com < alexandre...@gmail.com> wrote: > Hi > I've a big project implemented in Delphi/C++/MSSQL that I want to migrate > to the WEB and Python/Django is my choice. > But I'm getting some dificulties probably due to the backgroud I came from. > >

Re: Best way to detect if a user has changed password

2012-11-19 Thread Roarster
Ended up using Tom's method in the end (thanks!) - it seemed more efficient than grabbing the user object back out of the database to do a password comparison on every save. On Thursday, 25 October 2012 11:41:54 UTC+1, Tom Evans wrote: > > On Wed, Oct 24, 2012 at 10:23 PM, Roarster > > > wrote

TemplateDoesNotExist Error...

2012-11-19 Thread rmschne
I have moved to a new laptop which is both my development and production platform. The only change in infrastructure is that I run Python, Django, and all else in a virtual environment (VirtualEnv). I am not using Django to run on a web server. I have a function which produces a set of H

ModelAdmin.save_formset() questions

2012-11-19 Thread Carsten Fuchs
Hi all, after digging a bit deeper, it seems that ModelAdmin.save_formset() is the right solution for my original problem (https://groups.google.com/d/topic/django-users/Zwg

Re: Set-up Problems: Permission denied

2012-11-19 Thread Akia Vongdara
I just tried it and it worked. Thanks a bunch! On Monday, November 19, 2012 1:04:22 PM UTC-5, Sultan Imanhodjaev wrote: > > Did you try > > sudo ln -s WORKING-DIR/django-trunk/django/bin/django-admin.py > /usr/local/bin > > On Nov 19, 2012, at 11:57 PM, Akia Vongdara wrote: > > I am getting a pe

Re: Set-up Problems: Permission denied

2012-11-19 Thread Sultan Imanhodjaev
Did you try sudo ln -s WORKING-DIR/django-trunk/django/bin/django-admin.py /usr/local/bin On Nov 19, 2012, at 11:57 PM, Akia Vongdara wrote: > I am getting a permission error when I got to this part of the set-up. (I > have also replaced the WORKING-DIR fyi) > > ln -s WORKING-DIR/django-trunk

Set-up Problems: Permission denied

2012-11-19 Thread Akia Vongdara
I am getting a permission error when I got to this part of the set-up. (I have also replaced the WORKING-DIR fyi) ln -s WORKING-DIR/django-trunk/django/bin/django-admin.py /usr/local/bin Errors: ln: /usr/local/bin/My: Permission denied ln: /usr/local/bin/Django: Permission denied ln: /usr/local

Re: RuntimeWarning "DateTimeField received a naive datetime" with TIMESTAMP MySQL field

2012-11-19 Thread Tom Evans
On Mon, Nov 19, 2012 at 2:29 PM, Tom Evans wrote: > On Fri, Nov 16, 2012 at 5:50 PM, Sencha wrote: >> Yes I'm aware of this, however I'm not generating the datetime objects, it's >> all coming from Django (hence me wondering whether or not it's a bug or >> not). All I need to do to replicate the

Re: RuntimeWarning "DateTimeField received a naive datetime" with TIMESTAMP MySQL field

2012-11-19 Thread Tom Evans
On Fri, Nov 16, 2012 at 5:50 PM, Sencha wrote: > Yes I'm aware of this, however I'm not generating the datetime objects, it's > all coming from Django (hence me wondering whether or not it's a bug or > not). All I need to do to replicate the bug is get the object from the db > and then save is str

Re: how to use get_queryset in my code

2012-11-19 Thread Nebros
It will be very helpful, if anyone can help me. I need it for my work and I cant find the solution... :( -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/GV

Re: too much customization - ldap user model

2012-11-19 Thread Tom Evans
On Fri, Nov 16, 2012 at 4:23 AM, Anil Jangity wrote: > I am trying to build a custom User model with a custom authentication backend > (ldap). > Here is what I've done so far: > > Custom LDAP authentication backend: > > class LDAPBackend: > def get_user(self, user_id): > try: >

Multi Database + Huge lookups

2012-11-19 Thread alexandre...@gmail.com
Hi I've a big project implemented in Delphi/C++/MSSQL that I want to migrate to the WEB and Python/Django is my choice. But I'm getting some dificulties probably due to the backgroud I came from. 1- I've have several databases One of them is for static tables like zipcodes Districts countrys, an

Re: why the else statement {% else %} is not working...?

2012-11-19 Thread Daniel Roseman
On Monday, 19 November 2012 11:15:57 UTC, muhammed riyas wrote: > def employees(request): > employees = Employeeprofile.all() > return render_to_response('main/list.html', { 'employees' : employees > }) > > > Once again, you are posting AppEngine-specific queries to a Django group. Pleas

Re: why the else statement {% else %} is not working...?

2012-11-19 Thread Sergey Fursov
You can try next statements: {% if employees|length %} or {% employees.exists %} but second statement will generate additional database query 2012/11/19 muhammed riyas > def employees(request): > employees = Employeeprofile.all() > return render_to_response('main/list.html', { 'employee

Re: why the else statement {% else %} is not working...?

2012-11-19 Thread Sandeep kaur
On Mon, Nov 19, 2012 at 4:24 PM, muhammed riyas wrote: > no even there is no employees i didnt got it > Show your views too. -- Sandeep Kaur E-Mail: mkaurkha...@gmail.com Blog: sandymadaan.wordpress.com -- You received this message because you are subscribed to the Google Groups "Django u

Re: why the else statement {% else %} is not working...?

2012-11-19 Thread Sandeep kaur
On Mon, Nov 19, 2012 at 1:46 PM, muhammed riyas wrote: > > > > Employee List > {% if employees %} > {% for employee in employees %} > {{ > employee.employee_name }} > {% endfor %} > Click here to remove > all employees > {% else %} > Sorry there is no employees yet :

how to use get_queryset in my code

2012-11-19 Thread Nebros
Good morning I tryed to use a form to give a variable "x" to my filter... what i have: startig page Portal- {% include "header.html" %} Kunde {% include "header2.html" %} Kunde {% block content %}Zeit der Aktualisierung {{ current_date }}{% endblock %}

why the else statement {% else %} is not working...?

2012-11-19 Thread muhammed riyas
Employee List {% if employees %} {% for employee in employees %} {{ employee.employee_name }} {% endfor %} Click here to remove all employees {% else %} Sorry there is no employees yet :( {% endif %} Thanks in advance. -- You received this message bec