Re: django-facebook

2010-10-10 Thread Sævar Öfjörð
I'm using Django Socialregistration for this purpose. http://github.com/flashingpumpkin/django-socialregistration If the user is already logged in and clicks the facebook button, the existing account is simply linked to the FB account. New users have the option to set up a username. - Sævar On O

Re: "strange" permission requirements

2010-10-10 Thread stargazer
Thanks, will look at this! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more opt

Re: trying to get a cache per request

2010-10-10 Thread Miguel Araujo
Thanks again Doug, I understand your method. I think the problem is that it might be too much overhead for what I can gain using a cache, so I might drop the idea of adding one. In any case, your explanation will be probably worth in future projects :) Regards, Miguel 2010/10/10 Doug > Look ar

Re: get_absolute_url error with sitemaps

2010-10-10 Thread het.oosten
Ok I use a slug field to retrieve an url from the database and apperently get_absolute_url() doesn't work with slugs. I added a location to my sitemap.py which gives the following result; - http://www.example.com/{'slug': u'assortiment'} Here is my sitemap.py: from django.contrib.sitemaps im

cannot open Django official website

2010-10-10 Thread retzzz
Anybody know what's wrong with django official website www.djangoproject.com? I can't open it by several days. Is it down or just my access request was blocked? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

TypeError / get_response: Can't figure it out?

2010-10-10 Thread Sleek
Hey, I'm a newbie to Django/Python world (PHP guy). I'm just going through some tutorials to get things figured out. Everything was working fine until when I was working through the last section of http://djangobook.com/en/2.0/chapter03/ on Dynamic URLs. It seems be an error in the views.py. When

Re: cannot open Django official website

2010-10-10 Thread Roberto Benitez
Form me is working right now. I don't know if it wasn't available before. Roberto On Sun, Oct 10, 2010 at 12:53 PM, retzzz wrote: > Anybody know what's wrong with django official website > www.djangoproject.com? > I can't open it by several days. Is it down or just my access request > was block

Re: TypeError / get_response: Can't figure it out?

2010-10-10 Thread Karen Tracey
On Sun, Oct 10, 2010 at 8:44 AM, Sleek wrote: > I'm a newbie to Django/Python world (PHP guy). I'm just going through > some tutorials to get things figured out. Everything was working fine > until when I was working through the last section of > http://djangobook.com/en/2.0/chapter03/ on Dynamic

Re: cannot open Django official website

2010-10-10 Thread Russell Keith-Magee
On Sun, Oct 10, 2010 at 5:53 PM, retzzz wrote: > Anybody know what's wrong with django official website www.djangoproject.com? > I can't open it by several days. Is it down or just my access request > was blocked? By any chance, have you installed (or just recently uninstalled) the Weave extensio

django, celery and mysql: Lost connection to MySQL server during query

2010-10-10 Thread Massimiliano della Rovere
Using django 1.2.3 with celery 2.0.3 and django-celery 2.0.3 and mysql 5.1.41 on kubuntu 10.04, I receive the following error: OperationalError(2013, 'Lost connection to MySQL server during query'). The error occurs every time the task is executed and seems to be related to the execution time, in

Re: Admin Many-to-Many on a regular Form?

2010-10-10 Thread Marc Aymerich
On Fri, Oct 8, 2010 at 7:58 PM, AK wrote: > I really like the 'filter-horizontal' style widget used by Django > Admin for things like specifying permissions for users/groups. I > would like to create a form that uses this same widget to allow > someone to select a group and then edit which users

Re: django, celery and mysql: Lost connection to MySQL server during query

2010-10-10 Thread Erik Cederstrand
Den 10/10/2010 kl. 16.34 skrev Massimiliano della Rovere: > Using django 1.2.3 with celery 2.0.3 and django-celery 2.0.3 and mysql > 5.1.41 on kubuntu 10.04, I receive the following error: > OperationalError(2013, 'Lost connection to MySQL server during query'). > > The error occurs every time t

Django logging database changes

2010-10-10 Thread David
Hello I have a very simple app that I am writing that simply stores form data to a database. I can then scroll through and edit data stored in the database. I was wondering if there is a built in function that would enable me to log all data update/changes like the django admin history log does.

Re: cannot open Django official website

2010-10-10 Thread retzzz
Hi Russell. You are right, it must be because the extension of Firefox though I didn't install Weae extension. I can access django site through Firefox 4.0 beta 8 pre. Most plugin can't work in this version of Firefox. Then when I uninstalled some of my extensions under Firefox 3.8, I can open th

Re: django, celery and mysql: Lost connection to MySQL server during query

2010-10-10 Thread Massimiliano della Rovere
On Sun, Oct 10, 2010 at 17:12, Erik Cederstrand wrote: > > * Are you keeping a connection open to MySQL the whole time? I do not know what is the default behaviour of django, but I did not specify any custom option. > * What are the values of your timeout settings in the MySQL server configuratio

Re: How to specify NULL as the default of a model field.

2010-10-10 Thread Łukasz Rekucki
Are you adding the field to the model or is the field is already there and you're just adding null=True to it's definition. In the second case, the *backwards* migration will require a default value for instances that have NULL value. On 10 October 2010 00:49, Tim Diggins wrote: > Yes I'm setting

Re: get_absolute_url error with sitemaps

2010-10-10 Thread het.oosten
It was as easy as: def location(self, obj): return obj['slug'] Finally :-) :-) ...is this the right way to make a good sitemap.xml file? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: django-facebook

2010-10-10 Thread shacker
On Oct 10, 1:34 am, Sævar Öfjörð wrote: > I'm using Django Socialregistration for this > purpose.http://github.com/flashingpumpkin/django-socialregistration > > If the user is already logged in and clicks the facebook button, the > existing account is simply linked to the FB account. > New users

Re: django, celery and mysql: Lost connection to MySQL server during query

2010-10-10 Thread Erik Cederstrand
Den 10/10/2010 kl. 17.55 skrev Massimiliano della Rovere: > > * Which process(es) on the server is using 100% CPU time? > directly from htop: > PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command > 544 mader 20 0 969M 953M 1444 R 96.0 47.4 50:09.85 python > ./manage.py ce

Re: Django.contrib.gis.gdal Questions

2010-10-10 Thread Greg Corradini
I also don't see setter properties (only getters) in feature.py or field.py. So I'm pretty sure it's only a read only implementation. I guess if I wanted I could write my own wrappers for this write functionality using Python ctypes, but I'm currently not smart enough. The reason I care about this

trouble creating first project

2010-10-10 Thread Phil
Hi, I am having trouble creating my first project. I am running the latest version of Ubuntu and I installed Django from svn, when I run 'import django' i get no errors back so I assume its installed OK. When I run 'django-admin.py startproject myproject' I get back an error saying 'django-admin.

Re: trouble creating first project

2010-10-10 Thread Shawn Milochik
It seems that the command you're running is not on your PYTHONPATH. You may have to enter the full path to django-admin. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com.

Re: trouble creating first project

2010-10-10 Thread Jonathan Barratt
Hi Phil, On Mon, Oct 11, 2010 at 8:47 AM, Phil wrote: > When I run 'django-admin.py startproject myproject' I get back an > error saying 'django-admin.py: command not found'. > Run the following from a shell prompt: ls -l `which django-admin.py` and let us know the result. Yours, Jonathan

how to avoid error opening a url

2010-10-10 Thread jimgardener
hi In my application I am taking user given url strings.The user is likely to enter 'www.google.com' instead of 'http:// www.google.com' .When I try to open the url import urllib2 page=urllib2.urlopen(url) can give a ValueError if the user fails to enter 'http'.How can this problem be addressed?d

Re: how to avoid error opening a url

2010-10-10 Thread Jonathan Barratt
On 11 ?.?. 2010, at 11:00, jimgardener wrote: > hi > In my application I am taking user given url strings.The user is > likely to enter 'www.google.com' instead of 'http:// > www.google.com' .When I try to open the url > > import urllib2 > page=urllib2.urlopen(url) > > can give a ValueError if t