Setting Up Django on Vista and Creating a Database

2008-11-10 Thread John Antony
I am currently using Vista OS I have installed Python in the path D:\Python26\ and extracted the tarred file downloaded from www.djangoprojects.com ie "Django-1.0.tar.gz" in the path D:\Python26\Django-1.0\Django-1.0 I am however unable to intall Django on typing the following command in command

Re: Using Django

2008-11-10 Thread Wayne Dyck
It looks to me like your line 21 is outside the patterns set so it's just a line of code hanging out there on its own. Try this, urlpatterns = patterns('', (r'^$', 'SITENAME.polls.views.current_datetime'), (r'^polls/$', 'SITENAME.polls.views.index'), (r'^polls/(?P\d+)/$',

Re: Using Django

2008-11-10 Thread Daniel Roseman
On Nov 11, 6:52 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > It appears that the 500 error was a result of Dreamhost's process > watcher killing scripts. I'm still not sure where the problem is > originating from but coincidently I am now getting syntax errors from > django i.e., no 500

Re: Sync Database failed, using "python manage.py syncdb"

2008-11-10 Thread Daniel Roseman
On Nov 11, 1:18 am, Sean <[EMAIL PROTECTED]> wrote: > When I run the command "python manage.py syncdb" to sync database, but > failed > > I got the following error messages: > > File "C:\Python25\Lib\site-packages\django\contrib\auth\management > \_init_.py". line 47 , in >

Re: Using Django

2008-11-10 Thread [EMAIL PROTECTED]
It appears that the 500 error was a result of Dreamhost's process watcher killing scripts. I'm still not sure where the problem is originating from but coincidently I am now getting syntax errors from django i.e., no 500 errors - at current time. Does anyone know why I am getting a syntax error

Re: Sending mass, yet personalised email newsletters using Django

2008-11-10 Thread Doug B
I can't claim best way, but the way we do it is to have a few django models for storing the messages, and some help from the email, and smptlib libraries. Models: Mailserver: model for storing connection information for connecting to a standard smtp server, with mixin class using smtplib to

Re: apache and django

2008-11-10 Thread Graham Dumpleton
Are you setting up Apache to serve your Django static media as instructions indicate you to do? If you have, have you put in the direct URL to where the static media should hosted into your browser to see if it works? Have you then compared that URL to what HTML pages are trying to access for

Switching my website to Django

2008-11-10 Thread Douglass Clem
Hello fellow geeks. I'm quite new to Django (just finished the tutorials), and have decided that when I switch my website host early next year, I'll be building the new site on Django. I am looking for advice, and have posted my hopes/plans on my current blog (link below). If some of you could

Re: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

2008-11-10 Thread ayayalar
Thank you for the reply Karen. your suggestion worked just fine. On Nov 10, 9:29 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Nov 10, 2008 at 6:10 PM, ayayalar <[EMAIL PROTECTED]> wrote: > > > Hello I am new to Django. > > > I am trying to exercise "templates" through the interactive

Re: apache and django

2008-11-10 Thread prem1er
Hey everyone, thanks for all your help. I'm currently able to get django running now on apache. But the style sheets aren't working so I'm guessing I have the paths wrong somewhere in my apache config. Anyone see a problem? I feel like it has to do with PythonOption django.root / When I

Re: Error in: python manage.py syncdb

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 8:16 PM, Sean <[EMAIL PROTECTED]> wrote: > > When I run the command python manage.py syncdb to sync database, but > failed > > I got the following error messages: > > File "C:\Python25\Lib\site-packages\django\contrib\auth\management > \_init_.py". line 47 , in >

Re: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 6:10 PM, ayayalar <[EMAIL PROTECTED]> wrote: > > Hello I am new to Django. > > I am trying to exercise "templates" through the interactive shell, > however I end up getting this error. Can anyone help? > > here is the exact steps I follow: > > 1) cd C:\Django\mysite > >

Aborting streaming uploads using UploadFileExceptions

2008-11-10 Thread Carmelly
The idea is, I would like to detect and abort an upload where the file size is over a certain limit, or if it's not a video file. Now with streaming uploads, this should be possible. I've written an upload handler: class UploadValidationHandler(FileUploadHandler): def handle_raw_input(self,

Re: Recommendation system problem

2008-11-10 Thread Mr. Z
Jonathan, Thank you! I've tried the code you posted and it works like a charm. It really has helped me to understand how to do it. I have modified it to include also a calculation for how many teas have in common Peter and the people with at least one of the same teas as Peter. This way I can

Sync Database failed, using "python manage.py syncdb"

2008-11-10 Thread Sean
When I run the command "python manage.py syncdb" to sync database, but failed I got the following error messages: File "C:\Python25\Lib\site-packages\django\contrib\auth\management \_init_.py". line 47 , in signals.post_syncdb.connect

Error in: python manage.py syncdb

2008-11-10 Thread Sean
When I run the command python manage.py syncdb to sync database, but failed I got the following error messages: File "C:\Python25\Lib\site-packages\django\contrib\auth\management \_init_.py". line 47 , in signals.post_syncdb.connect

Re: has more than 1 ForeignKey to

2008-11-10 Thread jd.strickler
Klaas, When you create a Foreign Key to another model, Django also sets up the "reverse relation". If you specify more than one foreign key to the same model, you must give different names for this reverse relationship.

Re: Apache Segmentation Fault on succesful authentication

2008-11-10 Thread Graham Dumpleton
On Nov 10, 8:53 pm, huw_at1 <[EMAIL PROTECTED]> wrote: > Hi Graham and thanks for the response again. > > I seem to remember when I originally built this 64-bit mod_python > module I had a lot of difficulty. I was getting error messages which I > solved by following the solution in this

Re: using Etags or http response code 304 (not modified)

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 4:14 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I've tried using the USE_ETAGS=true in my project settings and even > tried using the ConditionalGet Middleware. However, whenever an http > request is made to my page, it always seems to return a http code 200 >

Re: apache and django

2008-11-10 Thread Graham Dumpleton
On Nov 10, 5:50 pm, "DULMANDAKH Sukhbaatar" <[EMAIL PROTECTED]> wrote: > > Ok.  But are the configuration lines any different or will they > > change.  If anyone has a good tutorial written could you please post > > it.  Also, What does this line mean ? > > SetEnv DJANGO_SETTINGS_MODULE

Sending mass, yet personalised email newsletters using Django

2008-11-10 Thread Patrick J. Anderson
I'm in the process of writing a simple newsletter managers with a web interface and since I've been a Django user for the past 2 years, I thought of using Django for this task. Some of the main requirements are: * Personalised HTML/text messages * Manual delivery twice a week * Message

Re: Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread ilmarik
you're absolutely right. I shouldn't say that but still its easier to get information from this group rather than by reading the docs. last year I was working with Kohana framework and it was pain in the ass and great loss of time to learn from source code because documentation was strongly

ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

2008-11-10 Thread ayayalar
Hello I am new to Django. I am trying to exercise "templates" through the interactive shell, however I end up getting this error. Can anyone help? here is the exact steps I follow: 1) cd C:\Django\mysite manage.py settings.py settings.pyc urls.py urls.pyc views.py

Re: SQL in queryset extra method not showing in results

2008-11-10 Thread chris
Now, to answer myself, I found the solution: qs = Reference.objects.all().extra(select={'title_count' :'COUNT(*)'}).values('title', 'title_count') qs.query.group_by = ['title'] This gives me exactly the aggregated list of titles with the number of occurrences. The trick with group_by is

Re: SQL in queryset extra method not showing in results

2008-11-10 Thread chris
Thanks Malcolm, This brings me one step closer, but not quite there. On Nov 10, 8:21 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > SELECT title, COUNT (*) AS count FROM persons_reference GROUP BY title > > ORDER BY count DESC > > > Trying to get the same from the Django ORM, I do the

Re: apache and django

2008-11-10 Thread prem1er
ServerName www.dev.xxx.us ServerAlias dev.xxx.us DocumentRoot /home/dev/djprojects/xxx Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all AddHandler

Django pluggable adressbook/mini-CRM?

2008-11-10 Thread Mikkel Høgh
Hi there, I'm working on a small time tracking app (http://github.com/mikl/djime/ tree/master – in case anyone is interested), and I'm looking to track time spent on clients, projects and tasks, and currently I'm on the lookout for some sort of address book or CRM that I could utilize instead of

Model manager not working with related sets of records.

2008-11-10 Thread John M
I have the following model (http://dpaste.com/89869/). The model is for a status report application I'm trying to create at work (so I don't have to do powerpoints). So each report, has several tasks / milestones associated with it. My problem is when I use a related set, the custom manager

using Etags or http response code 304 (not modified)

2008-11-10 Thread [EMAIL PROTECTED]
I've tried using the USE_ETAGS=true in my project settings and even tried using the ConditionalGet Middleware. However, whenever an http request is made to my page, it always seems to return a http code 200 along with the entire data. how / what do I need to do so that a http 304 is issued if

Re: apache and django

2008-11-10 Thread Brandon Martin
On Mon, 10 Nov 2008 12:55:44 -0800 (PST), prem1er <[EMAIL PROTECTED]> wrote: > > Ok this is where I'm at. Here is my config file for sites-available. > > > ServerName www.dev.xxx.us > ServerAlias dev.xxx.us > DocumentRoot /home/dev/djprojects/xxx > >

Re: apache and django

2008-11-10 Thread prem1er
Ok this is where I'm at. Here is my config file for sites-available. ServerName www.dev.xxx.us ServerAlias dev.xxx.us DocumentRoot /home/dev/djprojects/xxx Options Indexes FollowSymLinks MultiViews AllowOverride None Order

Re: Custom Inline Forms with InlineFormsets

2008-11-10 Thread John Boxall
I take it back. I over thought it - Instead of using a custom inline form model just pass the parameters directly to inlineformset_factory as per it's spec: def inlineformset_factory(parent_model, model, form=ModelForm, formset=BaseInlineFormSet, fk_name=None,

Custom Inline Forms with InlineFormsets

2008-11-10 Thread John Boxall
Heyo Django Users, I'm in a bit of a pickle with InlineFormsets - I'm following the example at the Django Docs: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#using-inlineformset-factory I've got two models: class Author(models.Model): name =

Re: Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 3:19 PM, ilmarik <[EMAIL PROTECTED]> wrote: > > PS. django documentation is getting crapy these days :( > Comments like this are not particularly helpful. What do you expect anyone to do in response to this comment? It's quite likely all it will do is discourage anyone

Re: apache and django

2008-11-10 Thread prem1er
Thanks for your replies everyone. I'm looking into it more now and will let you know if I have any other questions. On Nov 10, 8:44 am, Brandon Martin <[EMAIL PROTECTED]> wrote: > I would just like to note here that when I first installed django with > apache and mod_python most of the problem

Re: Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-11-10, o godz. 21:03, przez ilmarik: > Is there any simple way to change to in > autogenerated django admin ? > > I have some fields that takes simple values to varchar and integer > fields and these values are predefined alternatives. > > for example: field for

Re: Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread ilmarik
> You can supply choices argument in model's field constructor. Or   > replace the form's field with the one that has choices in modelform   > for this model. choices is that little thing I was looking for.. and suprisingly couldn't find by myself. many thanks! PS. django documentation is

Re: Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread Sahil R Cooner
It's a little outdated, but it shows you how to override a template file per view of model. http://www.djangobook.com/en/1.0/chapter17/. On Mon, Nov 10, 2008 at 12:03:04PM -0800, ilmarik wrote: > > Is there any simple way to change to in > autogenerated django admin ? > > I have some fields

Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread ilmarik
Is there any simple way to change to in autogenerated django admin ? I have some fields that takes simple values to varchar and integer fields and these values are predefined alternatives. for example: field for Ms/Mrs/Mr... simple link to explanation would do...

Re: Django and Python 2.6

2008-11-10 Thread James Matthews
I just use 2.5.2 and i might upgrade when needed On Mon, Nov 10, 2008 at 10:44 AM, Kegan <[EMAIL PROTECTED]> wrote: > > I am planning to host at WebFaction. Anyone using Django + Python2.6 > at WebFaction ? Care to share ? > > On Nov 10, 4:42 pm, m0nonoke <[EMAIL PROTECTED]> wrote: > > I am

Re: Usaing quotations in comments - please share

2008-11-10 Thread nkulmati
Wow, Thanks! And what do you use "fix_ampersands" for? On Nov 10, 1:02 am, Dmitry Dzhus <[EMAIL PROTECTED]> wrote: > nkulmati wrote: > > So here's a task which I do not yet know how to solve with django. > > > When users post comments and wish to include a quote of another user, > > I would like

compare old and new model field value

2008-11-10 Thread Tim
Basically, I want to be able to do something if the value of a field changes in a model. c = Category.objects.get(pk=1) c.name = "New Name" c.save() At any point (when the model is saved, when the value is set, etc.) is it possible to compare the old and new value? The first thought that popped

Re: No clue what to do !

2008-11-10 Thread dboddin
Thank You, Thank You, Thank You !! -Ursprüngliche Nachricht- Von: "Daniel Roseman" <[EMAIL PROTECTED]> Gesendet: 10.11.08 11:17:52 An: Django users Betreff: Re: No clue what to do ! On Nov 10, 9:21 am, [EMAIL PROTECTED] wrote: > Hi, > > I get this error

Re: Browser access to manage.py / django command extensions

2008-11-10 Thread R. Gorman
Oh the weight of various risks... If you're just looking to execute a command and the response is quick an os.system command in a view might work. If it's a longer running process you might want to look at subprocess. R. --~--~-~--~~~---~--~~ You received this

Re: Browser access to manage.py / django command extensions

2008-11-10 Thread [EMAIL PROTECTED]
Maybe a button with a drop-down list for the commands he wants? Could be part of the admin. On Nov 10, 12:50 pm, Joe Murphy <[EMAIL PROTECTED]> wrote: > Hi all, > > Boss wants browser access to a couple custom django command extensions > -- wants it to be simple to administer for those who

Browser access to manage.py / django command extensions

2008-11-10 Thread Joe Murphy
Hi all, Boss wants browser access to a couple custom django command extensions -- wants it to be simple to administer for those who aren't comfortable on the command line. Any advice on how to approach this? I've searched google / djangosearch.com, and the django-users archive, and have come up

Re: Apache Segmentation Fault on succesful authentication

2008-11-10 Thread huw_at1
Some more info. Apache also segfaults when I succesfully sign in to the admin site. On Nov 10, 9:53 am, huw_at1 <[EMAIL PROTECTED]> wrote: > Hi Graham and thanks for the response again. > > I seem to remember when I originally built this 64-bit mod_python > module I had a lot of difficulty. I

Re: Eager loading backward relationships

2008-11-10 Thread vmihaylov
Yes, but I thinks this will not load blog objects that do not have entries. Vassil On Nov 10, 12:17 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Nov 10, 7:18 am, vmihaylov <[EMAIL PROTECTED]> wrote: > > > Hello everyone, > > I need to eager load an object along with any backward

Re: Admin interface crashes when adding a new item with a ForeignKey

2008-11-10 Thread Ben Gerdemann
I figured out the problem. I used inspectdb to import my models from an existing database. I then marked the primary_key fields with primary_key=True, but I didn't should have also converted them from IntegerField to AutoField. Once I did that everything worked fine. I hope this message saves

Re: has more than 1 ForeignKey to

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 3:50 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hi all, > > I have a UserProfile connected to auth.models.User using > >user = models.ForeignKey(User, unique=True) > > Additionally, I'd like to connect users to each other with manager/ > managed hierarchical

Re: Admin Interface - "You don't have permission to edit anything"

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 5:06 AM, Saravana Kumar K, Bangalore < [EMAIL PROTECTED]> wrote: > Hi All, > >I was trying to install Autotest tool, which is used for kernel testing. > It uses the Django also, Please find the link below > >http://autotest.kernel.org/wiki/AutotestServerInstall >

Re: 'NoneType' object is not iterable

2008-11-10 Thread Diego Cibils
Hi Javi, I'm having the same problem... any progress so far? Thanks. On Nov 10, 8:35 am, Javi <[EMAIL PROTECTED]> wrote: > Hello Rajesh, > > I've tried putting FORCE_SCRIPT_NAME="" but everything continues at > the same state. I'm running the app in Apache2/mod_python. I've pasted > the

Re: Admin interface crashes when adding a new item with a ForeignKey

2008-11-10 Thread Karen Tracey
You left off the actual exception you get. Also, the details of your Model and ModelAdmin definitions would be helpful (please post to dpaste.com and point to them if they're big enough to display poorly in email), since I've used this method myself without error so I suspect there is something

Admin interface crashes when adding a new item with a ForeignKey

2008-11-10 Thread Ben Gerdemann
Good morning all, This problem sure seems like a bug, but it's such a common operation that I must be doing something wrong. I am using the admin interface to add a new student to my database. At the same time I also want to add the parents of the student, so I click on the "+" icon on the

Re: How can I create a new table without primary key filed?

2008-11-10 Thread AndyB
If it's one to one then the field that maps to the primary key in the other table should be unique. Why not designate that as a primary key? I was in a similar situation integrating a legacy Access app. I simply added an autonumber id field. Your old app will ignore it but it keeps Django happy.

Re: apache and django

2008-11-10 Thread Brandon Martin
I would just like to note here that when I first installed django with apache and mod_python most of the problem I had was on the apache side with vhosts not django. Each operating system handles apache configs a little different. The guide on django's web site is great for the base

Admin Interface - "You don't have permission to edit anything"

2008-11-10 Thread Saravana Kumar K, Bangalore
Title: Admin Interface - "You don't have permission to edit anything" Hi All,    I was trying to install Autotest tool, which is used for kernel testing. It uses the Django also, Please  find the link below    http://autotest.kernel.org/wiki/AutotestServerInstall  I followed all the

Re: has more than 1 ForeignKey to

2008-11-10 Thread Michael Ellis
Try settting related_name on "user" as well. user = models.ForeignKey(User, unique=True, related_name='foo') ME --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: apache and django

2008-11-10 Thread Steve Holden
If you read your httpd.conf file you will find at some point there is a line that includes the configuration data from the sites-enabled directory. This idea is to be able to switch sites on and off by adding and removing symbolic links from sites-enabled. Make sure you *always* edit the files

Re: How can I create a new table without primary key filed?

2008-11-10 Thread K*K
OK, I got it ;-) I will try other method to implement the application. Thx On Nov 10, 7:43 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-11-10 at 03:41 -0800, K*K wrote: > > Thank you for you reply. > > > But I mean I want to create a table without primary key field. > >

Re: How can I create a new table without primary key filed?

2008-11-10 Thread K*K
Actually this table filed is a one to one mapper to other table's field. this table doesn't need primary key field. But I have to keep the database schema compatible with old system so I have to keep it. On Nov 10, 7:20 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Mon, Nov 10,

Re: How can I create a new table without primary key filed?

2008-11-10 Thread Malcolm Tredinnick
On Mon, 2008-11-10 at 03:41 -0800, K*K wrote: > Thank you for you reply. > > But I mean I want to create a table without primary key field. This isn't going to work very well with Django. There are a lot of places in Django that use the primary key on a table to access it. So tables without

Re: How can I create a new table without primary key filed?

2008-11-10 Thread K*K
Thank you for you reply. But I mean I want to create a table without primary key field. I want to disable django's automatic add the id key with primary key feature. The primary key field in old table doesn't exist, and I checked it's not in the models.py too. But after syncdb django add a

Re: loading initial data with yml

2008-11-10 Thread Adda Badda
On Nov 10, 10:18 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Mon, Nov 10, 2008 at 6:30 PM, Adda Badda <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > Im having a problem loading initial data into my app with yaml. I have > > installed yaml for python using macports and placed the

Re: SQL in queryset extra method not showing in results

2008-11-10 Thread Malcolm Tredinnick
On Sun, 2008-11-09 at 22:19 -0800, chris wrote: > Dear Django users, > > Here is the problem I am trying to solve: > > I have a Reference object defined as follows: > > class Reference(models.Model): > person = models.ForeignKey(Person) > author = models.CharField(max_length = 20,

Re: How can I create a new table without primary key filed?

2008-11-10 Thread Russell Keith-Magee
On Mon, Nov 10, 2008 at 7:59 PM, K*K <[EMAIL PROTECTED]> wrote: > > Hi, all. > > How can I create a new table without primary key in Django modeling. ? > > I'm porting a old program to Django web framework. After inspect > database to modules.py and then syncdb, It create the id filed with >

Re: Join of any db table with Q.add_to_query

2008-11-10 Thread Malcolm Tredinnick
On Mon, 2008-11-03 at 03:02 -0800, Dima Dogadaylo wrote: > Before merging of queryset-refactor it was possible to join any table > with any ON clause to any queryset with help of Q.as_sql. It was "possible" for small values of possible that meant "extremely fragile and didn't work in a large

How can I create a new table without primary key filed?

2008-11-10 Thread K*K
Hi, all. How can I create a new table without primary key in Django modeling. ? I'm porting a old program to Django web framework. After inspect database to modules.py and then syncdb, It create the id filed with primary key attribute, how can I disable this feature ?

Re: 'NoneType' object is not iterable

2008-11-10 Thread Javi
Hello Rajesh, I've tried putting FORCE_SCRIPT_NAME="" but everything continues at the same state. I'm running the app in Apache2/mod_python. I've pasted the htttp.conf file at http://rafb.net/p/Ya1VKT55.html I'm going to continue trying to solve it. On Nov 5, 7:11 pm, Rajesh Dhawan <[EMAIL

Re: loading initial data with yml

2008-11-10 Thread Russell Keith-Magee
On Mon, Nov 10, 2008 at 6:30 PM, Adda Badda <[EMAIL PROTECTED]> wrote: > > Hi all, > > Im having a problem loading initial data into my app with yaml. I have > installed yaml for python using macports and placed the package in my > site-packages directory. From the shell the yaml package loads

Re: Eager loading backward relationships

2008-11-10 Thread Daniel Roseman
On Nov 10, 7:18 am, vmihaylov <[EMAIL PROTECTED]> wrote: > Hello everyone, > I need to eager load an object along with any backward relationships > it has. > But I can't figure out how to do it. > Lets consider the example > fromhttp://docs.djangoproject.com/en/dev/topics/db/queries/ > What I

Re: No clue what to do !

2008-11-10 Thread Daniel Roseman
On Nov 10, 9:21 am, [EMAIL PROTECTED] wrote: > Hi, > > I get this error > AttributeError: type object 'CM' has no attribute 'fields' > and than > AlreadyRegistered: The model List is already registered > > I see no error in models.py or admin.py, please help. > >

Re: Extending the User Model with Inheritance | How to save extended data

2008-11-10 Thread johan.uhIe
So I have just had a try with a new written UserManager and it works. My model looks the following way now: from django.db import models from django.contrib.auth.models import User, UserManager import datetime class NewUserManager(models.Manager):

Re: Apache Segmentation Fault on succesful authentication

2008-11-10 Thread huw_at1
Hi Graham and thanks for the response again. I seem to remember when I originally built this 64-bit mod_python module I had a lot of difficulty. I was getting error messages which I solved by following the solution in this article: http://agiletesting.blogspot.com/2007_10_01_archive.html

Re: Easy way to serialize objects

2008-11-10 Thread Ivan Tarradellas
Tnxs a lot Russ, Then I will take a look on the state-of-the-art of this libraries. ;-) On 8 nov, 05:22, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Sat, Nov 8, 2008 at 1:35 AM,IvanTarradellas<[EMAIL PROTECTED]> wrote: > > > Hi all, > > > With Django, what is the easy and best way to

loading initial data with yml

2008-11-10 Thread Adda Badda
Hi all, Im having a problem loading initial data into my app with yaml. I have installed yaml for python using macports and placed the package in my site-packages directory. From the shell the yaml package loads when I type "import yaml" but django still tells me: "yml is not a known

has more than 1 ForeignKey to

2008-11-10 Thread [EMAIL PROTECTED]
Hi all, I have a UserProfile connected to auth.models.User using user = models.ForeignKey(User, unique=True) Additionally, I'd like to connect users to each other with manager/ managed hierarchical relationships, whereby everyone has one manager (except the big boss who has none):

No clue what to do !

2008-11-10 Thread dboddin
Hi, I get this error AttributeError: type object 'CM' has no attribute 'fields' and than AlreadyRegistered: The model List is already registered I see no error in models.py or admin.py, please help. http://dpaste.com/hold/89667/ http://dpaste.com/89670/

Re: Django and Python 2.6

2008-11-10 Thread Kegan
I am planning to host at WebFaction. Anyone using Django + Python2.6 at WebFaction ? Care to share ? On Nov 10, 4:42 pm, m0nonoke <[EMAIL PROTECTED]> wrote: > I am using Win32 and there are still quite a few Python 2.6 libs / > binaries that are unavailable, such as mod_python. If you are on

Re: Django and Python 2.6

2008-11-10 Thread m0nonoke
I am using Win32 and there are still quite a few Python 2.6 libs / binaries that are unavailable, such as mod_python. If you are on linux though, you should have no problems. On Nov 10, 8:08 am, Kegan <[EMAIL PROTECTED]> wrote: > Hi, > > If I start a new Django project today. Should I not be

bottom line on postgres schema use in 0.96?

2008-11-10 Thread jeff
hi. i have been working to make use of postres schema in an app wit version 0.96. tried 3 options: 1. in settings.py, put in an entry like this: CONNECTION_INIT_SQL = ( 'SET search_path TO django_application_schema',) 2. in settings.py, put in an entry like this: DATABASE_SCHEMAS =

Django and Python 2.6

2008-11-10 Thread Kegan
Hi, If I start a new Django project today. Should I not be using Python 2.6 ? I have read some threads here that ensure Django 1.0+ have no problem with Python 2.6. However, is there any other reason you would discourage using of Python 2.6 (if you 'do' discourage) ? Example, inadequate 3rd