Re: Need help

2010-06-01 Thread JIffin Joy Akkarappatty
The following may help you http://www.3captus.com/download/django_calendar http://code.google.com/p/django-gencal/ http://www.ohloh.net/p/django-calendar http://www.simonharrison.info/django-calendar/ Thanks & Regards, Jiffin Joy Akkarappatty. On Wed, Jun 2, 2010 at 4:56 AM, Dinesh

admin recipe: sort on "computed fields", and a question?

2010-06-01 Thread shaunc
I have had some complex pages for managers on my site that always had problems. Now I'm trying to replace them with admin forms. I have discovered that you can sort based on "follow" notation, and this can include aggregates. I thought I'd post this undocumented feature: is it a "real" feature --

AJAX request does not seem to have request.user

2010-06-01 Thread Carl Nobile
I have modified my admin site so that a state/province will be loaded through an AJAX call when the country is chosen. I had @login_required(redirect_field_name='/login/') called just before the view so I could prevent unauthorized AJAX requests. This no longer works after I upgraded from 1.1 to

design question - forms as meta-data to a model

2010-06-01 Thread Jason Beaudoin
Hi, I've a situation where the following functionality is desirable.. - one central model is used and interacted with by users - forms (multiple on multiple sites, pick a number for each.. 5 or 50, doesn't matter) are submitted by anonymous users and associated with this central model.. so

Re: Django 1.2.1 doesn't work with South but 1.2 works? How to find the previous version Django 1.2?

2010-06-01 Thread Vinicius Mendes
Why don't you try to fix this incompatibility? You can help South project by doing this. It isn't recommended to use the 1.2 since 1.2.1 is the same with bugfixes. But you can grab the 1.2 code using SVN. Just checkout this URL: http://code.djangoproject.com/svn/django/tags/releases/1.2/

Django 1.2.1 doesn't work with South but 1.2 works? How to find the previous version Django 1.2?

2010-06-01 Thread flyinglegs
I am having some trouble with South database migration using Fabric. I tried several machines, one works and the other 3 doesn't work. The only difference is that the machine that's working is using Django 1.2, and the others are using Django 1.2.1. Somehow I couldn't find the Django 1.2 tarball

select multiple without using foreignkey

2010-06-01 Thread HARRY POTTRER
I have a models that represents an event. I want it to have a field that represents the days of the week that the event occurs. This is easy if all you need to be able to do is be able to select one day, but if you want to select multiple, the right way seems to be to create a DayOfWeek object,

media files

2010-06-01 Thread Brian May
Hello Django has a really useful API for associated media files with Forms, Widgets, etc. http://docs.djangoproject.com/en/dev/topics/forms/media/#paths-in-media-definitions This is very good when dealing with just one app. However, many apps I write are a collection of multiple apps. These

Need help

2010-06-01 Thread Dinesh Babu
Can someone give me a developed Online Calendar application using Django? I have a project in my Master's. I have no idea in Django. It will be really helpful if someone really helps me. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Multiple user types

2010-06-01 Thread robinr
Picking up the thread started by itsnotvalid on 21OCT08 ... Like him (her), I have three groups of users. They self-register centrally (at project level) and assign themselves to group A, B or C. Once logged on. data input should be managed by one of three corresponding applications. All in

Django Job in Austin and Seattle (Multiple positions available)

2010-06-01 Thread Dane
Tippr.com is a fast growing venture funded internet company that provides technology that helps local merchants acquire new customers. Think of Groupon.com, livingsocial.com or buywithme.com on steroids and not sucking. We are hiring passionate, dedicated and brilliant engineers to join the core

Re: Serving media files with Django/Apache/Nginx

2010-06-01 Thread Vasil Vangelovski
Using the alias directive is much more easier and straighforward, for me at least. Here's an example configuration upstream django-backend { server testsite.local:4080; } server { listen 80; server_name testsite.com; location /{

Re: Serving media files with Django/Apache/Nginx

2010-06-01 Thread Daniel Roseman
On Jun 1, 10:40 pm, Corey wrote: > I am a Django newbie and Im using Django to build an application. Im > using Apache/mod_wsgi and Nginx as a proxy server to serve static > files.I am running Nginx on port 80 and have all the Django pages > forwarded to Apache. I have my

Any Experiences with Sphinx Search and Django-sphinx?

2010-06-01 Thread zweb
I am looking to provide search. All content is in MYSQL DB in innodb tables. That rules out Mysql full text search option, which would have been my first choice. Other option I am looking at it is Sphinx search with django-sphinx. Any experiences with it good and bad? Other thing I looked at is

Re: db autoclobbering with automated tests

2010-06-01 Thread Dmitry Beransky
thanks, guys On Mon, May 31, 2010 at 5:23 AM, Russell Keith-Magee wrote: > On Fri, May 28, 2010 at 12:59 PM, Rolando Espinoza La Fuente > wrote: >> I'd added a patch that adds the --noinput option to testserver command: >>

file upload failed in Tomcat using Django framework

2010-06-01 Thread Hw3699
I use jython-django to develop web application. The file upload (mutlipart/form-data) works in django development server. But when I deployed the war file to tomcat, the file upload function failed and the request.FILES['file'] field showed "empty". Please help and provide solution. Many Thanks!

Serving media files with Django/Apache/Nginx

2010-06-01 Thread Corey
I am a Django newbie and Im using Django to build an application. Im using Apache/mod_wsgi and Nginx as a proxy server to serve static files.I am running Nginx on port 80 and have all the Django pages forwarded to Apache. I have my media folder in the application root folder named media1. I cannot

Re: Looping through models

2010-06-01 Thread Dj Gilcrease
On Tue, Jun 1, 2010 at 12:57 PM, Luca Casagrande wrote: > Is there a way to create a loop changing only the model name? geo_models = [model1, model2, model3, ...] for m in geo_models: m.objects.filter(geom__intersects=fs[0].geom) -- You received this message

Looping through models

2010-06-01 Thread Luca Casagrande
Hello everybody, using GeoDjango I need to do a spatial intersections through a lot of different model (polygon): output1 = model1.objects.filter(geom__intersects=fs[0].geom) output2 = model2.objects.filter(geom__intersects=fs[0].geom) ... Where fs is a QuerySet output. Is there a way to create a

Re: Proabably a simple python question but ...

2010-06-01 Thread Richard Shebora
This post from Graham Dumpleton (wrote mod_wsgi) goes into detail of why that happens. Extremely useful reading... http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html Thanks, Richard Shebora On Tue, Jun 1, 2010 at 10:15 AM, Thomas Lionel Smets wrote: > >

Re: Is the Django book written in ReST/Sphinx?

2010-06-01 Thread cool-RR
On Mon, May 17, 2010 at 2:00 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Mon, May 17, 2010 at 7:06 AM, cool-RR wrote: > > I'm just working on a book for my own project, and I was wondering: Is > > the Django book written in ReST/Sphinx? I am considering

Re: Django serving multiple subdomain sites -- okay to use thread-locals?

2010-06-01 Thread Kieran Farr
Thanks, Graham. We'll keep using this method and I'll continue this thread if we run into problems. I appreciate the insight re: Python's implementation of thread locals. I tend to agree re: security -- thread locals only appears to be a security threat if a system has already been seriously

Re: Importing ImageField from file or - better - generating it from another ImageField

2010-06-01 Thread Ricardo Bánffy
Thanks, Bill. I really had a hard time wrapping my head around the ImageField object model. I guess I am now OK, but I had to do more seek(0)'s than I wanted. It's sort of working and properly deduplicating images and thumbnails. I'll check the django-filebrowser product, tidy up what I have done

Re: django-registration custom fields

2010-06-01 Thread gin tonic
I'm following the praveen tutorial as well but I'm receiving the error: "SiteProfileNotAvailable at /accounts/register/" What am I missing here. On May 31, 1:32 pm, Pankaj Singh wrote: > Thanks my problem has been resolved :) -- You received this message

Re: Importing ImageField from file or - better - generating it from another ImageField

2010-06-01 Thread Bill Freeman
Perhaps see the django-filebrowser product. It may have things that you don't need, but makes thumbnails, and associates them with an image field, so it is at least a sample of what's involved. Bill 2010/5/31 Ricardo Bánffy : > Hi folks > > I am having huge problems wrapping

Re: Twisty Little Passages... widgets, fields, forms

2010-06-01 Thread derek
On Jun 1, 1:24 am, Michael Davis wrote: > I'm trying to implement a simple grade book application using a > modelformset where the students' names are READONLY and the grades are > the only thing the teacher can edit. I've been looking for sample code > to implement the

Proabably a simple python question but ...

2010-06-01 Thread Thomas Lionel Smets
If I put at the end of my settings.py file, the following code : if (DEBUG): print "Project name : " + PRJ_NAME print "Root directory : " + ROOT_DIR The lines are printed twice : Project name : XXX Root directory : /Users/tsmets/Documents/python/XXX/site/ Project name : XXX Root directory

Re: How can I test the correctness of my models against the schema of a database?

2010-06-01 Thread Alex Robbins
Its been a while since I worked with a live db and unit tests for this sort of thing, but I think this is how we did it: Put the tests in a tests.py file in an app like normal, but for the db test, inherit from the python test framework's UnitTest. That test will not get a special test db, so be

Re: django-admin-tools

2010-06-01 Thread izi
Hi, As I said in my previous mail, you should bring this to the django- admin-tools mailing list: http://groups.google.com/group/django-admin-tools/ > My guess is documentation is wrong.I think admin_tools media folder > should be inside django.contrib.admin. No, the documentation is ok, please

Re: Is there a way to add operations to an entity admin form?

2010-06-01 Thread gderazon
Thank you very much! On Jun 1, 1:32 pm, Massimiliano della Rovere wrote: > here is how I added the action to create new items in the Addressbook > (Rubrica) to the normal change list existing admin page: > > in admin.py > > class

Re: DJango Deployment

2010-06-01 Thread Thomas Guettler
Hi, why do you use tomcat or mod_python? Please try mod_wsgi, if you use apache. Thomas PM wrote: > Hi , >I am new to Django. > >I have developed a tool using > Python CGI. I have been successfully deploying it using Apache Tomcat > 5.5, from

Re: Raw sql bug? Or am I doing something wrong?

2010-06-01 Thread Kevin Renskers
Update: weirdly enough, this does work: for r in Model.objects.raw('SELECT model.* FROM model INNER JOIN othermodel ON othermodel.model_id = model.id'): print r But model.id does not. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Open source project looking for developer

2010-06-01 Thread gvkalra
Thumbs up from me! On Jun 1, 4:31 pm, James wrote: > Pressed the wrong button and posted prematurely ... :-/ > > Hi, > > http://www.myjobseek.net/is a tool for job seekers to organise their > job hunt, storing details of jobs applied for and applications, making > it easy

Re: Open source project looking for developer

2010-06-01 Thread James
Pressed the wrong button and posted prematurely ... :-/ Hi, http://www.myjobseek.net/ is a tool for job seekers to organise their job hunt, storing details of jobs applied for and applications, making it easy to re-use covering letters and so on. To-do lists and reminders are included to.

Re: Django 1.2.1 install in Ubuntu 10.04 via Synaptic?

2010-06-01 Thread Thomas Schreiber
here is a getting started (good practices) guide to configuring a django production server. A little old now, but the fundamentals still apply. http://lethain.com/entry/2009/feb/13/the-django-and-ubuntu-intrepid-almanac/ On Tue, Jun 1, 2010 at 12:09, Patrice wrote: > On

Open source project looking for developer

2010-06-01 Thread James
Hi, http://www.myjobseek.net/ is a tool for job seekers to organise their job hunt, storing details of jobs applied for and applications, making it easy to reuse covering letters and so on. However, as I only develop it when I' -- You received this message because you are subscribed to the

Re: Is there a way to add operations to an entity admin form?

2010-06-01 Thread Massimiliano della Rovere
here is how I added the action to create new items in the Addressbook (Rubrica) to the normal change list existing admin page: in admin.py class RubricaAdmin(admin.ModelAdmin): list_display = ('cognome', 'nome', 'numero_cellulare',) list_filter = ('cognome', 'nome',

Re: Django 1.2.1 install in Ubuntu 10.04 via Synaptic?

2010-06-01 Thread Patrice
On May 31, 5:35 pm, AD wrote: > I went ahead and downloaded the Django 1.2.1 tarball, untarred it and > ran > > sudo python setup.py install in the directory. > > I needed to make one small change in my Apache httpd.conf file, but > otherwise it all seems to be working

Raw sql bug? Or am I doing something wrong?

2010-06-01 Thread Kevin Renskers
Hi, I love the new raw() function to write custom sql and get back ORM objects. However, when using joins, things get weird. As long as you use "select *", everything works fine: for r in Model.objects.raw('SELECT * FROM model INNER JOIN othermodel ON othermodel.model_id = model.id'): print

Control Center - own app or cross references?

2010-06-01 Thread R3dFox
Cheers, I have the following question regarding layout conventions. Let's assume I have: - app "Foo" - app "Bar" - app "usermanager" Now I'd like to create some kind of Control Center for the users, where they can manage their preferences of "Foo" and "Bar". The user accounts are managed by

DJango Deployment

2010-06-01 Thread PM
Hi , I am new to Django. I have developed a tool using Python CGI. I have been successfully deploying it using Apache Tomcat 5.5, from cgi/bin directory. After knowing the benefits of Django I have planned to complete the remaining modules using

Re: don't work Flatpages

2010-06-01 Thread gerram
I decided this problem. The matter of it was SITE_ID in settings.py. The facto of the matter that Flatpages from box has default site example.com as default. If you create new your site before deleting example.com you get SITE_ID: 2 and etc for your site. After that you can delete example.com but

Re: Is there a way to add operations to an entity admin form?

2010-06-01 Thread Massimiliano della Rovere
well you can do it with a minimal overhead... copy the django/contrib/admin/templates/change_form.html file to your project/templates/admin/ folder. The line with {% submit_row %} is what your are searching for: add whatever you need. Unisng the context parameter, pass to render_change_form

Re: delete file or image after deleting model item

2010-06-01 Thread ev
Thank you, Shawn. I just wander, why auto-deleting files was not included in django as well? Just your opinion? On May 30, 6:32 am, Shawn Milochik wrote: > You can override thedeletefunction of your model to take care of this. > > Alternatively, if you want to do this for a

Is there a way to add operations to an entity admin form?

2010-06-01 Thread gderazon
I would like to add my own custom operations in addition to standard "save and add another", "save" etc' Is it supported? -- 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

Re: Error

2010-06-01 Thread Massimiliano della Rovere
Greetings Bruxo, I do not speak Portuguese but being Italian I understood more or less your post. It seems you included "django.contrib.blog" in settings.py, but there is no "blog" module inside django.contrib. If "blog" is the name of the module you are developing, just add 'blog' (not