Re: Creating a simple contact form

2011-06-16 Thread Kenneth Gonsalves
On Thu, 2011-06-16 at 23:27 -0700, raj wrote: > The problem is that I can't seem to get it to > work. what does not work? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you are subscribed to the Google Groups "D

Creating a simple contact form

2011-06-16 Thread raj
Hey guys, I have a webfaction account, and I was trying to get a contact form working for my website. The problem is that I can't seem to get it to work. Can someone walk me through this? I couldn't figure it out from the djangobook tutorial. I think something is wrong with my settings and stuff.

Re: Admin User registration problem...

2011-06-16 Thread ashish tiwari
thank you... -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/T4B46pv50HwJ. To post to this group, send email to django-users@googlegroups.com. To unsubscrib

Re: Django and Rich Client

2011-06-16 Thread Marwan Al-Sabbagh
Out of curiosity is there a specific need for running a rich client instead of just accessing the system app through a web browser. On Fri, Jun 10, 2011 at 4:16 AM, Ovnicraft wrote: > soaplib > > On Thu, Jun 9, 2011 at 1:10 PM, Knack wrote: > >> Hi guys, >> >> I've

email-auth without sending the activation email

2011-06-16 Thread Anaconda
I am using the plugin email-auth which works very well but it sends an activation email to the user and i find that this extra step will reduce signups. Is there a way to not have the activation e-mail but rather the user just gets logged in after registering email/password and redirected to home

Re: Django 1.3, Apache/2.2.14, mod_wsgi/2.8 Python/2.6.5 mod_wsgi (pid=6676): Unable to get bucket brigade for request

2011-06-16 Thread chycyra
sorry for error typing: the server is Ubuntu 10.04 and i'm no using HTTPS request On Jun 17, 9:14 am, Heru Eko Susanto wrote: > hello all, > > i'm using Apache + mod_wsgi on ubuntu 9.10 . today i have error on my > server: > > [Tue Jun 14 06:27:49 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.

Re: Newbie questions about models / databases

2011-06-16 Thread Kenneth Gonsalves
On Thu, 2011-06-16 at 11:26 -0700, Dan Stromberg wrote: > 1. How does syncdb decide what to write to the sqlite file, and what > not >to? Does it only write info for a given application once? yes - unless the model is removed - when it asks you >2. If I set up a model, syncdb it, change t

Django 1.3, Apache/2.2.14, mod_wsgi/2.8 Python/2.6.5 mod_wsgi (pid=6676): Unable to get bucket brigade for request

2011-06-16 Thread Heru Eko Susanto
hello all, i'm using Apache + mod_wsgi on ubuntu 9.10 . today i have error on my server: [Tue Jun 14 06:27:49 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations [Fri Jun 17 07:29:57 2011] [error] [client 192.168.1.4] (70007)The timeout specifi

mod_wsgi: URL appended to wsgi script location

2011-06-16 Thread Alan
Hello-- I'm in the painful position of having to get a production Django site hosted on a windows machine... My setup: Windows 7 Apache 2.2 Python 2.6 mod_wsgi 3.3 In my httpd.conf: WSGIScriptAlias /testsite/ C:/django/testsite/apache/django.wsgi Visiting http://localhost/testsite shows the home

is there any reason our sqlite3 DB on disk wouldn't reflect the changes made after we get a signal?

2011-06-16 Thread Sam Roberts
We are finding that after operations that add records to the DB, we can run the cmd-line sqlite3 utility and see that the DB has been updated. However, when we delete records, in the post_delete signal, we've run iterdump() on the connection handle and seen the records are gone, but still don't se

audit changes to models

2011-06-16 Thread Brian
Hi, I need to add a basic audit capability to a django app. There seem to be lots of superficially similar apps and modules around: django-audit, django-audit-log, AuditTrail, SimpleHistory. Does anyone have any experience with these or recommendations? The models I need to track are quite sim

Re: Django Class Based FormView and multiple forms

2011-06-16 Thread Iván Raskovsky
On Thu, Jun 16, 2011 at 11:43 AM, Michel Thadeu Sabchuk wrote: > Hi Russ, > >> ... this is an >> area where I think there is lots of room for improvement now that we >> have a class-based foundation to work with. > > Thanks for your reply! > > I started my own "multiple forms view": > > https://gi

Re: auth.LoginTest seems to require sites

2011-06-16 Thread Brian
In case anyone else has the same issue, the problem stopped when I upgraded django from 1.2 to 1.3. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/QwG2RwR

Re: When to use a model property vs. method?

2011-06-16 Thread Micky Hulse
I am reading through Chapter5+ of Dive Into Python now... Seems like that should cover all of my questions! :D Sorry to bug the list with my ramblings. Thanks again Bruno! Have a great day all! Cheers, Micky -- You received this message because you are subscribed to the Google Groups "Django

Re: Single auth database for multiple (different) django projects

2011-06-16 Thread DK
On Thursday, June 16, 2011 2:38:52 PM UTC+2, SleepyCal wrote: > > > Having a central authorization point is the way forward. I'm a bit confused > by this comment though: > > "But this still do not solve problem of NOT having multiple accounts in > several django projects" > > Could you explain

Re: When to use a model property vs. method?

2011-06-16 Thread Micky Hulse
How's this for a rule-of-thumb(?): 1. Use a property (class/instance attribute) when an argument(s) is not needed. 2. If an argument(s) is needed (for runtime(?) calculations and/or class/instance attributes need to be sanitized/checked/other), then use a method (or getter/setter/descriptor). No

Django on IIS7 With Windows Server 2008 R2

2011-06-16 Thread Lurton, David
Hi everyone, I'm new to Django and to this group. I've been struggling getting Django 1.3 to work under Windows 2008 R2 and IIS7 for about a week or so and I've just found that some of the .py files required by PyISAPIe refers to some signal dispatching methods which were removed from Djan

Re: When to use a model property vs. method?

2011-06-16 Thread Micky Hulse
Hi Bruno! Thank you so much for your help. I really appreciate the pro assistance. :) On Thu, Jun 16, 2011 at 1:42 PM, bruno desthuilliers wrote: > > This could be written much more simply as "return self.modified > > self.created" > Omg, thanks! That's way better. :D >> def get_separator(sel

Re: Admin User registration problem...

2011-06-16 Thread Kenny Meyer
> i want to create superuser(administrator) on registration User.objects.create_superuser is your friend. >             user=User.objects.create_user( >                 username=form.cleaned_data['username'], >                 password=form.cleaned_data['password1'], >                 email=fo

Re: When to use a model property vs. method?

2011-06-16 Thread bruno desthuilliers
On 16 juin, 20:07, Micky Hulse wrote: > Hello, > > Just curious what the rule-of-thumb is for when it comes to using > model methods vs. properties. For example: > > [code] > > @property > def is_modified(self): >     if self.modified > self.created: >         return True >     return False Th

Re: Newbie questions about models / databases

2011-06-16 Thread Shawn Milochik
On 06/16/2011 02:26 PM, Dan Stromberg wrote: 1. How does syncdb decide what to write to the sqlite file, and what not to? Does it only write info for a given application once? 2. If I set up a model, syncdb it, change the model, and syncdb again - will any changes be seen in

Re: IOError

2011-06-16 Thread Shawn Milochik
On 06/16/2011 03:00 PM, vivek kumar bagaria wrote: IOError at /search/ The path to your Whoosh index 'search/engine' is not writable for the current user/group" it will be very helpful if you could help me regarding this error thanks in advance This is not a Django issue but a Linux/UNIX

Re: How to load CSS: Django Template, CSS and image

2011-06-16 Thread Tim Shaffer
Shouldn't you really be putting your js/css in your static directory? Check out the docs for managing static files: https://docs.djangoproject.com/en/1.3/howto/static-files/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussi

IOError

2011-06-16 Thread vivek kumar bagaria
hi all, i am vivek and was currently working on a project and wanted to implement search using haystack. i followed the documentation and could get the template working and indexed the model(the name is users) when i tried to use it on localhost i got error " IOError at /sear

overriding widget for "group" in User model

2011-06-16 Thread Brian Craft
Is there an easy way to get checkboxes for groups in the User admin, rather than a multiselect? -- 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, s

Should I use Pinax for my social networking site?

2011-06-16 Thread slothario
I apologize in advance if you get questions like this all the time - I did a search and read through a few posts, but I want to see if anyone has any direct advice for me. :) I'm working on a startup and we're currently deciding what path to go down. We're considering something out-of-the-box like

Newbie questions about models / databases

2011-06-16 Thread Dan Stromberg
I'm developing my first django application, but I have a lot of Python experience. I have a couple of related questions about database/model information and manage.py syncdb, in combination with sqlite3: 1. How does syncdb decide what to write to the sqlite file, and what not to? Does it o

How to load CSS: Django Template, CSS and image

2011-06-16 Thread yesnik
In this lesson I’ll show you how to make Django load your template containing CSS and image. 1. Let’s create a project ‘girl’: django-admin.py startproject girl 2. In ‘girl’ directory we create 2 new directories: - templates - media 3. Put index.html in ‘templates’ directory. -- index.htm

Intermittent OperationalError on multiple Django servers

2011-06-16 Thread Steven Smith
On two separate Django servers, I'm seeing variations on this error: File "/usr/lib64/python2.6/site-packages/django/db/models/sql/ compiler.py", line 731, in execute_sql cursor = self.connection.cursor() File "/usr/lib64/python2.6/site-packages/django/db/backends/ __init__.py", line 75, in

Re: Field Type for S3 Storage?

2011-06-16 Thread Ivo Brodien
> How does the |mageField know the dimensions of the image? Nevermind. Just saw that the file gets opened for the dimension by looking at the source code. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

satchmo images

2011-06-16 Thread Bobby Roberts
anyone know where to adjust the upload size of the product images in satchmo? -- 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 djan

Field Type for S3 Storage?

2011-06-16 Thread Ivo Brodien
hello, I am planing a django application, which manages photos that are stored in a S3 Bucket. With boto and django-storages I can declare an ImageField and images get uploaded to S3 easily. But I want to make a mobile client use an API to upload photos directly to S3 (using signed Forms) and

When to use a model property vs. method?

2011-06-16 Thread Micky Hulse
Hello, Just curious what the rule-of-thumb is for when it comes to using model methods vs. properties. For example: [code] @property def is_modified(self): if self.modified > self.created: return True return False def get_separator(self): return ' :: ' [/code] I feel like

Re: When to use a model property vs. method?

2011-06-16 Thread Micky Hulse
On Thu, Jun 16, 2011 at 11:07 AM, Micky Hulse wrote: > Just hoping some of the pro Django/Python users on this list could > school me on this one. :D Actually, here's an example that I am working on now. In my model, I have a CharField that holds the latitude/longitude with values that look like

Re: Helper methods like rails or taglibs/tagfiles like java

2011-06-16 Thread Rodrigo Gomes
Yes, but the point is not about generate code. Is to follow a DRY principle...If I have a "multiple select list" with a specific behavior,look-and-feel, with some javascript surrounding the code, etc, I don't want to write this everywhere...I just want to create once and use it anywhere...with just

Chat

2011-06-16 Thread Nadae Ivar BADIO
Hi, I am programing a chat with python django anyone have a example for me please. -- 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

Re: ManyToMany field and deletes

2011-06-16 Thread Marc Aymerich
On Thu, Jun 16, 2011 at 5:36 PM, Tom Evans wrote: > On Thu, Jun 16, 2011 at 4:16 PM, Marc Aymerich wrote: >> On Thu, Jun 16, 2011 at 3:55 PM, Russell Keith-Magee >> wrote: >> >> Hi Russell, many thanks for your answer :) >> >>> It has this behaviour because it's the most sensible general approac

Admin User registration problem...

2011-06-16 Thread ashish tiwari
hi friends, i developed an application in django-nonrel with appengine. i'm using django forms for user registration. forms.py class RegistrationForm(forms.Form): username=forms.CharField(label=u'Username',max_length=30) email=forms.CharField(label=u'Email') is_staff=forms.Boo

django form radio input layout

2011-06-16 Thread NateB
Hello all, I posted this to stackoverflow a couple weeks ago, but I have yet to get any takers. I was able to backburner this for a little bit, but I'd like to see it wrapped up. In my form class, I have a forms.ChoiceField whose widget is a forms.RadioSelect widget, one of whose choices needs

Re: ManyToMany field and deletes

2011-06-16 Thread Tom Evans
On Thu, Jun 16, 2011 at 4:16 PM, Marc Aymerich wrote: > On Thu, Jun 16, 2011 at 3:55 PM, Russell Keith-Magee > wrote: > > Hi Russell, many thanks for your answer :) > >> It has this behaviour because it's the most sensible general approach >> when an m2m relation is involved. >> >> Consider the g

Re: ManyToMany field and deletes

2011-06-16 Thread Marc Aymerich
On Thu, Jun 16, 2011 at 3:55 PM, Russell Keith-Magee wrote: Hi Russell, many thanks for your answer :) > It has this behaviour because it's the most sensible general approach > when an m2m relation is involved. > > Consider the general case: a relation between Person and Club. A > person can bel

Re: Django Class Based FormView and multiple forms

2011-06-16 Thread Michel Thadeu Sabchuk
Hi Russ, > ... this is an > area where I think there is lots of room for improvement now that we > have a class-based foundation to work with. Thanks for your reply! I started my own "multiple forms view": https://gist.github.com/1029336 I see the ticket's approach is much more complete, I wil

Re: Django Class Based FormView and multiple forms

2011-06-16 Thread Russell Keith-Magee
On Wed, Jun 8, 2011 at 10:33 PM, Michel Thadeu Sabchuk wrote: > Hi guys, > > Is there a general guideline to work with class based generic views > and multiple forms? I already use FormView but it seems focused on a > single form. > > Suppose a user profile registration: with function based views,

Re: ManyToMany field and deletes

2011-06-16 Thread Russell Keith-Magee
On Mon, Jun 13, 2011 at 3:54 AM, Marc Aymerich wrote: > Hi , > I realize that django doesn't delete related objects when M2M field > hasn't remaining relations. I don't see why django has this behaviour > by default. It has this behaviour because it's the most sensible general approach when an m2

Re: Single auth database for multiple (different) django projects

2011-06-16 Thread Cal Leeming [Simplicity Media Ltd]
On Thu, Jun 16, 2011 at 1:26 PM, DK wrote: > Hi, > > I need to develop several django projects (let's assume that there are > highly different one from each other). The common thing is users/groups > data. If a user register into one of this sites, he should be able to use > this same account cre

Re: Single auth database for multiple (different) django projects

2011-06-16 Thread Shawn Milochik
How about Celery & RabbitMQ? Use Django's signaling functionality to kick off a Celery task, use Celery to make it async and nearly real-time, then transfer the info securely. I recommend *not* allowing the data to be serialized in the RabbitMQ message (for security & performance), but rathe

Single auth database for multiple (different) django projects

2011-06-16 Thread DK
Hi, I need to develop several django projects (let's assume that there are highly different one from each other). The common thing is users/groups data. If a user register into one of this sites, he should be able to use this same account credentials for all other sites. I really didn't find a

Re: Django aggregation equivalent of SUM(IF(field = x, 1, 0)) - 40 million row table

2011-06-16 Thread Cal Leeming [Simplicity Media Ltd]
Hmm, to be honest, most people don't really have the amount of data that we have, and thus would be able to use multiple queries with a filter() instead. I've had a look through the Django sql aggregates and models aggregates, however I realised that for this to be included in the core, I'd have t

Re: Django aggregation equivalent of SUM(IF(field = x, 1, 0)) - 40 million row table

2011-06-16 Thread Russell Keith-Magee
On Thu, Jun 16, 2011 at 7:41 PM, Cal Leeming [Simplicity Media Ltd] wrote: > Hi Russ, > Thanks for getting back to me. Ticket 11305 looks like what I need, but the > code is extremely hacky. The second link you pasted seems to take the right > approach, and I agree with you that the F() object sho

Re: Django aggregation equivalent of SUM(IF(field = x, 1, 0)) - 40 million row table

2011-06-16 Thread Cal Leeming [Simplicity Media Ltd]
Hi Russ, Thanks for getting back to me. Ticket 11305 looks like what I need, but the code is extremely hacky. The second link you pasted seems to take the right approach, and I agree with you that the F() object should be used. If I create a sane/clean patch (with F() support) as a stand alone cl

Re: Django aggregation equivalent of SUM(IF(field = x, 1, 0)) - 40 million row table

2011-06-16 Thread Russell Keith-Magee
On Thu, Jun 16, 2011 at 7:20 PM, Cal Leeming [Simplicity Media Ltd] wrote: > Hey guys, > I've picked through as much as the Django docs as possible, but can't seem > to find any reference to Sum() allowing any in-method conditionals (i.e. a > conditional to Sum() with an in-line IF(), without the

Django aggregation equivalent of SUM(IF(field = x, 1, 0)) - 40 million row table

2011-06-16 Thread Cal Leeming [Simplicity Media Ltd]
Hey guys, I've picked through as much as the Django docs as possible, but can't seem to find any reference to Sum() allowing any in-method conditionals (i.e. a conditional to Sum() with an in-line IF(), without the use of a WHERE/filter). The original query in MySQL is: mysql> select SUM(is_spam

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Tom Evans
On Thu, Jun 16, 2011 at 11:55 AM, Kenneth Gonsalves wrote: > those entries are old. The point is that the built in User.get_profile() > only works with onetoone. The difference is in the reverse lookup. That is not correct. It will still work perfectly with ForeignKey(unique=True), it is just be

MongoDB with django?

2011-06-16 Thread Roy Smith
I'm exploring packages to use MongoDB with django. So far, I've found: * DjanMon (https://github.com/mdirolf/djanMon/) * Mongoengine (http://mongoengine.org) * MongoKIT * Mango * Pymongo-bongo * Mongodb-engine (https://github.com/django-mongodb-engine/mongodb- engine) * Django-nonrel (http://www.

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Kenneth Gonsalves
On Thu, 2011-06-16 at 12:24 +0200, Ivo Brodien wrote: > This Django Book however is old and in the new one in Chapter 14: > Sessions, Users, and Registration the User Profile does not get > mentioned anymore. > > Also the first search result in google for “django user profile” is > James Bennetts

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Ivo Brodien
> In the paragraph preceding this link it explicitly states to use > OneToOneField. The Django documentation is canonical, if it says one > thing, and elsewhere on the internet says something else, the internet > is wrong. The internet is often wrong. > > The difference between a ForeignKey(unique

Re: Internationalization query for List & dictionary

2011-06-16 Thread Anand Agarwal
Thanks Tom Regards Anand http://bootstraptoday.com On Thu, Jun 16, 2011 at 3:49 PM, Tom Evans wrote: > On Thu, Jun 16, 2011 at 11:16 AM, Anand Agarwal > wrote: > > Hi All > > > > Is there a way to define _ for items in python dictionary and list other > > than individual items using gettex

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Tom Evans
On Thu, Jun 16, 2011 at 11:24 AM, Ivo Brodien wrote: > > Actually, I've read that ForeignKey is now the way to specify it. > > unique foreign key *was* the correct way as onetoone was broken. This is > no longer true. > > where is the most up to date info on this? > In the dev docs about storing a

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Ivo Brodien
>> Actually, I've read that ForeignKey is now the way to specify it. > > unique foreign key *was* the correct way as onetoone was broken. This is > no longer true. where is the most up to date info on this? In the dev docs about storing additional user info on djangoproject.com there is a lin

Re: Internationalization query for List & dictionary

2011-06-16 Thread Tom Evans
On Thu, Jun 16, 2011 at 11:16 AM, Anand Agarwal wrote: > Hi All > > Is there a way to define _ for items in python dictionary and list other > than individual items using gettext_lazy? > > eg: _(['hello', 'world'])  does this work? > > or do I have to do > > [_('hello'), _('world')] > > > similarl

Internationalization query for List & dictionary

2011-06-16 Thread Anand Agarwal
Hi All Is there a way to define _ for items in python dictionary and list other than individual items using gettext_lazy? eg: _(['hello', 'world']) does this work? or do I have to do [_('hello'), _('world')] similarly whats the syntax for dictionary?? Regards Anand http://bootstraptoday.co

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Benedict Verheyen
On 16/06/2011 11:29, Kenneth Gonsalves wrote: > On Thu, 2011-06-16 at 11:10 +0200, Benedict Verheyen wrote: >> On 16/06/2011 10:43, Kenneth Gonsalves wrote: >>> On Thu, 2011-06-16 at 10:10 +0200, Benedict Verheyen wrote: user = models.ForeignKey(User, unique=True) >>> >>> you need onetoone for

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Kenneth Gonsalves
On Thu, 2011-06-16 at 11:10 +0200, Benedict Verheyen wrote: > On 16/06/2011 10:43, Kenneth Gonsalves wrote: > > On Thu, 2011-06-16 at 10:10 +0200, Benedict Verheyen wrote: > >> user = models.ForeignKey(User, unique=True) > > > > you need onetoone for this to work. > > Hi, > > Actually, I've read

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Benedict Verheyen
On 16/06/2011 10:43, Kenneth Gonsalves wrote: > On Thu, 2011-06-16 at 10:10 +0200, Benedict Verheyen wrote: >> user = models.ForeignKey(User, unique=True) > > you need onetoone for this to work. Hi, Actually, I've read that ForeignKey is now the way to specify it. Anyway, the problem has been so

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Benedict Verheyen
On 16/06/2011 10:27, Ivo Brodien wrote: > an idea: Do you have a __init__.py in every subfolder? also the models and > userprofile folder under calltracking_main ? > > Ivo, i do have an __init__.py in every folder. As Jari pointed out, it was the appname in my UserProfile model that was incor

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Benedict Verheyen
On 16/06/2011 10:25, Jani Tiainen wrote: > On Thu, 2011-06-16 at 10:10 +0200, Benedict Verheyen wrote: >> Hi, >> >> >> The syncdb command doesn't want to create the UserProfile table. >> Also when I was trying to get this working while running the app, >> it was complaining about AUTH_PROFILE_MODUL

Re: django.db.utils.IntegrityError: null value in column “layer_id_id” violates not-null constraint . How to debug ?

2011-06-16 Thread Satyajit Sarangi
What I want is a very simple thing . I want the primary key of Sdr_Layer to be the foreign key of Test table . How do I manage it ? And , I am assigning values to Test via Layermapping tool , which as you said that passes a dict . I think the problem here is the layermapping tries to map onto the

Re: django.db.utils.IntegrityError: null value in column “layer_id_id” violates not-null constraint . How to debug ?

2011-06-16 Thread Daniel Roseman
On Wednesday, 15 June 2011 22:25:24 UTC+1, Satyajit Sarangi wrote: > > his is my models.py > > from django.db import models > > class Sdr_Layer(models.Model): layer_name = > models.CharField(max_length = 100) > layer_attribute_name=models.CharField(max_length=100) > > # This is an auto-generat

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Kenneth Gonsalves
On Thu, 2011-06-16 at 10:10 +0200, Benedict Verheyen wrote: > user = models.ForeignKey(User, unique=True) you need onetoone for this to work. -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you are subscribed to th

Should/Can I use API methods for other views? (django-piston)

2011-06-16 Thread Ivo Brodien
I was wondering if I can/should access the API methods I use with django-piston. Lets say I want to get some objects belonging to a user in the read API method. On a web request that does not use the API call but is a simple request from a browser client should my view than call the read method

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Ivo Brodien
an idea: Do you have a __init__.py in every subfolder? also the models and userprofile folder under calltracking_main ? On Jun 16, 2011, at 10:10 AM, Benedict Verheyen wrote: > Hi, > > > The syncdb command doesn't want to create the UserProfile table. > Also when I was trying to get this wor

Re: syncdb doesn't create UserProfile table

2011-06-16 Thread Jani Tiainen
On Thu, 2011-06-16 at 10:10 +0200, Benedict Verheyen wrote: > Hi, > > > The syncdb command doesn't want to create the UserProfile table. > Also when I was trying to get this working while running the app, > it was complaining about AUTH_PROFILE_MODULE. > It is however correctly specified in my se

syncdb doesn't create UserProfile table

2011-06-16 Thread Benedict Verheyen
Hi, The syncdb command doesn't want to create the UserProfile table. Also when I was trying to get this working while running the app, it was complaining about AUTH_PROFILE_MODULE. It is however correctly specified in my settings.py: ... AUTH_PROFILE_MODULE = 'calltracking_main.UserProfile' ... I