Testing with a custom user model as a ForeignKey in Django 1.5

2013-03-13 Thread Felipe Coelho
I'm using Django 1.5 and I'm trying to make an application work with any custom user model. The issue is that I want to be able to test the app as well, but I can't find a way to make `ForeignKey` model fields to test correctly using custom user models. When I run the test case attached below, I

How to deal with No handlers could be found for logger "XXX"?

2013-03-13 Thread askpython
As title,when I run my program.I see a message form console as it: No handlers could be found for logger "XXX" "XXX" is my source name of program. How to set the settings.py to deal with it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

plugin for selecting files

2013-03-13 Thread Larry Martell
Anyone know of a good plugin or javascript/jQuery package that I can use for a dialog box for navigating and selecting files (just like when you select "Open File ..." for example)? TIA! -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: ANNOUNCE: Django 1.5 released

2013-03-13 Thread Fred Stluka
Good idea! I donated $100. Excellent product. Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread VVilku
Django and phpBB3: I was just checking possibilities connectivity between Django and phpBB. Maybe *DjangoBB* interest you. Migration & connection: https://github.com/jedie/django-phpBB3 regargs, W dniu środa, 13 marca 2013 20:57:33 UTC+1 użytkownik Mike Doroshenko II napisał: > > Django

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread VVilku
Thanks a lot :) You're right.I did not notice it. Working when add 'atest': ** or ** or when *remove this namespace from project/urls.py*. regargs W dniu środa, 13 marca 2013 20:46:41 UTC+1 użytkownik rudyryk napisał: > > Hi VVilku! > > It should work if you remove `namespace='atest'`

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread Mike Doroshenko II
Django phpBB? I've used phpBB before, and am curious about importing a phpBB forum into Django. I am curious what that site is, but when I go there I get nothing :( VVilku wrote: Hello, I have problem with: Reverse for 'django.contrib.auth.views.login' with arguments '()' and keyword

Re: error- A server error occurred. Please contact the administrator.

2013-03-13 Thread Mike Doroshenko II
When I was talking error messages telling you to contact your system administrator, I was talking about the error messages in general, not just specific to Django, ex I had Windows give me such messages. Tom Evans wrote: On Tue, Mar 12, 2013 at 3:26 PM, Mike Doroshenko II

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread Alexey Kinyov
Hi VVilku! It should work if you remove `namespace='atest'` from 'auth_project/urls.py'. regards, Alex /// On Wed, Mar 13, 2013 at 10:14 PM, VVilku wrote: > No, I dont't. :) > The attachment in the first post it is my attempt to isolate the problem. > (assumption

Re: FreeBSD+wsgi+django static and media how-to-do

2013-03-13 Thread Alexey Kinyov
Hi dj-konst! Static files in production are generally served by web server - Nginx or Apache or something else. And it's safer to place static files dir outside of your project dir and use 'collectstatic' command to grab static files there. Here are some examples of Nginx config with static

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Pratik Mandrekar
Thanks Frank, will look into this set of openid providers. Pratik On Wed, Mar 13, 2013 at 4:28 PM, Frank Bieniek < frank.bien...@produktlaunch.de> wrote: > Hi Pratik, > we have glued something together for openid. > > git+git://github.com/openid/python-openid.git@7d65da5987 > django-tastypie >

FreeBSD+wsgi+django static and media how-to-do

2013-03-13 Thread dj-konst
Hi, I'm new in django I use FreeBSD9+wsgi+django (unique host) but meet problems with static files... There are sections in Django Documentation 1.5 ( 4.13.4 Serving static files in production )... but there is no enough details for me. Where to read about serving static files in more detals

Re: django templates and tex/latex

2013-03-13 Thread Ken
Actually, that's exactly what I'm trying to do. I have database tables whose columns contain TeX fragments. I am trying to generate various file outputs from database searches - TeX, pdf, etc. I could construct the tex file on the fly with python strings as you suggest but that's rather

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread VVilku
No, I dont't. :) The attachment in the first post it is my attempt to isolate the problem. (assumption "blog"=="atest") W dniu środa, 13 marca 2013 14:33:42 UTC+1 użytkownik VVilku napisał: > > Hello, > I have problem with: > > Reverse for 'django.contrib.auth.views.login' with arguments '()'

Re: How can my JQuery Sliderbar pass a value to the Veiw and cause the View to execute?

2013-03-13 Thread Shawn Milochik
I'm guessing that the POST vs. GET issue was due to a missing CSRF token. I'm glad you got it working, though. -- 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

Re: How can my JQuery Sliderbar pass a value to the Veiw and cause the View to execute?

2013-03-13 Thread 7equivalents
[Solved] Thanks for the help, it helped me solve the problem and is much appreciated. I still have a few hiccups, like for some reason I had to change type:"POST" to type:"GET" for it to workand it doesn't always work(really bad with IE, better with Firefox). But I still need to study it

Re: Problem with ManyToManyField related table search

2013-03-13 Thread Tom Evans
On Wed, Mar 13, 2013 at 4:57 PM, Frank Schima wrote: > > Hello, > > > I'm clearly missing something obvious with a ManyToManyField. I just want to > return a result list for the related table in a View. > > So here is my Model: > > class Supply(models.Model): > > name

Re: Problems install/download Django 1.5

2013-03-13 Thread Shawn Milochik
On Wed, Mar 13, 2013 at 12:55 PM, wrote: > Okay - now I directly get server errors, so the Django error handler is > passed by... > It helps if you post the errors. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Problem with ManyToManyField related table search

2013-03-13 Thread Frank Schima
Hello, I'm clearly missing something obvious with a ManyToManyField. I just want to return a result list for the related table in a View. So here is my Model: class *Supply*(models.Model): name = models.CharField(max_length=200) ... class *Tool*(models.Model): ... supplies

Re: Problems install/download Django 1.5

2013-03-13 Thread breg
Okay - now I directly get server errors, so the Django error handler is passed by... On Wednesday, March 13, 2013 4:25:49 PM UTC+1, Shawn Milochik wrote: > > Delete all your .pyc files in your virtualenv. > > find /path/to/virtualenv -name '*.pyc' -exec rm -f {} \; > > If that doesn't fix

Re: django templates and tex/latex

2013-03-13 Thread Drew Ferguson
On Wed, 13 Mar 2013 07:01:45 -0700 (PDT) Ken wrote: > I would like to write a tex/latex file with django tags in it. Load it > with the template loader and render it with a context. The problem is > that my tex/latex file has quite a few '{%' in them. They are > conventional

Re: Problems install/download Django 1.5

2013-03-13 Thread Shawn Milochik
Delete all your .pyc files in your virtualenv. find /path/to/virtualenv -name '*.pyc' -exec rm -f {} \; If that doesn't fix it, manually delete all Django folders from your virtualenv. Go to the "lib/python2.7/site-packages/" folder in your virtualenv and look around. -- You received

Re: Problems install/download Django 1.5

2013-03-13 Thread breg
Oops, the *pip install* ends with success, and *django.VERSION* yields 1.5.0 - but after putting a typo into settings.py, the error handler says (in the browser): Django Version: 1.4.1 Seems I have some kind of mix between 1.4.1 and 1.5 running? On Wednesday, March 13, 2013 3:07:33 PM UTC+1,

Re: django templates and tex/latex

2013-03-13 Thread Tom Evans
On Wed, Mar 13, 2013 at 2:43 PM, Tom Evans wrote: > On Wed, Mar 13, 2013 at 2:01 PM, Ken wrote: >> I would like to write a tex/latex file with django tags in it. Load it with >> the template loader and render it with a context. The problem is that my >>

Re: django templates and tex/latex

2013-03-13 Thread Tom Evans
On Wed, Mar 13, 2013 at 2:01 PM, Ken wrote: > I would like to write a tex/latex file with django tags in it. Load it with > the template loader and render it with a context. The problem is that my > tex/latex file has quite a few '{%' in them. They are conventional in TeX > for

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread Tom Evans
On Wed, Mar 13, 2013 at 1:33 PM, VVilku wrote: > Hello, > > I have problem with: > > Reverse for 'django.contrib.auth.views.login' with arguments '()' and > keyword arguments '{}' not found. > > > Request Method: GET > Request URL:

Re: error

2013-03-13 Thread C. Kirby
It looks to be an issue with your facebook api "site domain" settings. This stackoverflow question looks to answer your troubles: http://stackoverflow.com/questions/7184632/given-url-is-not-allowed-by-the-application-configuration On Wednesday, March 13, 2013 5:21:55 AM UTC-5, Avnesh Shakya

Re: Problems install/download Django 1.5

2013-03-13 Thread breg
Works fine, including pip automatically deinstalling Dj 1.4.1 - thanks! On Wednesday, March 13, 2013 12:04:29 AM UTC+1, Shawn Milochik wrote: > > You can just download the tarball and "pip install filename." > -- You received this message because you are subscribed to the Google Groups

django templates and tex/latex

2013-03-13 Thread Ken
I would like to write a tex/latex file with django tags in it. Load it with the template loader and render it with a context. The problem is that my tex/latex file has quite a few '{%' in them. They are conventional in TeX for writing readable macros and are used to escape the newline. I

Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread VVilku
Hello, I have problem with: Reverse for 'django.contrib.auth.views.login' with arguments '()' and keyword arguments '{}' not found. Request Method: GET Request URL: http://www.django-phpbb.pl:8000/blog/accounts/login/ Django Version: 1.5 Exception Type: NoReverseMatch Exception

Re: How can use the prepare method?

2013-03-13 Thread Andre Lopes
Sorry, I've forgot to mention that this is related with Haystack. On Wed, Mar 13, 2013 at 1:16 PM, Andre Lopes wrote: > Hi, > > I'm trying to use the prepare method on the index to loop a related > model. But I just can't get it to the "Text" field of the index. > >

How can use the prepare method?

2013-03-13 Thread Andre Lopes
Hi, I'm trying to use the prepare method on the index to loop a related model. But I just can't get it to the "Text" field of the index. Here is the code: http://dpaste.org/c3b1z/ I'm doing somethinf wrong? Best Regards, -- You received this message because you are subscribed to the Google

Re: Looking for a simple newsletter app

2013-03-13 Thread frocco
Thank you, Getting a 404 on https://github.com/Fantomas42/emencia-django-newsletter On Wednesday, March 13, 2013 8:37:37 AM UTC-4, psjinx wrote: > > Hey, > > Have a look at https://www.djangopackages.com/grids/g/newsletter/. > > I have used emencia django newsletter previously ( >

Re: Looking for a simple newsletter app

2013-03-13 Thread Pankaj Singh
Hey, Have a look at https://www.djangopackages.com/grids/g/newsletter/. I have used emencia django newsletter previously (http://vimeo.com/16793999 ). Sincerely, Pankaj Singh http://about.me/psjinx On Wed, Mar 13, 2013 at 6:00 PM, frocco wrote: > Hello, > > Does anyone

Looking for a simple newsletter app

2013-03-13 Thread frocco
Hello, Does anyone know of a simple newsletter app I can add to my website? 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

Re: Installing current Django on current Debian with current Python

2013-03-13 Thread Shawn Milochik
On Wed, Mar 13, 2013 at 6:08 AM, wrote: > > Question remains how to get current releases of Debian, Python and Django > running together. > As I said in the earlier e-mail, use virtualenv: https://pypi.python.org/pypi/virtualenv -- You received this message because you are

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Frank Bieniek
Hi Pratik, we have glued something together for openid. git+git://github.com/openid/python-openid.git@7d65da5987 django-tastypie django-guardian hg+http://bitbucket.org/jezdez/django_openid_provider/@746ab34a974a django-social-auth oauth2 # iptools/netaddress tools for the api access based on ip

error

2013-03-13 Thread Avnesh Shakya
I have set facebook button for login through facebook on my site, but when i m clicking on that button, it's showing this error, i m unable to find,pleaze help me... I m using 127.0.0.1:8000 as domain name. Error An error occurred. Please try again later. API Error Code: 191 API Error

Re: how do I run a django script from command line or Pycharm?

2013-03-13 Thread frocco
Thank you, I am going to try the extensions first. Regards, Frank -- 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.

Re: Installing current Django on current Debian with current Python

2013-03-13 Thread breg
Don't understand your dramatic words, of course after purging all depending packages and running again: *aptitude install libapache2-mod-wsgi* everything was installed and worked as before, including python 2.6. That's what a package system is made for, and why I chose debian in the first place.

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Pratik Mandrekar
Thanks for reminding about OAuth2. The API use case I'm currently dealing with includes authenticating my own clients with my server, not third party apps. Hence Oauth2 seems a bit weird here in terms of usability since it will ask user for permission to access the backend service when they visit

Re: how do I run a django script from command line or Pycharm?

2013-03-13 Thread Tom Evans
On Wed, Mar 13, 2013 at 12:42 AM, frocco wrote: > I want to run the code below in a file called migration.py > 3 options: 1) Setup the django environment manually in your scripts:

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Alec Taylor
NO! - THERE IS RESTFUL METHOD OF AUTHENTICATION! Use OAuth2. RFC6749. There are a bunch of server implementations for Django. Use one of them. On Wed, Mar 13, 2013 at 8:06 PM, Pratik Mandrekar wrote: > Thank you for the response! > > As Nick & Jani have pointed out,

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Pratik Mandrekar
Thank you for the response! As Nick & Jani have pointed out, I figured out that there is no RESTFul way for authentication. Neither is there one good way all clients could access the api i.e Browsers can use Session Based Authentication while Mobile clients are better of using API based/digest

Re: Editing the RSS in the Django community feeds

2013-03-13 Thread Shabda Raaj
Hi Guys, Updating feedburner actually pulled in a lot of old entries in the community feed. I am not sure why. My apologies for pushing this to the feed. Hopefully the feed will pick up only the new entries from now on. On Mar 12, 7:44 pm, Shabda Raaj wrote: > Hi Russel, > >

Re: Asking for opinion about an Agile Web Framework Comparison

2013-03-13 Thread Alexey Kinyov
Hola David! :) I appreciate your attempt and systematic approach :) It might be interesting. I write web-services using Python and Django since 2008, before that I worked for some projects in PHP/WordPress/Drupal (less then 1 year exp.), I've programmed several games in Flash/AS3 (about 3 years