standalone server

2011-02-08 Thread rahul jain
Hi Guys, I would like to create a standalone server using django environment which accepts/receive inputs through socket connections. After that some processing and then updating the database. I created one python server and set the environment variable but I figured out that as soon as

Re: How should I properly impliment HTTP(S) auth (REMOTE_AUTH) in django?

2011-02-08 Thread Eric Chamberlain
I wouldn't consider using a UUID as multi-factor authentication. All our API traffic is over https. We use the basic authentication included with django-piston. Any reason why you want to exchange username and password for an API Key? Why not just authenticate each request with username and

Re: No POST response when using checkbox form

2011-02-08 Thread Ethan Yandow
How bad of an Idea is it to not use Django forms? I feel like Django forms are kinda a pain On Fri, Feb 4, 2011 at 12:06 PM, Tom Evans wrote: > On Fri, Feb 4, 2011 at 4:20 PM, Shawn Milochik wrote: > > Here's the main piece: > >

Re: Django login() and authenticate() functions

2011-02-08 Thread Shawn Milochik
I think the documentation on creating your own authorization backend is what you need. http://docs.djangoproject.com/en/1.2/topics/auth/#writing-an-authentication-backend It's very simple to do, and you can do it however you want. For example, it would take you about five minutes to write one

Re: Looking for IDE + FTP

2011-02-08 Thread broz
I've been curious about workflow with Django sites (or other frameworks for that matter). I LOVE being able to remote edit. I can see where this request is coming from. If I want to edit a file on the server, I just open it up on my local machine, edit, and save. The SFTP transfer all happens

ANN: Security releases issued

2011-02-08 Thread James Bennett
Tonight the Django team has released updated versions of Django 1.2 and Django 1.1 to correct multiple security issues reported to us. * Details in the blog post here: http://www.djangoproject.com/weblog/2011/feb/08/security/ * Download updated versions of Django here:

Re: How should I properly impliment HTTP(S) auth (REMOTE_AUTH) in django?

2011-02-08 Thread ivan sugiarto
greetings, a year ago I had the same problem and did not found any solution, after that i started to build my own HTTP(S) single sign on using PHP (but recently i ported on the Django) with the work flow like this login : clients (consumer) check the credential server using hidden iframe server

Django login() and authenticate() functions

2011-02-08 Thread Ethan Yandow
How can I use these functions to login and authenticate with my own database? I was trying to look for it in the documentation but it doesn't seem to have the answer. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: How To Populate A Dropdown List

2011-02-08 Thread Brian Neal
On Feb 8, 10:03 am, hank23 wrote: > I have coded a form which will display some data in a dropdown > selection box. The data is being populated from a a queryset that I > have setup in the form's code. However the entries in the dropdown > only display as objects of the

Re: pip django-registration fork install

2011-02-08 Thread Álex González
I've solved it creating a new virtualenv, if anybody knows the error, please tell me! On Wed, Feb 9, 2011 at 02:46, Álex González wrote: > Hi guys! I receive a strange errror when I try to get my pip pacakges: > > (lukkom_env)alex@big:~/lukkom_env/lukkom$ pip freeze|grep

pip django-registration fork install

2011-02-08 Thread Álex González
Hi guys! I receive a strange errror when I try to get my pip pacakges: (lukkom_env)alex@big:~/lukkom_env/lukkom$ pip freeze|grep registration -e hg+Not trusting file /home/alex/lukkom_env/lib/src/django-registration/.hg/hgrc from untrusted user root, group root Not trusting file

Re: E-commerce site

2011-02-08 Thread Kenneth Gonsalves
On Tue, 2011-02-08 at 05:53 -0800, Arun K.Rajeevan wrote: > The one e-commerce solution I found and looks promising is Stachmo > http://www.satchmoproject.com/ > which is django based. go for it - it is developed by people with a long history of developing e-commerce sites in a variety of

Fabfile for a multi-server project

2011-02-08 Thread mack the finger
I'm working on building a fabric deployment for a project with a fairly complex environment. There will be 2+ app servers running django code, a few database servers running in some kind of master/ slave configuration, a rabbitmq server, a mail server, some load balancers, etc. There will be over

How should I properly impliment HTTP(S) auth (REMOTE_AUTH) in django?

2011-02-08 Thread Sean W
This is a re-post of my stack overflow question here http://stackoverflow.com/questions/4939908/how-should-i-properly-impliment-https-auth-remote-auth-in-django Hi, I am in the planning phase a new project. I want to be able to control multiple relays from my android powered phone over the

Re: Looking for IDE + FTP

2011-02-08 Thread Łukasz Rekucki
On 9 February 2011 02:03, Karen McNeil wrote: > So... that's a no, then? > > I mean, about the question I asked.  You know, the "is there an IDE + > FTP program" question? Quoting http://www.aptana.org/products/studio2: File Transfer & Synchronization Support for

Re: Looking for IDE + FTP

2011-02-08 Thread Karen McNeil
So... that's a no, then? I mean, about the question I asked. You know, the "is there an IDE + FTP program" question? Although, to assuage everyone's concerns: -- I do have a development site that I use to test any significant changes before I put them on the live site. The point that I was

Re: Looking for IDE + FTP

2011-02-08 Thread Karen McNeil
So... that's a no, then? I mean, about the question I asked. You know, the "is there an IDE + FTP program" question? Although, to assuage everyone's concerns: - I do have a development site that I use to test any significant changes before I put them on the live site. The point that I

Re: Looking for IDE + FTP

2011-02-08 Thread Rainy
On Feb 8, 3:30 pm, Karen McNeil wrote: > I have three Django sites that I've been working on recently and I've > been doing most of the development work in Dreamweaver.  I don't use > any of the wysiwyg features (or, pretty much, any of the Dreamweaver > program

Re: Looking for IDE + FTP

2011-02-08 Thread Eric Chamberlain
On Feb 8, 2011, at 12:30 PM, Karen McNeil wrote: > I have three Django sites that I've been working on recently and I've > been doing most of the development work in Dreamweaver. I don't use > any of the wysiwyg features (or, pretty much, any of the Dreamweaver > program features), but I like

Re: Slow performance with Django when connected to Oracle

2011-02-08 Thread Ian
On Feb 8, 3:15 pm, dw314159 wrote: > I am observing the same behavior in the Django shell. Here the actual > query runtime is about the same between Oracle and PostgreSQL back- > ends, but the total turnaround time is about 18 times longer with > Oracle. I believe the

Re: Class-based views & authentication

2011-02-08 Thread Russell Keith-Magee
On Tue, Feb 8, 2011 at 11:34 PM, Pascal Germroth wrote: > Hi, > > I'm new to Django, but since this project will take a while I'm already > using 1.3 alpha since it will probably be released when I'm done… > > As I understand it, the preferred method now are class-based

Re: default header template file

2011-02-08 Thread Shawn Milochik
The reason you should use the toolbar is that it will help you instantly determine which templates are being used, so you know which ones to edit. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: How To Populate A Dropdown List

2011-02-08 Thread SimpleDimple
I am new to django so not sure if I am of much help but let me try the key is usually the ID field of your table. for the value to display add a method __str___ in your model, here is sample code from one of my project read more on ___str___ and ___unicode___ methods class

Re: Filtering List based on a custom dropdown

2011-02-08 Thread SimpleDimple
can anyone help or point me to some simple django based app that I can study to understand more ? On Feb 8, 2:07 am, SimpleDimple wrote: > I can live w/o AJAX for now to keep it simple. > > What I am not clear is on how to do the postback from javascript ?  I > mean on

Re: default header template file

2011-02-08 Thread SimpleDimple
Thanks for the link but actually I am not looking for debugging, I just want to add up my own stuff into the header coming from DBcan you help me in that ? On Feb 8, 2:08 am, Shawn Milochik wrote: > This will help you a lot: > >

Re: Setting session variable at the time of login

2011-02-08 Thread SimpleDimple
Great Pointer - I think this is what I was looking for. On Feb 8, 2:13 am, Shawn Milochik wrote: > 1. You'll have to create your own login view. You can look at Django's > view and just copy it. You can use the built-in authentication and > template and everything, plus

Re: Sorting list view on based on field from joined table

2011-02-08 Thread SimpleDimple
I understand the model part, I am more concerned about 1) how and which event to capture on server side when header is clicked 2) how to know which column's header was clicked Can you please help. On Feb 8, 2:36 am, Aryeh Leib Taurog wrote: > On Feb 7, 10:50 pm,

Re: Getting value from session in ModelForm

2011-02-08 Thread SimpleDimple
I understand what you mean about the scope Thanks for the sample code, very helpful, will try it out and let you know. Thanks, On Feb 8, 2:45 pm, Daniel Roseman wrote: > On Monday, February 7, 2011 8:27:55 PM UTC, SimpleDimple wrote: > > > I am new to Django and

Re: imported tuples/variables don't get translated

2011-02-08 Thread Ivo Brodien
hey Marcos, > Are you doing: from django.utils.translation import ugettext_lazy as _ ? > or: from django.utils.translation import ugettext as _ ? > > The first one shoud work. Indeed I used ugettext instead of ugettext_lazy Thanks! -- You received this message because you are subscribed to

Re: Looking for IDE + FTP

2011-02-08 Thread Rodrigo
If you work in Windows I would recommend PyScripter. It is lightweight and the fastest IDE I've tested so far (and I've used others like PyDev, Wing or NetBeans) It also features code completion, debugging, etc. I've used it to debug several Django applications and it worked like a charm. --

Re: Looking for IDE + FTP

2011-02-08 Thread Brian Bouterse
+1 for not editing code and uploading it. I recommend vim or gVim Brian On Tue, Feb 8, 2011 at 4:57 PM, Austin Govella wrote: > I use Textmate ($55?) for editing. Great color coding for html, ruby, > php, javascript, css, and python. :-) > > I use Terminal (free) for

Re: imported tuples/variables don't get translated

2011-02-08 Thread Marcos Moyano
Are you doing: from django.utils.translation import ugettext_lazy as _ ? or: from django.utils.translation import ugettext as _ ? The first one shoud work. Rgds, Marcos On Tue, Feb 8, 2011 at 7:11 PM, Ivo Brodien wrote: > If I import some tuple which is used for choices in a

imported tuples/variables don't get translated

2011-02-08 Thread Ivo Brodien
If I import some tuple which is used for choices in a forms.RadioSelect widget, then the choices don’t get translated models.py: BOOL_CHOICES = ((True, _(u'Yes')), (False, _(u'No'))) forms.py: from models import BOOL_CHOICES 1) does work an translates the choices

Re: Looking for IDE + FTP

2011-02-08 Thread Austin Govella
I use Textmate ($55?) for editing. Great color coding for html, ruby, php, javascript, css, and python. :-) I use Terminal (free) for Subversion and Git (version control). I'd highly recommend Git. It is easier to use and les of a hassle than Subversion. I use Cyberduck (free) for FTP and Mac's

testing: running something after the fixtures have been loaded

2011-02-08 Thread Bram de Jong
Hi, we want to write some testing code, but our site uses Solr for indexing. The test cases we are running are testing -among other things- the searching. problem is: we need to run some additional code to index the stuf the fixtures just inserted into the DB. as far as I read it the django

Re: Calling out for Help!

2011-02-08 Thread Chris Hannam
I have found http://stackoverflow.com/questions/tagged/django to be an awesome resource. CH -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group,

Re: Looking for IDE + FTP

2011-02-08 Thread Marcos Moyano
On Tue, Feb 8, 2011 at 5:43 PM, Daniel Roseman wrote: > On Tuesday, February 8, 2011 8:30:54 PM UTC, Karen McNeil wrote: >> >> I have three Django sites that I've been working on recently and I've >> been doing most of the development work in Dreamweaver. I don't use >>

Re: Looking for IDE + FTP

2011-02-08 Thread Daniel Roseman
On Tuesday, February 8, 2011 8:30:54 PM UTC, Karen McNeil wrote: > > I have three Django sites that I've been working on recently and I've > been doing most of the development work in Dreamweaver. I don't use > any of the wysiwyg features (or, pretty much, any of the Dreamweaver > program

Re: Looking for IDE + FTP

2011-02-08 Thread Sandro Dutra
I'm using PyCharm... 2011/2/8 Karen McNeil > I have three Django sites that I've been working on recently and I've > been doing most of the development work in Dreamweaver. I don't use > any of the wysiwyg features (or, pretty much, any of the Dreamweaver > program

Re: Looking for IDE + FTP

2011-02-08 Thread Chris Hannam
I really enjoy Wing IDE, it has an excellent debugger. It won't do your ftp stuff but it will make solving bugs a lot easier. CH -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Looking for IDE + FTP

2011-02-08 Thread galago
I use NetBeans and it's OK :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more

Form Field Default Widgets

2011-02-08 Thread hank23
Is it possible to code something to cause the default widget of a field to not be displayed on a screen and code the desired html element manually instead? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Looking for IDE + FTP

2011-02-08 Thread Karen McNeil
I have three Django sites that I've been working on recently and I've been doing most of the development work in Dreamweaver. I don't use any of the wysiwyg features (or, pretty much, any of the Dreamweaver program features), but I like it because I can do all the the code edits and the FTP

Re: Slow performance with Django when connected to Oracle

2011-02-08 Thread dw314159
Ian, Thank you for the prompt reply! I am observing the same behavior in the Django shell. Here the actual query runtime is about the same between Oracle and PostgreSQL back- ends, but the total turnaround time is about 18 times longer with Oracle. I believe the following code demonstrates this

The correct way to send messages

2011-02-08 Thread Daniele Procida
In the clean() of an admin form I want to give the user some warnings. So this is what I do in the admin - class SomeForm(forms.ModelForm): class Meta: model = SomeModel def clean(self): self.warnings = [] self.warnings.append("Warning: you seem to be confused.")

Re: where is a mistake in radio buttons

2011-02-08 Thread Daniel Roseman
On Tuesday, February 8, 2011 7:18:59 PM UTC, gintare wrote: > > > *.html > > > {% csrf_token %} > > > starts value="rstartsLkIn" > ends TD> > contains value="rcontainsLkIn" checked > equal value="requalLkIn" > > > # >

ModelAdmin.filter_horizontal in class without m2m relation declared

2011-02-08 Thread galago
To precise: I have 2 models: class Job(models.Model): name = models.CharField(max_length=150, unique=True) slug = models.SlugField(max_length=150, unique=True) class JobType(models.Model): name = models.CharField(max_length=150, unique=True) slug = models.SlugField(max_length=150,

where is a mistake in radio buttons

2011-02-08 Thread gintare
*.html {% csrf_token %} starts ends contains equal # views.py rstartsLkIn, rendsLkIn, rcontainsLkIn, requalLkIn = request.POST.get('rstartsLkIn','') , request.POST.get('rendsLkIn','') ,

Re: Calling out for Help!

2011-02-08 Thread Andres Lucena
On Tue, Feb 8, 2011 at 6:11 PM, Tom Evans wrote: > On Tue, Feb 8, 2011 at 5:01 PM, Dev@CB wrote: >> Tom, why are you discouraging me? >> > > My intention was not to discourage you; it was to encourage you to ask > a sensible question in a legible

Specifying Field Data To Display in A DropDown

2011-02-08 Thread hank23
How do I specify which field of data to display in a dropdown box, that is being populated by a queryset, in a form definition? And then also how do I also specify the underlying non-dispalyed key data for each entry in the same dropdown? -- You received this message because you are subscribed

Re: Calling out for Help!

2011-02-08 Thread Tom Evans
On Tue, Feb 8, 2011 at 5:01 PM, Dev@CB wrote: > Tom, why are you discouraging me? > My intention was not to discourage you; it was to encourage you to ask a sensible question in a legible manner. If you take slight at that, then I have no problem with not corresponding

Re: admin users permissions question

2011-02-08 Thread jean polo
On Feb 8, 5:33 pm, Andres Lucena wrote: > On Tue, Feb 8, 2011 at 5:00 PM, jean polo wrote: > > hi > > > I created some User Profile in my app. > > Each user can add some posts and now I'd like one user to be able to > > view/modify only his/her

Re: Calling out for Help!

2011-02-08 Thread Dev@CB
Andres, Thank you for your kind, helpful reply. Heading to lunch now, more django later! Thank you again, Justin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To

Re: Calling out for Help!

2011-02-08 Thread Dev@CB
Tom, why are you discouraging me? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For

Ordering/sort_by from a custom method

2011-02-08 Thread Andres Lucena
Dear Gurus, I've made a custom method for getting the score (from django-voting) for a giving Model: class Link(models.Model): episode = models.ForeignKey("Episode", related_name="links") url = models.CharField(max_length=255, unique=True, db_index=True) def __unicode__(self):

Re: Calling out for Help!

2011-02-08 Thread Tom Evans
On Tue, Feb 8, 2011 at 4:26 PM, Dev@CB wrote: > Hello. I hope someone is maybe having a slow day and can spend a > little time with me. Here's the whole story: Several months ago, our > company started a django project. This project was headed by one man. > Well, as of

Re: Calling out for Help!

2011-02-08 Thread Andres Lucena
On Tue, Feb 8, 2011 at 5:26 PM, Dev@CB wrote: > Hello. I hope someone is maybe having a slow day and can spend a > little time with me. Here's the whole story: Several months ago, our > company started a django project. This project was headed by one man. > Well, as of

Re: admin users permissions question

2011-02-08 Thread Andres Lucena
On Tue, Feb 8, 2011 at 5:00 PM, jean polo wrote: > hi > > I created some User Profile in my app. > Each user can add some posts and now I'd like one user to be able to > view/modify only his/her posts in the admin, and not the posts from > other users. > I have no idea

Calling out for Help!

2011-02-08 Thread Dev@CB
Hello. I hope someone is maybe having a slow day and can spend a little time with me. Here's the whole story: Several months ago, our company started a django project. This project was headed by one man. Well, as of early January, he is no longer with the company. Now, we, the survivors, have the

Problem with 'resolve' in non-root Apache installations

2011-02-08 Thread Rodrigo
Hi. I'm stuck with a problem concerning the 'resolve' and 'reverse' functions. urls.py: urlpatterns = patterns('', (r'^points/', include ('points.urls')), (r^deliveries/, include ('deliveries.urls')) ) points/urls.py urlpatterns = patterns('points.views', (r'^(?P\d+)/$', 'point_dispatch')

Re: error while submitting data in the form django

2011-02-08 Thread Tom Evans
On Tue, Feb 8, 2011 at 3:37 PM, sushanth Reddy wrote: > I am trying to insert data into db it throws below error,can any please fix > this. form.Fields normalize to a python value. That python value must be assignable to the model field you are trying to update. You cannot

How To Populate A Dropdown List

2011-02-08 Thread hank23
I have coded a form which will display some data in a dropdown selection box. The data is being populated from a a queryset that I have setup in the form's code. However the entries in the dropdown only display as objects of the table from which they're being retrieved, and don't display the

admin users permissions question

2011-02-08 Thread jean polo
hi I created some User Profile in my app. Each user can add some posts and now I'd like one user to be able to view/modify only his/her posts in the admin, and not the posts from other users. I have no idea about how to do this. Any hint or link to a tutorial/doc would be very helpful, so far I

error while submitting data in the form django

2011-02-08 Thread sushanth Reddy
I am trying to insert data into db it throws below error,can any please fix this. model.py from django.db import models # Create your models here. class Profile(models.Model): name = models.CharField(max_length=50, primary_key=True) assign = models.CharField(max_length=50) doj

Class-based views & authentication

2011-02-08 Thread Pascal Germroth
Hi, I'm new to Django, but since this project will take a while I'm already using 1.3 alpha since it will probably be released when I'm done… As I understand it, the preferred method now are class-based views. But I seem to be missing some kind of AuthenticationMixin… right now, have to override

Re: E-commerce site

2011-02-08 Thread Arun K.Rajeevan
Well, thank you for plata pointer, I never heard about it. Going to try that. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to

Re: E-commerce site

2011-02-08 Thread Arun K.Rajeevan
By support I only mean the support we usually get from forums, but a bit faster response time. Which I think is expectable over here. Arun.K.R On 8 February 2011 20:47, Shawn Milochik wrote: > Oops, hit 'send' by mistake on that last e-mail. > > As I was saying, Satchmo is

Re: E-commerce site

2011-02-08 Thread Shawn Milochik
Oops, hit 'send' by mistake on that last e-mail. As I was saying, Satchmo is likely the way go to. However, don't expect us to support your paying customers. If you're not competent to support your customers in Django, use another tool. Learn Django and implement a Satchmo store to teach

Re: E-commerce site

2011-02-08 Thread Matthias Kestenholz
On Tue, Feb 8, 2011 at 2:53 PM, Arun K.Rajeevan wrote: > Hi all, > I was a java programmer before I started to code in python. > For the last 1yr I use python and loves it. Great, a warm welcome to you! > I'm new to django, but tried django tutorial and used web2py before

AW: problem with tutorial

2011-02-08 Thread Szabo, Patrick (LNG-VIE)
Youre right...kinda mixed up the version there.. Thanks ! . . . . . . . . . . . . . . . . . . . . . . . . . . Patrick Szabo XSLT-Entwickler LexisNexis Marxergasse 25, 1030 Wien mailto:patrick.sz...@lexisnexis.at Tel.: +43 (1) 534 52 - 1573 Fax: +43 (1) 534 52 - 146 -Ursprüngliche

Re: E-commerce site

2011-02-08 Thread Shawn Milochik
Satchmo is the "big name" in the Django community for online shops. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to

Re: problem with tutorial

2011-02-08 Thread Tom Evans
On Tue, Feb 8, 2011 at 2:43 PM, Szabo, Patrick (LNG-VIE) wrote: >  Hi, > > I startet exploring django today and I'm currently stuck. > Right now I'm doing the 3 part of the tutorial, where it says Design > your URLs. > > I editet the urls.py so it looks like this: > >

Re: Including apps for inherited models in INSTALLED_APPS

2011-02-08 Thread Shawn Milochik
On Tue, Feb 8, 2011 at 9:39 AM, Ian Stokes-Rees wrote: > I'm (reasonably) happy to include base models in INSTALLED_APPS, but > this argument: > > On 2/8/11 4:32 AM, Tom Evans wrote: >> Explicit is better than implicit. If you want models from app 'base' >> installed

Re: Slow performance with Django when connected to Oracle

2011-02-08 Thread Ian
On Feb 7, 9:44 pm, dw314159 wrote: > Django gurus: > > Hello, I am experiencing very slow performance with Django when > connected to an Oracle database. The exact same Django application > runs far faster with PostgreSQL and SQLite, with the same source data > loaded into

problem with tutorial

2011-02-08 Thread Szabo, Patrick (LNG-VIE)
Hi, I startet exploring django today and I'm currently stuck. Right now I'm doing the 3 part of the tutorial, where it says Design your URLs. I editet the urls.py so it looks like this: from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() urlpatterns

E-commerce site

2011-02-08 Thread Arun K.Rajeevan
Hi all, I was a java programmer before I started to code in python. For the last 1yr I use python and loves it. I'm new to django, but tried django tutorial and used web2py before for a few websites. Now, I had a bid for an e-commerce site. I don't want to go for magneto or the like, because I

Re: Including apps for inherited models in INSTALLED_APPS

2011-02-08 Thread Ian Stokes-Rees
I'm (reasonably) happy to include base models in INSTALLED_APPS, but this argument: On 2/8/11 4:32 AM, Tom Evans wrote: > Explicit is better than implicit. If you want models from app 'base' > installed on your system, you add the 'base' app to INSTALLED_APPS. > Otherwise, its a series of $MAGIC

Re: Questions about documentation management

2011-02-08 Thread Aryeh Leib Taurog
I forgot to mention: Python itself, as of 2.6 I believe, uses Sphinx http://docs.python.org/release/2.6/documenting/index.html -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com.

Looking for reusable adressbook/contacts apps

2011-02-08 Thread Christian Gagneraud
Hi there, Trying not to reivent the wheel, I'm looking for some contact management django app in a professional context (clients, manufaturer, ...). I'm looking for something providing a company, office, employee, and allowing to manage international addresses, phone, fax, email, IM,

Re: Process 'MultipleModelChoiceField' in 'view'

2011-02-08 Thread Tom Evans
On Tue, Feb 8, 2011 at 12:32 PM, NavaTux wrote: > Thanks Tom > mjob=Job.objects.create(name=name,city=city,tags=tag) > > Here i shouldn't use to create a object for foreign key and many_to_many > field; we have to get it from it's id right? because the key property >

Re: Process 'MultipleModelChoiceField' in 'view'

2011-02-08 Thread NavaTux
Thanks Tom mjob=Job.objects.create(name=name,*city=city,tags=tag*) Here i shouldn't use to create a object for foreign key and many_to_many field; we have to get it from it's id right? because the key property violates then, city=City.objects.get(id=city_id) tag=Tag.objects.get(id=tag_id)

Re: Process 'MultipleModelChoiceField' in 'view'

2011-02-08 Thread Tom Evans
On Tue, Feb 8, 2011 at 10:21 AM, NavaTux wrote: > Hi Django Users, >                   I had done the custom form with some fields which > includes(charfield,foreignkey(ModelChoiceField),many_to_many > field(MultiplemodelChoiceField) ),I had created a formset for my form

Re: cleaned_data not behaving how I expect it to. (newbie confusion)

2011-02-08 Thread Ion Ray Studios
Thanks for the "heads up". I actually was aware of this. When I'm trying to figure this kind of thing out, I start with the simplest problem and then add complications once I understand the fundamentals -- even if that means doing it the wrong way initially. Perhaps not the best approach...

Process 'MultipleModelChoiceField' in 'view'

2011-02-08 Thread NavaTux
Hi Django Users, I had done the custom form with some fields which includes(charfield,foreignkey(ModelChoiceField),many_to_many field(MultiplemodelChoiceField) ),I had created a formset for my form then i need to process and pass the formset datas into my template *this is

Re: Getting value from session in ModelForm

2011-02-08 Thread Daniel Roseman
On Monday, February 7, 2011 8:27:55 PM UTC, SimpleDimple wrote: > > I am new to Django and building a school system but am an experienced > developer otherwise having firm grip over rails, .net, php & java. > > I have the following class where on teacher add/edit form, I am trying > to filter

Re: Including apps for inherited models in INSTALLED_APPS

2011-02-08 Thread Tom Evans
On Mon, Feb 7, 2011 at 8:28 PM, Ian Stokes-Rees wrote: > Does it make sense that inherited models also need their apps included in > INSTALLED_APPS?  Right now if I have: > > base/models.py: > > class MyBaseModel(django.db.models.Model): >    stuff > > and then

Re: cleaned_data not behaving how I expect it to. (newbie confusion)

2011-02-08 Thread Tom Evans
On Mon, Feb 7, 2011 at 11:54 PM, Ben Dembroski wrote: > My apologies to the list. > > I just noticed the commas at the end of the lines in the views.py > file. > > Once I got rid of those, all was much better. > > > Glad to hear it. BTW, you are expressly going against

Re: cannot login to admin site using admin credentials

2011-02-08 Thread xpanta
I tried deleting auth_user in order to force manage.py to create a new one and see what happens (just in case there was some problem with the database table) I gave a manage.py syncdb (after deleting auth_user) and it created the table. It also asked me to create a new superuser. I gave the