Re: Django IDE

2010-07-17 Thread Kenneth Gonsalves
On Saturday 17 July 2010 21:23:03 Jitendra Joshi wrote: > What is the best open source Django IDE ? > geany -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Django IDE

2010-07-17 Thread Juan Hernandez
google: "django ide" :) On Sun, Jul 18, 2010 at 12:39 AM, Tran Cao Thai wrote: > find them, use them and you will know the best > > > On Sun, Jul 18, 2010 at 1:53 AM, Jitendra Joshi < > joshijitendra...@gmail.com> wrote: > >> What is the best open source Django IDE ? >> >> -- >> You received thi

Re: Django IDE

2010-07-17 Thread Tran Cao Thai
find them, use them and you will know the best On Sun, Jul 18, 2010 at 1:53 AM, Jitendra Joshi wrote: > What is the best open source Django IDE ? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to djang

Re: list display based on logged-in user

2010-07-17 Thread raj
Sorry for the trouble. ModelAdmin by default has an attribute named 'action_checkbox' in list_display to show the checkbox in each result row. On overridding we've excluded it. * You may change your code as list_display = ['action_checkbox'] + list(list_display). * Or better forget it by setting l

Django IDE

2010-07-17 Thread Jitendra Joshi
What is the best open source Django IDE ? -- 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.co

Re: Custom form field validation and required=False

2010-07-17 Thread Paddy Joy
Thanks for that, using: from django.core import validators . . class ExistingUserField(forms.CharField): def clean(self, value): if value in validators.EMPTY_VALUES: return value did the trick. Paddy On Jul 17, 3:31 am, Nuno Maltez wrote: > Hi, > > Looking at Django's f

Re: Django GeoIP

2010-07-17 Thread haibin
Thanks All, Its now clear to me. For sharing purpose, maybe I'll go for pygeoip? Since I really only need the GeoIP only. Much simpler, though could be much slower? On Jul 18, 12:20 am, Justin Myers wrote: > Yes, there are dependencies for GeoIP. They're listed in the docs for > GeoIP (http://

Re: should i use django

2010-07-17 Thread Ben Atkin
Udayan, I think you're on the right track. While Django can handle big sites, Django works well for small projects, too. Also, you may find it helpful having a big community around to answer questions. I recommend using the admin site, especially if you need to support having users log in. Feel

Custom ManyToMany save on model Formset

2010-07-17 Thread Quenten Griffith
Hello everyone, I have a formset that is setup to use a join table. The join table joins a Recipe table and an Ingredient table and looks like thus class RecipeIngredient(models.Model): '''intermediate model between Ingredient and recipe.models.recipe for many to many''' quantity = mode

Re: URL to specify when accessing subdomains using Django

2010-07-17 Thread Steve Holden
On 7/17/2010 12:38 PM, nandu wrote: > Dear Folks, > > After researching the topic of using subdomains with Django I have > found that it is does not seem to be a straight forward thing to do. > > I have also found many websites showing methods of how to do this, but > there is one aspect that non

Re: URL to specify when accessing subdomains using Django

2010-07-17 Thread Daniel Roseman
On Jul 17, 5:38 pm, nandu wrote: > Dear Folks, > > After researching the topic of using subdomains with Django I have > found that it is does not seem to be a straight forward thing to do. > > I have also found many websites showing methods of how to do this, but > there is one aspect that none of

Re: comment template tag not working

2010-07-17 Thread Joel Klabo
I got it to work by adding: {% load comments %}. I had put the load comments tag in my base.html but didn't work there for some reason. On Jul 17, 1:00 pm, Joel Klabo wrote: > I am trying to use the get_comment_list template tag and I keep > getting errors. Any ideas?http://dpaste.org/nCx0/ --

comment template tag not working

2010-07-17 Thread Joel Klabo
I am trying to use the get_comment_list template tag and I keep getting errors. Any ideas? http://dpaste.org/nCx0/ -- 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

Re: list display based on logged-in user

2010-07-17 Thread raj
Re-posting the reply since the 1st didn't appear here: This happens because We've excluded 'action_checkbox', an item put by the ModelAdmin by default, from list_display. * Rewrite the prev code so as to include 'action_checkbox' also to list_display * OR just leave it to ModelAdmin. You'll first

Re: Best way to get data into a HTML table?

2010-07-17 Thread david
Yes, I finished the tutorial, and it was very informative, but I could not find in the documentation anything about getting fields from a model, like Justin had suggested. It seems like his solution might work, but it seems a bit hackish (underscores mean private data right?). I wonder if thats how

Re: CSRF verification failed - 403 error

2010-07-17 Thread zenr
Hi I always had context_instance=RequestContext(request) in the render_to_response function. Is there anything else I need to check? Ravi On Jul 16, 5:23 pm, Joel Klabo wrote: > I had this same problem. Try this for your return statements, if > you're using render_to_response: > > return ren

Re: should i use django

2010-07-17 Thread Carl Nobile
Udayan, This can all be easily be done in Django if you were already familiar with it. However, if you are starting from scratch with both Django and Python it will take you two weeks just to get a handle on one of these. I'm sure you can do it, but not within two weeks. I've been working with Pyt

URL to specify when accessing subdomains using Django

2010-07-17 Thread nandu
Dear Folks, After researching the topic of using subdomains with Django I have found that it is does not seem to be a straight forward thing to do. I have also found many websites showing methods of how to do this, but there is one aspect that none of them seem to explain. That is how does one sp

Re: Best way to get data into a HTML table?

2010-07-17 Thread Carl Nobile
David, The best thing to do is use the Django docs, maybe do their tutorial. The link below should get you there: http://docs.djangoproject.com/en/1.2/ ~Carl On Jul 17, 3:00 am, david wrote: > Hello, >   Just learning about Django, and I would like to know what the best > way to generate a ta

Re: Django GeoIP

2010-07-17 Thread Justin Myers
Yes, there are dependencies for GeoIP. They're listed in the docs for GeoIP (http://docs.djangoproject.com/en/1.2/ref/contrib/gis/geoip/), and the docs' list of GeoDjango's requirements in general (http:// docs.djangoproject.com/en/1.2/ref/contrib/gis/install/#requirements) is also useful. HTH, Ju

Re: How can view tweak response object to go to a specific *anchor* on the template?

2010-07-17 Thread Justin Myers
When is that code running? If it's in the head element and not checking whether the document's finished yet, it might be executing before the anchor you're targeting is ready. Consider either using this, for something using jQuery: $(document).ready(function() { window.location = window.locati

Re: Best way to get data into a HTML table?

2010-07-17 Thread Justin Myers
Each model has a meta attribute with a list of fields on it; for a Photo model, for example, you can use Photo._meta.fields. This means you could do something (at least in the shell) like: >>> fields = Photo._meta.fields >>> photo = Photo.objects.latest() >>> for field in fields: ... print '%

Re: install django-mingus blog / http://djangoadvent.com/1.2/everything-i-hate-about-mingus/ pls help

2010-07-17 Thread Peter Herndon
Try "pip install ElementTree", your version of python does not include e-tree. Sent from my external cortex. On Jul 17, 2010, at 11:45 AM, justin jools wrote: > Trying to install django-mingus (see bottom, not easy at all!) > When installing * 6 pip install -r stable-requirements.txt > > iro

Re: install django-mingus blog / http://djangoadvent.com/1.2/everything-i-hate-about-mingus/ pls help

2010-07-17 Thread justin jools
Trying to install django-mingus (see bottom, not easy at all!) When installing * 6 pip install -r stable-requirements.txt ironed out 1 error with BeautifulSoup==3.0.8.1 - see bottom (http:// github.com/montylounge/django-mingus/issues/issue/36) now I get markdown error, tried changing markdown2.

Re: ModelForm and a new model instance

2010-07-17 Thread Joel Klabo
That did it! That example was what I was looking for. The error handling led me astray, it's all taken care of. Thanks a lot. On Jul 17, 2:42 am, Karen Tracey wrote: > On Fri, Jul 16, 2010 at 6:27 PM, Joel Klabo wrote: > > I am using modelForm to make a form for my Brew model. The form shows > >

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
hunted down error here: http://github.com/montylounge/django-mingus/issues/issue/36 something to do with error in beautiful soup version On 17 July, 15:12, Peter Herndon wrote: > From the virtualenvwrapper instructions: > "First, some initialization steps. Most of this only needs to be done one

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
python2.4 manage.py syncdb, runs but now get another error: (myblog)-bash-3.2$ python2.4 manage.py syncdb Traceback (most recent call last): File "manage.py", line 16, in ? execute_manager(settings) File "/usr/lib/python2.4/site-packages/django/core/management/ __init__.py", line 360, in e

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
making progress but now get error at *8 (bottom) ./manage.py syncdb (myblog)-bash-3.2$ ./manage.py syncdb Traceback (most recent call last): File "./manage.py", line 7, in ? from django.core.management import execute_manager ImportError: No module named django.core.management (myblog)-bash-3

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
sorry was copy error, now works: (env1)-bash-3.2$ mkvirtualenv myblog --no-site-packages Using real prefix '/usr' New python executable in myblog/bin/python Installing setuptools.done. (env1)-bash-3.2$ (env1)-bash-3.2$ On 17 July, 15:12, Peter Herndon wrote: > From the virtualenvwr

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
I got the virtualenvwrapper working, now tried: mkvirtualenv myblog, get: (env1)-bash-3.2$ mkvirtualenv myblog .-no-site-packages There must be only one argument: DEST_DIR (you gave myblog .-no-site- packages) usage: virtualenv [OPTIONS] DEST_DIR options: --version show program's ve

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
I found it in: source /home/cc11/public_html/virtfs/bin/virtualenvwrapper.sh Thanks for your help, I shall now try django-mingus again On 17 July, 15:27, justin jools wrote: > says virtualenvwrapper is in  /home/cc11/public_html/virtfs/lib/ > python2.4/site-packages (bottom) so I tried:

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
says virtualenvwrapper is in /home/cc11/public_html/virtfs/lib/ python2.4/site-packages (bottom) so I tried: source /home/cc11/public_html/virtfs/lib/python2.4/site-packages/ virtualenvwrapper.sh error: -bash: /home/cc11/public_html/virtfs/lib/python2.4/site-packages/ virtualenvwrapp

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
I followed the docs install (below), but: source /usr/local/bin/ virtualenvwrapper.sh No such file or directory: Any ideas? (virtfs)-bash-3.2$ pip install virtualenvwrapper Requirement already satisfied (use --upgrade to upgrade): virtualenvwrapper in /home/cc11/public_html/virtfs/lib/python2

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread Peter Herndon
>From the virtualenvwrapper instructions: "First, some initialization steps. Most of this only needs to be done one time. You will want to add the command tosource /usr/local/bin/virtualenvwrapper.sh to your shell startup file, changing the path to virtualenvwrapper.sh depending on where it was

Re: Get all tables in one query that use OneToOne relationship

2010-07-17 Thread Steve Holden
On 7/16/2010 7:28 PM, Sells, Fred wrote: > I've got a logical record 0f 500 columns that is broken up into about 20 > tables based on an implicit logical grouping of the data. Most of the > time this works well and the code is clean; but there are a few use > cases where I need to get all the equi

trying to install django-mingus/ virtualenv / virtualenvwrapper help!

2010-07-17 Thread justin jools
still trying to install django-mingus I loggged into my server with ssh and installed virtualenv and virtualenvwrapper easy_install virtualenv pip virtualenvwrapper also installed git ok... trying to follow the install instructions(bottom). I guess virtualenv/ virtualenvwrapper need setting up?

Re: how to install django-mingus blog? installed vrtualenv + virtualenvwrapper now I'm stuck

2010-07-17 Thread justin jools
still trying to install django-mingus I loggged into my server with ssh and installed virtualenv and virtualenvwrapper easy_install virtualenv pip virtualenvwrapper ok... trying to follow the install instructions(bottom). I guess virtualenv/ virtualenvwrapper need setting up? 1. mkvirtualenv my

MultipleDatabase - Binding User to a database

2010-07-17 Thread Prabhat
Hi, I am developing a Django application with 6 different apps. This application will be provided to n different organizations. I want to have one database for each organization containing models from each app and will contain organization specific data. Suppose I have following databases DATAB

Site specific translations

2010-07-17 Thread cootetom
Hi, I've been reading about the text translation capabilities in Django just recently. It's something I've not needed yet but wanted to know more about. I wondered if you are able to create site specific translation strings? The docs say that Django looks for translation files firstly in the direct

Re: Django GeoIP

2010-07-17 Thread Alexander Jeliuc
Yes. there are dependencies. On Sat, Jul 17, 2010 at 8:58 AM, haibin wrote: > hi, > > I am trying to use GeoIP part of GeoDjango. I importing it by from > django.contrib.gis.utils import GeoIP but getting import error. Do I > have to install someting or do the whole installation process for > Ge

Re: ModelForm and a new model instance

2010-07-17 Thread Karen Tracey
On Fri, Jul 16, 2010 at 6:27 PM, Joel Klabo wrote: > I am using modelForm to make a form for my Brew model. The form shows > up and works fine. And saves it when I call save. But it does not > catch the errors correctly. I set it up mostly based on this example: > > from django.core.validators im

Re: Best way to get data into a HTML table?

2010-07-17 Thread Kenneth Gonsalves
On Saturday 17 July 2010 12:30:19 david wrote: > Just learning about Django, and I would like to know what the best > way to generate a table from my data, similar to what the "admin" app > does. I attempted to dig into the source of the admin app, but I was > unable to achieve much. > > I don't

Best way to get data into a HTML table?

2010-07-17 Thread david
Hello, Just learning about Django, and I would like to know what the best way to generate a table from my data, similar to what the "admin" app does. I attempted to dig into the source of the admin app, but I was unable to achieve much. I don't want to create a template that has for loops that l

Re: What is a good source code control software?

2010-07-17 Thread Terry Schmitt
I don't know enough about your environment to make a solid recommendation, but here are my thoughts. I commend you on the decision to investigate source control. I find it priceless and never code anything without it. Most of my experience is with ColdFusion, but I have mostly moved over to Oracle

django vs raw sql insert speed

2010-07-17 Thread Almir Karic
http://gist.github.com/479348 This is the trivial test script that i created to test the speed of raw sql insert vs the one done in django, here is the result of that script on my laptop: sql: 0:00:00.832262 django: 0:00:03.074965 i tried passing force_insert=True to save() and it didn't seem