Re: psycopg2

2012-11-17 Thread Jun Tanaka
Thank you for your advise. I used the trace back and it says 'exceptions.ImportError'. On Windows, cay you not easy_install psycopg2? When I did, it seems that it was done correctly. Please help!!! 2012年11月18日日曜日 2時11分23秒 UTC+9 ovnicraft: > > > > > On Sat, Nov 17, 2012 at 11:07 AM, Jun

ANN: Gnotty 0.1

2012-11-17 Thread Stephen McDonald
Hi all, I've just released Gnotty 0.1 - it's a Django app that provides a web client, searchable message archive and bot framework, all based around an IRC channel. It uses Django for the message store and search interface, WebSockets and gevent for the IRC bridge, and Twitter's Bootstrap for the

Fwd: Noobe alert [solved]

2012-11-17 Thread Gerald Klein
Hi, Yea got it, the nginx static had to be removed from the alias url. thanks -- Forwarded message -- From: Gerald Klein Date: Sat, Nov 17, 2012 at 1:27 PM Subject: Noobe alert To: django-users@googlegroups.com Hi, I finally got a project in Django and I have

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

2012-11-17 Thread Cj Taylor
That package installs into my python directory but not python3. I'm currently trying to get Django 1.5 to work with python3. Are there other ways currently to get mysql to work with django and the python3 environment? Try this : > sudo apt-get install python-mysqldb > > -- > Sandeep Kaur

Noobe alert

2012-11-17 Thread Gerald Klein
Hi, I finally got a project in Django and I have a "what I hope is an easy question" I started to set up a production server and yes the admin css dissappeared, I went though the docs and followed them. I used the Collect Static Files method and still no joy. Here is my info: #settings.py

Re: Reason for not allowing spaces in usernames?

2012-11-17 Thread Tomas Neme
> I'm puzzled with this too. Did anyone manage to find a solution to resolving > spaces in usernames. > > Generally a user, these days logs in with their email - that's predominately > how I've setup all my django projects. People don't remember usernames. It Well, I can't really agree, but

Re: psycopg2

2012-11-17 Thread Ovnicraft
On Sat, Nov 17, 2012 at 11:07 AM, Jun Tanaka wrote: > I run a django program with psycopg2 on Mac and then it works fine. Now, I > am trying to run the same program on Windows. Then "ImportError: No module > named psycopg2.extensions" shows up. I installed the same version of >

Re: too much customization - ldap user model

2012-11-17 Thread Anil Jangity
So, the bottom line is, what do I need to do after I do a authenticate() to have the login persist in the session and in the other views? Thanks On Nov 15, 2012, at 8:23 PM, Anil Jangity wrote: > I am trying to build a custom User model with a custom authentication backend >

psycopg2

2012-11-17 Thread Jun Tanaka
I run a django program with psycopg2 on Mac and then it works fine. Now, I am trying to run the same program on Windows. Then "ImportError: No module named psycopg2.extensions" shows up. I installed the same version of django, postgres, psycopg2. Please give me a help. -- You received

Re: ModelForm excluded one field but it excludes another field

2012-11-17 Thread Sandeep kaur
On Tue, Nov 13, 2012 at 1:17 PM, Rohit Banga wrote: > Hi All > > model = ConcreteModel2 > exclude = ('field3_test') > > > Now as you can see there are parallels between the two model forms. > The problem is that in my template field1 is visible

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

2012-11-17 Thread Sandeep kaur
On Fri, Nov 16, 2012 at 10:59 AM, Cj Taylor wrote: > Hello all, > I'm new to Django and somewhat Python (a PHP refugee). I have been > learning Python 3.0 so decided to give 1.5 a run. I tried to run the > command below and mysqldb is missing. I noticed on >

Re: Reason for not allowing spaces in usernames?

2012-11-17 Thread Paul von Hoesslin
I'm puzzled with this too. Did anyone manage to find a solution to resolving spaces in usernames. Generally a user, these days logs in with their email - that's predominately how I've setup all my django projects. People don't remember usernames. It is legacy, facebook connects with emails, so

Re: What used @models.permalink and get_absolute_url? Please an example to better understand this. An example of the documentation is not clear to me

2012-11-17 Thread Victor Rocha
In order to use get_absolute_url, first of all you need to have named urls. Lets imagine we have the following named url. url(r'^accounts/(P?d+)/$', DetailView.as_view( template_name='accounts/details.html', ), name='account_details') In order to referece this url in a

Re: What used @models.permalink and get_absolute_url? Please an example to better understand this. An example of the documentation is not clear to me

2012-11-17 Thread Tomas Ehrlich
Hi there, the key idea is: *Let's have URLs defined at one and only one place.* So, when you have urls.py like this: urlpatterns = patterns('', '^blog/(?P\w+)', BlogDetail.as_view(), name='blog-detail', '^articles/(?P\w+)', ArticleDetail.as_view(),

Re: howto Single Sign-On with django on windows

2012-11-17 Thread Tim Sawyer
See https://docs.djangoproject.com/en/dev/howto/auth-remote-user/#howto-auth-remote-user Tim. On 17/11/12 09:13, Anton wrote: Hi, I am using in windows 7 64bit: - python 2.7.3 32bit !! - django 1.4.2 If use my internet explorer in my company, it does an automatic login on some services.

howto Single Sign-On with django on windows

2012-11-17 Thread Anton
Hi, I am using in windows 7 64bit: - python 2.7.3 32bit !! - django 1.4.2 If use my internet explorer in my company, it does an automatic login on some services. Is there a possibilty to: - add an user named "john" to my django - if john goes to my django app with his internet explorer: