default filtering model admin (crud) using user obj attribute

2013-02-27 Thread Bino Oetomo
Dear All.. Currently I have custom authentication backend, This backend return user-object with additional attributes START Python 2.7.3 (default, Aug 1 2012, 05:16:07) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsol

Re: Announcement: django-quickview 0.3 - putting the nitro in rapid web development

2013-02-27 Thread Bino Oetomo
On Feb 28, 2:39 am, Thomas Weholt wrote: > > Documentation and tutorial > athttps://bitbucket.org/weholt/django-quickview/src/fde97a0a0befaeda0ab... > for details. > Some how I failed to install . The pip log pasted at http://pastebin.com/ZNcc8CuH Sincerely -bino- -- You received this messag

Need to get a distinct category list from many to many

2013-02-27 Thread frocco
Hello, I Have a product table that has a many to many relation to a category table. When I query the products, I want to display a unique list of the categories associated with the product query. product table product_id categories = models.ManyToManyField(Category, related_name="cat") categor

Re: manage.py and django-admin.py help

2013-02-27 Thread Clientkill
this is the most confusing process I've ever done. I wish the django IRC channel was open On Wednesday, 27 February 2013 17:27:01 UTC-5, Clientkill wrote: > > Can someone tell me why, even after trying everything, I can't open either > manage.py or django-admin.py? I have apt-get installed djang

Re: manage.py and django-admin.py help

2013-02-27 Thread Mike Dewhirst
On 28/02/2013 11:02am, Clientkill wrote: It appears that Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. I did a google search on this, but it reared no valuable results. Can anyone help? Your wsgi file (the server's entry-point for the site) needs

Re: manage.py and django-admin.py help

2013-02-27 Thread Clientkill
It appears that Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. I did a google search on this, but it reared no valuable results. Can anyone help? On Wednesday, 27 February 2013 17:27:01 UTC-5, Clientkill wrote: > > Can someone tell me why, even af

Re: manage.py and django-admin.py help

2013-02-27 Thread Clientkill
Thank you so much! On Wednesday, 27 February 2013 17:36:15 UTC-5, Karen Tracey wrote: > > On Wed, Feb 27, 2013 at 5:27 PM, Clientkill > > wrote: > >> Can someone tell me why, even after trying everything, I can't open >> either manage.py or django-admin.py? I have apt-get installed django and >

Re: Django IRC & sqlite3 .schema

2013-02-27 Thread Dorian Kiss
Cheers. I actually worked out the search function after I posted the question and found your answer to the IRC question somewhere else. I looked everywhere for the search function except the giant search bar at the top of the screen =D However, whilst I've now registered with NickServ, I still

Re: I need a form that allows users to select from a list of choices, or add a new choice.

2013-02-27 Thread Rainy
On Wednesday, February 27, 2013 11:28:50 AM UTC-5, Mark London wrote: > > I need a widget or a method that allows users to select items from a list > of choices, or add a new choice. Someone on stackoverflow asked the same > question, and got a kludgy answer: > > > http://stackoverflow.com/q

Re: manage.py and django-admin.py help

2013-02-27 Thread Karen Tracey
On Wed, Feb 27, 2013 at 5:27 PM, Clientkill wrote: > Can someone tell me why, even after trying everything, I can't open either > manage.py or django-admin.py? I have apt-get installed django and its > registration package, and calling manage.py or django-admin.py returns: > manage.py: command no

blank and null with Oracle

2013-02-27 Thread Skylar Saveland
Some odd behavior with Oracle involving blank and null. blank is True on this field: my_auto = models.AutoField(blank=False, null=False, primary_key=True) null is True on this field: uncles = models.ManyToManyField(Uncle, blank=False, null=False) null is True on this field: photo = models.Image

manage.py and django-admin.py help

2013-02-27 Thread Clientkill
Can someone tell me why, even after trying everything, I can't open either manage.py or django-admin.py? I have apt-get installed django and its registration package, and calling manage.py or django-admin.py returns: manage.py: command not found -- You received this message because you are subs

Re: Django Shopping Cart

2013-02-27 Thread Marc Aymerich
On Wed, Feb 27, 2013 at 10:02 PM, vijay shanker wrote: > hey, i want to write a shopping cart app, please provide some inputs, > useful information, suggestions etc for doing it right . > thanks > have you looked at django-oscar? -- Marc -- You received this message because you are subscrib

Re: 1.5 custom user model: Add User with default UserCreationForm results in "no such table: auth_user"

2013-02-27 Thread Eric Psalmond
"UserCreationForm Depends on the User model. Must be re-written for any custom user model." I swore I R

Django Shopping Cart

2013-02-27 Thread vijay shanker
hey, i want to write a shopping cart app, please provide some inputs, useful information, suggestions etc for doing it right . 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

Re: ANNOUNCE: Django 1.5 released

2013-02-27 Thread frocco
Congratulation!! Although I am fairly new to Django (PHP website), I really enjoy using it. I appreciate all the hard work and look forward to a long relationship. Everyone on the form here has been great and have helped me understand how Django works. --Django convert. -- You received this m

Re: ANNOUNCE: Django 1.5 released

2013-02-27 Thread Hermann Kass
thank you; i'm happy because i wouldn't fight with Postgresql and Postgis compilation 2013/2/27, Shawn Milochik : > Ahh, the release of a new version of Django. Always a fantastic time > to support the Django Software Foundation: > > https://www.djangoproject.com/foundation/donate/ > > The money g

Re: 1.5 custom user model: Add User with default UserCreationForm results in "no such table: auth_user"

2013-02-27 Thread carlos
check the docu https://docs.djangoproject.com/en/1.5/topics/auth/customizing/#custom-users-and-the-built-in-auth-forms Cheers On Wed, Feb 27, 2013 at 1:15 PM, Eric Psalmond wrote: > Hi everyone, > > After a bit of searching I didn't find an answer to this issue, so I > thought I'd post here an

Announcement: django-quickview 0.3 - putting the nitro in rapid web development

2013-02-27 Thread Thomas Weholt
pypi : https://pypi.python.org/pypi/django-quickview/ Source at https://bitbucket.org/weholt/django-quickview Documentation and tutorial at https://bitbucket.org/weholt/django-quickview/src/fde97a0a0befaeda0ab2317035f8e7cd9c311511/docs/basic.md?at=default for details. Bring on the flames ;-) --

1.5 custom user model: Add User with default UserCreationForm results in "no such table: auth_user"

2013-02-27 Thread Eric Psalmond
Hi everyone, After a bit of searching I didn't find an answer to this issue, so I thought I'd post here and see what the response was like. A little background: I've been working with other frameworks and packages for years - from Websphere long ago to RoR and M$-MVC more recently. After usin

Re: StreamingHttpResponse into a Template

2013-02-27 Thread Masklinn
On 2013-02-27, at 18:47 , Stefano Tranquillini wrote: > Hi, thank you for the answer. > basically what i've to do is to iterate the same operation for a bunch of > user (e.g. send an email). > i've around 200 users and each mail takes 2 seconds. > so 400 seconds in total and the server goes in tim

Re: Best practices for 1.5 configurable user model and profiles

2013-02-27 Thread Shawn Milochik
On Wed, Feb 27, 2013 at 12:46 PM, Doug wrote: > Thanks Shawn. So what is your take? Only authentication data in User? > Separate Profile model and app? I think Russell hit the main points well. Make User only what it needs to be for identification/authentication, and put other stuff elsewhere, un

Re: Best practices for 1.5 configurable user model and profiles

2013-02-27 Thread Doug
Thanks Shawn. So what is your take? Only authentication data in User? Separate Profile model and app? On Wednesday, February 27, 2013 12:07:55 PM UTC-5, Shawn Milochik wrote: > > Do a search on the history of the django-developers mailing list. > There are many reasons, and they were discussed

Re: Problem UserAdmin with GenericStackedInline in Django 1.5c2

2013-02-27 Thread carlos
Hi maybe you forget this # Re-register UserAdminadmin.site.unregister(User)admin.site.register(User, UserAdmin) https://docs.djangoproject.com/en/1.5/topics/auth/customizing/#extending-the-existing-user-model On Wed, Feb 27, 2013 at 2:35 AM, Witold Greń wrote: > Hi, I have a problem UserAdmi

Re: StreamingHttpResponse into a Template

2013-02-27 Thread Masklinn
On 2013-02-27, at 18:23 , Stefano Tranquillini wrote: > Django 1.5 is just came out and it ships the StreamingHttpResponse. > > What i want to do is to print the output of a stream response into a > template I'm pretty sure that doesn't make sense: the template has to be rendered, and I'm prett

StreamingHttpResponse into a Template

2013-02-27 Thread Stefano Tranquillini
Django 1.5 is just came out and it ships the StreamingHttpResponse. What i want to do is to print the output of a stream response into a template, having for example a bar that grows based on the streamed data (something similar to a loading bar). so far i've found a solution that basically

Re: Best practices for 1.5 configurable user model and profiles

2013-02-27 Thread Shawn Milochik
Do a search on the history of the django-developers mailing list. There are many reasons, and they were discussed for literally years. Some of the main ones that come to mind: first_name/last_name is US-centric. e-mail address field length was too short. e-mail address could not be used as the us

Re: Best practices for 1.5 configurable user model and profiles

2013-02-27 Thread Doug
Russ, Thanks so much for your reply. I guess the confusion is around the subjectivity of what is considered "identifying the user". In my case, the additional data is not application related, it is project related and would be part of a "Profile" that is used throughout the site across many ap

Re: ANNOUNCE: Django 1.5 released

2013-02-27 Thread Shawn Milochik
Ahh, the release of a new version of Django. Always a fantastic time to support the Django Software Foundation: https://www.djangoproject.com/foundation/donate/ The money goes to support sprints and other things -- see the donate page for more details. -- You received this message because you a

Re: ANNOUNCE: Django 1.5 released

2013-02-27 Thread Alioune Dia
Thank for good job you have done , we are Linux user group and django-hacker in Senegal and we are happy to see the new release of django with support for python3 .Great work! --Ad 2013/2/26 James Bennett : > Yup, it's finally here! > > * Announcement blog post here: > https://www.djangoproject.

Re: ANNOUNCE: Django 1.5 released

2013-02-27 Thread victoria
On Tue, Feb 26, 2013 at 8:44 PM, James Bennett wrote: > Yup, it's finally here! > > * Announcement blog post here: > https://www.djangoproject.com/weblog/2013/feb/26/15/ > * Release notes here: https://docs.djangoproject.com/en/1.5/releases/1.5/ > * Download it here: https://www.djangoproject.com/

Re: I need a form that allows users to select from a list of choices, or add a new choice.

2013-02-27 Thread Shawn Milochik
Remember, it's just Python. In the end, all you need is for the 'choices' of the field (which is just an iterable) to contain the value after the form's __init__ so that the form won't consider the value invalid. You could: 1. Have a pop-up form that allows the user to submit the new choice via A

I need a form that allows users to select from a list of choices, or add a new choice.

2013-02-27 Thread Mark London
I need a widget or a method that allows users to select items from a list of choices, or add a new choice. Someone on stackoverflow asked the same question, and got a kludgy answer: http://stackoverflow.com/questions/14802167/how-do-i-make-a-django-choicefield-accept-both-preset-choices-and-th

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Bill Freeman
Yes. Tie it to the session. Is the need for random IDs an attempt to keep users from figuring out how to re-answer questions by composing URLs themselves? Just record which questions they have answered, and ignore attempts to answer them again. Or are random IDs some PHB's beloved mechanism that

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Maria
Unfortunately, the ID is not unique, as every ID will be used 3 times in each session. Is it still possible to use JavaScript as a solution? Am Mittwoch, 27. Februar 2013 16:44:45 UTC+1 schrieb ke1g: > Maria, > > If the id is truely unique (is never used again for another version of the > poll)

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Roberto López López
Hi again Maria, Try to combine the solutions proposed in those two pages: http://stackoverflow.com/questions/2133166/loop-timer-in-javascript#2133217 http://stackoverflow.com/questions/948227/should-i-use-window-navigate-or-document-location-in-javascript#948242 That should be more than enough.

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Bill Freeman
Maria, If the id is truely unique (is never used again for another version of the poll), then the fact that the browser visits the URL containing the ID gives you a chance to note the missed question. Separately, you may want to look into Django's session stuff, since you then need not encode ans

Re: password encryption

2013-02-27 Thread Tomas Neme
and here it presses an even stronger case about NOT using bcrypt but something even slower http://www.unlimitednovelty.com/2012/03/dont-use-bcrypt.html On Wed, Feb 27, 2013 at 12:33 PM, Tomas Neme wrote: > I just ran into this. It presses a pretty strong case... > > http://codahale.com/how-to-sa

password encryption

2013-02-27 Thread Tomas Neme
I just ran into this. It presses a pretty strong case... http://codahale.com/how-to-safely-store-a-password/ -- "The whole of Japan is pure invention. There is no such country, there are no such people" --Oscar Wilde |_|0|_| |_|_|0| |0|0|0| (\__/) (='.'=)This is Bunny. Copy and paste bunny (")_

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Roberto López López
Maria, that code (your "after three seconds") has to be run on the client, so django has nothing to do with it. As Bill suggests, you should try some javascript here. On 02/27/2013 04:10 PM, Maria wrote: > _like this:_ > if user clicks button > save answer > return HttpResponseRedirect ('/p

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Maria
Hello Alan, I'd love to learn something new but unfortunately I dont have the time since my project is due very soon. Is there no easy or short way to get this time variable into my code? Also, how do I "look for everything that happens on the client-side"? I am sorry for my incompetence.. :D

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Maria
*like this:* if user clicks button save answer return HttpResponseRedirect ('/polls/'+str(sid)) else *after 3 seconds* save this page for later return HttpResponseRedirect ('/polls/'+str(sid)) -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Alan Plum
Hi Maria, as Bill explained, you should be looking at JavaScript for everything that happens on the client-side (i.e. after the page has left the server). However you should consider shifting more of the logic to the client-side in this case. For time-based actions with such a short duration

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Maria
Thank you Bill! I dont know if I got you but if I do it with JavaScript I can't save the ID of the "missed" page, can I? Because I want to save the page where no button was clicked to show it again at the end of the poll, so that the user gets another chance to answer this question. Am Mittwo

Re: Redirect and execute after 2 seconds?

2013-02-27 Thread Bill Freeman
You must do this using JavaScript in the user's browser. Look for time based events in JavaScript, including how to cancel them if a button is pressed. The button should still probably submit to the Django server for recording, but you could simply record the fact that the correct (pseudo-)random

Redirect and execute after 2 seconds?

2013-02-27 Thread Maria
Hi everyone! :) I am working on a project for my studies, it is a web poll where you can only answer yes or no by clicking on buttons. If the user clicked on one button, the result will be saved in a text-file and the user will be redirected to another page with a random id: > return HttpR

Re: pin matching query does not exist

2013-02-27 Thread Bill Freeman
A good place to start would be to fix the fact that, if the form is not valid on a post, the view returns None. Bill On Wed, Feb 27, 2013 at 4:53 AM, okorie Emmanuel wrote: > hi > > Am designing a form from django model, i have store some information in > the database already, each time i enter

Re: Begginer

2013-02-27 Thread Akshay Ramesh
Thank you Abhijeet :) On Wed, Feb 27, 2013 at 6:00 PM, abhijeet shete wrote: > Hi Akshay, > > Django's online documentation is very good. > Here is the link for documentation. https://docs.djangoproject.com/en/1.4/ > > > > On Wed, Feb 27, 2013 at 1:59 PM, Akshay Ramesh > wrote: > >> Hi I am

Re: Begginer

2013-02-27 Thread Roberto López López
Try https://docs.djangoproject.com/en/1.5/intro/ On 02/27/2013 09:29 AM, Akshay Ramesh wrote: > Hi I am new to Djnago and would like to have some help from you. Where > should I start from ? > -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: Begginer

2013-02-27 Thread abhijeet shete
Hi Akshay, Django's online documentation is very good. Here is the link for documentation. https://docs.djangoproject.com/en/1.4/ On Wed, Feb 27, 2013 at 1:59 PM, Akshay Ramesh wrote: > Hi I am new to Djnago and would like to have some help from you. Where > should I start from ? > Cheer

Re: ANNOUNCE: Django 1.5 released

2013-02-27 Thread Mário Antunes
Congratulations! On Tuesday, February 26, 2013 7:44:27 PM UTC, James Bennett wrote: > > Yup, it's finally here! > > * Announcement blog post here: > https://www.djangoproject.com/weblog/2013/feb/26/15/ > * Release notes here: https://docs.djangoproject.com/en/1.5/releases/1.5/ > * Download it

pin matching query does not exist

2013-02-27 Thread okorie Emmanuel
hi Am designing a form from django model, i have store some information in the database already, each time i enter a correct values am redirected to another page,but when ever an empty field is submitted it crash with this message " pin matching query does not exist" also when wrong query is e

Problem UserAdmin with GenericStackedInline in Django 1.5c2

2013-02-27 Thread Witold Greń
Hi, I have a problem UserAdmin with GenericStackedInline in Django 1.5c2. #model.py from django.contrib.auth.models import BaseUserManager, AbstractBaseUser, PermissionsMixin from django.conf import settings #etc... class Addresses(models.Model): """ Dane adresowe. """ na

Begginer

2013-02-27 Thread Akshay Ramesh
Hi I am new to Djnago and would like to have some help from you. Where should I start from ? -- 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+unsubsc

Re: ANNOUNCE: Django 1.5 released

2013-02-27 Thread Akshay Ramesh
Its really great to now about that Hop it wil hav bettr features . On Tue, Feb 26, 2013 at 11:05 PM, Thomas Weholt wrote: > I've been using 1.5rc2 for a while now with no problems so getting a > final of 1.5 is great news. I especially like the support for Python 3 > since it removes all

DjangoCon regular sales starts today at 4pm CET!

2013-02-27 Thread Ola Sitarska
Hi everyone! I'm Ola, one of the main organizers of upcoming DjangoCon Europe conference. I just wanted to let you know that we're starting to sell regular tickets to the conference today at 4pm CET prompt! Tickets are available here: http://tickets.djangocon.eu/ We have also recently announc

Re: Django 1.5 & Python 3 - porting packages to Python3

2013-02-27 Thread Tom Christie
Hi Thomas, There's movement on getting Py3k compatibility into pillow. See this, and associated tickets: https://github.com/python-imaging/Pillow/issues/61 > Are there any focus in the community on getting packages ready for python3? Sure, I'm seeing several projects recently updated or active

Re: [feincms] [ANN]: FeinCMS v1.7

2013-02-27 Thread Matthias Kestenholz
On Wed, Feb 27, 2013 at 8:16 AM, Andi Albrecht wrote: > Hi Matthias, > > first of all thanks for the new release and all the work (this goes to > all developers of course!). > > On Tue, Feb 26, 2013 at 10:00 PM, Matthias Kestenholz > wrote: > > > > > > Compatibility with Django and other apps > >