Django GeoIP

2010-07-16 Thread haibin
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 GeoDjango? Or what is the minimum requirements just for GeoIP Thanks, James -- You

Re: should i use django

2010-07-16 Thread Venkatraman S
On Sat, Jul 17, 2010 at 7:26 AM, gary_p wrote: > I read data from instruments, and/or > enter parameters by hand, then run an app that crunches the data > producing graphs and, in my dreams, animations. Can Django do this > smoothly? Sure. But, when you are doing charts

Virtual Private Queries/Databases

2010-07-16 Thread Venkatraman S
Hi, I was wondering whether its possible to have something similar to virtual private queries/databases via the django ORM? As in, the Oracle database provides something called VPD by which policies can be enforced wherein a user sees data only that he is allowed to see. (

Cisco Systems, Django developer opening in Austin, Texas

2010-07-16 Thread Ashok
Hello Django users/developers We are looking for senior Django developers for Austin/San Jose with excellent pay and premium benefits. You can see job opening at http://www.cisco.apply2jobs.com/index.cfm?fuseaction=mExternal.showJob=872502=1. Java is not a must skill set but Django & Python

Re: should i use django

2010-07-16 Thread gary_p
On Jul 16, 7:46 pm, uday wrote: > Hi, > >    I need to design a simple web app that would mostly display data > from an xml file in different forms(like graphs,charts etc) after some > processing.I have to do this in two weeks >    I don't have any web development

Re: Logic

2010-07-16 Thread Kenneth Gonsalves
On Friday 16 July 2010 18:56:12 Ravango wrote: > ust call the Bioinformatics application from the "views.py". > yes -- 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

Re: Database systems

2010-07-16 Thread Kenneth Gonsalves
On Friday 16 July 2010 20:33:47 Venkatraman S wrote: > > wrote: > > > > PostgreSQL is better supported by South, the leading django database > > migration tool. > > Is it so?? I didnt know this. Doesnt work 'properly' with SQLite3/MySQL? > What do you mean by 'support' here? > I thought South was

Re: What is a good source code control software?

2010-07-16 Thread Javier Guerra Giraldez
On Fri, Jul 16, 2010 at 7:09 PM, Greg Pelly wrote: > I recommend finding an external host. They are cheap and you won't have to > worry about hardware/backups/administration yourself. i second that. if you have a distributed team, this is a huge timesaver. i'm happily using

Re: What is a good source code control software?

2010-07-16 Thread Greg Pelly
This doesn't really have much to do with Django, but here is my 2 cents: If you have no experience with version control software, I'd recommend that you start with subversion. There are more advanced tools (git and mercurial being the favorites right now), but there is a steep learning curve if

What is a good source code control software?

2010-07-16 Thread Hooshyar
Hello Django users, My Django-driven web application has grown fast and large enough and more programmers are contributing code and UI components that I would like to set up a source code management software. I would be glad if you could share your experience as to what software I should use. I

should i use django

2010-07-16 Thread uday
Hi, I need to design a simple web app that would mostly display data from an xml file in different forms(like graphs,charts etc) after some processing.I have to do this in two weeks I don't have any web development background.I am more of a systems programmer and thus use C/C++ a lot.But

Re: URL didn't match

2010-07-16 Thread Duncan
Thanks, that was able to get that fixed! On Jul 16, 4:10 pm, Tim Chase wrote: > On 07/16/2010 04:26 PM, Duncan wrote: > > > Request URL:http://[redacted]/seeds/ > ... > >     1. ^seeds/ ^/$ > ... > > urlpatterns = patterns('', > >      (r'^seeds/',

Get all tables in one query that use OneToOne relationship

2010-07-16 Thread Sells, Fred
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 equivalent fields for a single record from all the

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

2010-07-16 Thread justin jools
aha... thanks for that My development server is linux but I always test locally on windows before uploading... Will try this out, thanks... Maybe I should setup a linux local test environment On 16 July, 23:40, Ivan wrote: > Hi Justin, > > I guess, you are using Windows OS,

Re: URL didn't match

2010-07-16 Thread Tim Chase
On 07/16/2010 04:26 PM, Duncan wrote: Request URL: http://[redacted]/seeds/ ... 1. ^seeds/ ^/$ ... urlpatterns = patterns('', (r'^seeds/', include('seeds.general.urls')), While you don't include seeds.general.urls in your post, given the traceback you kindly included, it looks

Re: Django bases blog solutions

2010-07-16 Thread Peter Herndon
"What am I doing wrong..." First, you aren't asking for help in the proper venue. I'm Cc'ing the django-users mailing list, which is where your question belongs, and to which I know you subscribe. Second, your question is badly put together. You need to learn to ask better questions. In

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

2010-07-16 Thread Ivan
Hi Justin, I guess, you are using Windows OS, From http://stackoverflow.com/questions/2615968/installing-virtualenvwrapper-on-windows virtualenvwrapper does not work in Windows, unless you are using cygwin. Alternate solution is Virtualenv Helper for Windows

Re: Most common uses of Django templates

2010-07-16 Thread Antoni Aloy
2010/7/15 fabiofz : > Hi All, > > I'm currently working on providing an editor for django templates in > Pydev (http://pydev.org). > > Now, while I do work with django templates sometimes, my experience is > a bit limited with it -- so far I used it only for .html files, >

ModelForm and a new model instance

2010-07-16 Thread Joel Klabo
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 import ValidationError, NON_FIELD_ERRORS try:

Re: CSRF verification failed - 403 error

2010-07-16 Thread Joel Klabo
I had this same problem. Try this for your return statements, if you're using render_to_response: return render_to_response("a_template.html", c, context_instance=RequestContext(request)) The context_instance was the key in my case. You'll need to add it to all your views though. -- You

URL didn't match

2010-07-16 Thread Duncan
Hello, I'm trying to figure out why a django app on my server isn't running. I've attempted to validate my django install by setting up a test application as per http://www.djangobook.com/en/1.0/. The test app lets me load pages just fine, with the Hello World and Time examples they give working.

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

2010-07-16 Thread justin jools
Hi, sorry was c:\django>mkvirtualenv myblog 'mkvirtualenv' is not recognized as an internal or external command, operable program or batch file. but I figured out that on windows virtualenv myblog works but now (folowing tutorial as bottom), workon myblog porduces error: c:\django>workon

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

2010-07-16 Thread Ivan
Hi Justin, What is the error message? Cheers, Ivan On Sat, Jul 17, 2010 at 7:09 AM, justin jools wrote: > RE: http://djangoadvent.com/1.2/everything-i-hate-about-mingus/ > I tried following this to install Django-Mingus, it says it is easy > but not for a newbie who

CSRF verification failed - 403 error

2010-07-16 Thread zenr
I am having some problems with CSRF and I need some directions. In my project (using version 1.2 django), I have included both CSRFResponseMiddleware and CSRFViewMiddleware in the settings.py file. I also including the tag {% csrf_token %} in my template next to the form tag. Even after all

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

2010-07-16 Thread justin jools
RE: http://djangoadvent.com/1.2/everything-i-hate-about-mingus/ I tried following this to install Django-Mingus, it says it is easy but not for a newbie who knows nothing about virtualenv! tsk! I don't have pip so I ran easy_install 1. easy_install virtualenv... no problem 2. easy_instal

Re: No module named site - error deploying a django-jython war in tomcat

2010-07-16 Thread Tim Sawyer
I got around this problem by downgrading from jython 2.5.2beta1 to jython 2.5.1. Hope that helps! Tim. On 15/07/10 22:47, Jose Flores wrote: Hi guys, Any workaround on this issue? Regards, Jose On Jul 8, 2:43 pm, Rafael Nunes wrote: Same problem here. Any

Re: Database systems

2010-07-16 Thread Simon Riggs
On Fri, 2010-07-16 at 20:33 +0530, Venkatraman S wrote: > I thought South was DB agnostic. It is, but databases provide different feature sets. If databases were all the same there would not be so many to choose from. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Development, 24x7

Re: Custom form field validation and required=False

2010-07-16 Thread Nuno Maltez
Hi, Looking at Django's forms/fiedls.py may give you some ideas. The test for an empty value is if value in validators.EMPTY_VALUES You can also use self.required to see if the required attribute is set (e.g., see Field's validate() method). Of course, a username with a single space will

Object permissions with user authentication

2010-07-16 Thread Paul Pepper
Is there a recommended way of implementing object permissions with Django's User authentication systems (i.e. a way of enforcing access/ authorisation restrictions on an object-basis)? The Django documentation states that there is "a foundation for object permissions, though there is no

Re: Database systems

2010-07-16 Thread Horst Gutmann
Do you plan to do anything really fancy that requires some server-specific features? If not this becomes more of a deployment question. If you're just starting with Django, using sqlite3 instead of PostgreSQL or MySQL is just fine (depending on your project). For later and for me personally

Re: Database systems

2010-07-16 Thread mad_casual
> this is a religious question especially without any information > about your case.   so, follow your faith :-) > > -- > Javier Or like comparing a balero to paddle ball. The firmer your grip on databases, the more useful PostgreSQL becomes. At the same time, the firmer your grip on

Re: Syntax for cache page in urls

2010-07-16 Thread Michel Thadeu Sabchuk
Hi guys! I've found the sollution. If I use to following code, it works: """ from django.views.generic.simple import direct_to_template urlpatterns = patterns('', (r'^$', cache_page(direct_to_template, 60*15), {'template':'home.html'}), ) """ Note that I specify the cache timeout in the

Re: Advice on creating apps

2010-07-16 Thread mad_casual
Disclaimer: I'm no sage, I just didn't ask the question you asked and was/am figuring it out on my own. My advice; http://pinaxproject.com/ , set up the virtual environment and look through the library. Also, http://www.databaseanswers.org/data_models/ , this seems like less of a 'Django

ANN: django-admin-tools 0.3.0 released

2010-07-16 Thread David Jean Louis
Hello, I'm happy to announce the availability of the version 0.3.0 of django-admin-tools. Django-admin-tools is a collection of extensions/tools for the default django administration interface, it includes: * a full featured and customizable dashboard, * a customizable menu bar, *

Re: Advice on creating apps

2010-07-16 Thread barun
Thanks! That was quite helpful. On Jul 16, 6:57 pm, Javier Guerra Giraldez wrote: > On Fri, Jul 16, 2010 at 4:38 AM, barun wrote: > > The question am pondering over is, whether I should create separate > > apps for each of these sections. I'll have

Re: Database systems

2010-07-16 Thread Venkatraman S
On Fri, Jul 16, 2010 at 7:29 PM, Alex Robbins wrote: > PostgreSQL is better supported by South, the leading django database > migration tool. Is it so?? I didnt know this. Doesnt work 'properly' with SQLite3/MySQL? What do you mean by 'support' here? I thought

Pyamf + django mapping classes

2010-07-16 Thread Lucas
Hi guys, could you explain how can i map python class into amf request. I saw documentation, samples, but it's not working yet. Example: I need to return by gateway the Django User Object: from pyamf.remoting.gateway.django import DjangoGateway from pyamf import register_class import

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

2010-07-16 Thread Daniel Roseman
On Jul 16, 2:56 pm, Chris Seberino wrote: > On Jul 15, 3:57 am, Oleg Lomaka wrote:> First without > javascript. You cat check URL of HttpRequest and if it is without > > #anchor element, then send redirect to the same URL with #anchor. > > Yes

Syntax for cache page in urls

2010-07-16 Thread Michel Thadeu Sabchuk
Hi guys, I'm migrating a project from django1.1 to django1.2.1 and I have problems with cache. I used to write on the urls: """ from django.views.generic.simple import direct_to_template urlpatterns = patterns('', (r'^$', cache_page(direct_to_template), {'template':'home.html'}), ) """

Re: Database systems

2010-07-16 Thread Alex Robbins
PostgreSQL is better supported by South, the leading django database migration tool. It allows you to make schema altering migrations within a transaction, so they can be rolled back if the migration fails. On MySQL you are just left with a half-migrated database. Also, if you are going to use

Re: Database systems

2010-07-16 Thread Javier Guerra Giraldez
On Fri, Jul 16, 2010 at 7:10 AM, Doane wrote: > I'm a new Django user. Which database management system should I use > in developing Django apps, MySQL or PostgreSQL?  Why? this is a religious question especially without any information about your case. so, follow your

Re: Advice on creating apps

2010-07-16 Thread Javier Guerra Giraldez
On Fri, Jul 16, 2010 at 4:38 AM, barun wrote: > The question am pondering over is, whether I should create separate > apps for each of these sections. I'll have different database tables > for each of those sections. Or should all the sections come under a > single app,

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

2010-07-16 Thread Chris Seberino
On Jul 15, 3:57 am, Oleg Lomaka wrote: > First without javascript. You cat check URL of HttpRequest and if it is > without #anchor element, then send redirect to the same URL with #anchor. Yes redirection is a great non-Javascript way to do this. Is there ANY way to

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

2010-07-16 Thread Chris Seberino
On Jul 15, 3:44 am, Daniel Roseman wrote: >      window.location = window.location + '#whatever' I added that code to script element in head and it didn't work. I have a TinyMCE javascript editor that gets run too. I don't know if that is conflicting or if there is

Re: Logic

2010-07-16 Thread Ravango
Yes, that's it. A web service that would be running a top of a web server. I have built a bioinformatics application, which I would be offering as a web service. The question is when I'm using Django, once I get the user input and process it (writing it into a file), can I just call the

Re: Problem with simple search func in template

2010-07-16 Thread maciekjbl
Just as I thought, such a simple thing. Thanks, very much now it's working. :) On 16 Lip, 15:03, Nuno Maltez wrote: > On Fri, Jul 16, 2010 at 1:56 PM, maciekjbl wrote: > > urlpatterns = patterns('django.views.generic.list_detail', > >    

Re: Redefine True and False for Boolean and/or NullBoolean Fields?

2010-07-16 Thread rmschne
To complete the story, in case someone finds this in the future, I ended up with the following which at the time of this writing seems to work: class MyNullBooleanField(models.NullBooleanField): """Designed to work with how Microsoft Access stores booleans as -1 and 0 into MySQL. The

Re: Logic

2010-07-16 Thread bobhaugen
On Jul 16, 7:56 am, Ravango wrote: > I mean by web server, running a web site, which anyone could use to > perform a specific task. In my case, I would be running a program that > people might be interested to use. Towards building a web server, > currently, using Django, I'm

Re: Template Syntax Errors

2010-07-16 Thread Karen Tracey
On Fri, Jul 16, 2010 at 5:43 AM, Jx wrote: > 129. self._callback = get_callable(self._callback_str) > File "/usr/local/lib/python2.6/dist-packages/django/utils/ > functional.py" in wrapper > 124. result = func(*args) > File

Re: Problem with simple search func in template

2010-07-16 Thread Nuno Maltez
On Fri, Jul 16, 2010 at 1:56 PM, maciekjbl wrote: > urlpatterns = patterns('django.views.generic.list_detail', >    url(r'^(?P[-\w]+)/$', 'object_detail', info, name="link- > prod"), >    url(r'^$','object_list', info, name="link-home"), > > ) > > urlpatterns +=

Custom form field validation and required=False

2010-07-16 Thread Paddy Joy
I'm trying to create a custom form field that will validate against auth.user. The field should throw a validation error if the user does not exist, otherwise the field should validate. So far I have: class ExistingUserField(forms.CharField): def clean(self, value): # Check if the

Re: Logic

2010-07-16 Thread Ravango
I mean by web server, running a web site, which anyone could use to perform a specific task. In my case, I would be running a program that people might be interested to use. Towards building a web server, currently, using Django, I'm creating a local web server. On Jul 16, 1:44 pm, Kenneth

Problem with simple search func in template

2010-07-16 Thread maciekjbl
Hi, I done a little search function in my app, it isn't working at all. Now I don't know if it's problem with query, views or something else. My code # views.py from django.shortcuts import render_to_response from django.db.models import Q from web_aplikacje.produkty.models import Produkt,

Re: Filter data inside template

2010-07-16 Thread Daniel Roseman
On 16 July 2010 13:30, Luca Casagrande wrote: > On Jul 16, 2:22 pm, Daniel Roseman wrote: >> On Jul 16, 1:18 pm, Luca Casagrande wrote: >> >> > Hello everybody, >> > is it possible to filter data inside template? I

Application hosting

2010-07-16 Thread Waleria
Hi all, Well, I will begin setting up a machine to host my applications python / django. My questions are: 1º - Requeriments to configure this machine. My application is a form where i enter with parameters, generate a image, .dat file and pdf file and will have several internal and external

Re: Filter data inside template

2010-07-16 Thread Daniel Roseman
On Jul 16, 1:18 pm, Luca Casagrande wrote: > Hello everybody, > is it possible to filter data inside template? I have 2 models with a > foreignkey relationship: > > class Requests(models.Model): >         name = models.CharField(max_length=16) >         surname =

Filter data inside template

2010-07-16 Thread Luca Casagrande
Hello everybody, is it possible to filter data inside template? I have 2 models with a foreignkey relationship: class Requests(models.Model): name = models.CharField(max_length=16) surname = models.CharField(max_length=16) class Information(models.Model): request =

Database systems

2010-07-16 Thread Doane
I'm a new Django user. Which database management system should I use in developing Django apps, MySQL or PostgreSQL? Why? Thanks...Doane -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Logic

2010-07-16 Thread Kenneth Gonsalves
On Friday 16 July 2010 14:51:22 Ravango wrote: > I've just started using Django for my project to create a web server. > what do you mean by 'web server'? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google

Advice on creating apps

2010-07-16 Thread barun
Hi All, I need some sage advice on creating Django apps. Currently I'm developing a web application, which has few distinct sections like, Theory, Self-evaluation, Results, References, Feedback and so on. Kinda online tutorial site. :) The question am pondering over is, whether I should create

Logic

2010-07-16 Thread Ravango
Hi, I've just started using Django for my project to create a web server. I've written a software in Python which does some operations on the input and produce an output. Yes, the input is user provided on a web server, and the output is displayed on the web. So, where do I call the Python

Template Syntax Errors

2010-07-16 Thread Jx
Hi, i'm encountering some weird error in the template of my application. The error enountered was: Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/ base.py" in get_response 100. response = callback(request, *callback_args, **callback_kwargs)

Re: Redefine True and False for Boolean and/or NullBoolean Fields?

2010-07-16 Thread rmschne
(While slapping my forehead) ... figured it out. Have to remove "models" as a prefix to MyNullBooleanField, as of course, the field definition is not in models. forinvoice.MyNullBooleanField(null=True, db_column='forinvoice', blank=True) Now to get on debugging the functionality of the new

Re: Redefine True and False for Boolean and/or NullBoolean Fields?

2010-07-16 Thread rmschne
Tom, Thanks ... Can I get a bit more of your brain power. I'm struggling with understanding the custom-model-fields document sufficient to allow me to do it. At the top of the models.py files, I put in: class MyNullBooleanField(models.NullBooleanField): """Designed to work with how