Re: problem with compressed egg in mysqldb module

2011-01-26 Thread Adrian Bool
On 26 Jan 2011, at 23:24, Cindy wrote: > > On Jan 26, 2:13 pm, Cindy wrote: >> Hi, all. I'm getting this error, when trying to export my django site >> to a new place: Do you mean to a new server? >> >> TemplateSyntaxError: Caught ImproperlyConfigured while rendering: >> Error loading MySQ

Re: parsing SOAP request

2011-01-26 Thread sami nathan
Hi Now i tried to parse the incoming request and send my response i tried in the following way by just sending what request came as it as response (ECHO server).and i am very newbie i dont know how to parse the request. I used ZSI sucessfully but in that requset was handled by itself but ZSI a

Re: parsing SOAP request

2011-01-26 Thread Łukasz Rekucki
Hey, On 27 January 2011 07:32, sami nathan wrote: > Hi >    i am working web service i am getting SOAP(POST) request from client now > i am trying to parse the request xml and sending the response my soap > request is > > encoding=\'UTF-8\'?> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelo

Re: Long admin emails

2011-01-26 Thread Torsten Bronger
Hallöchen! Russell Keith-Magee writes: > On Thu, Jan 27, 2011 at 1:19 PM, Torsten Bronger > wrote: > >> [...] >> >> I had looked at the raw mail message, and the text/plain part >> looked exactly the same as I uploaded -- really. > > I don't know what's happening here, but I'm fairly certain it

parsing SOAP request

2011-01-26 Thread sami nathan
Hi i am working web service i am getting SOAP(POST) request from client now i am trying to parse the request xml and sending the response my soap request is http://schemas.xmlsoap.org/soap/envelope/ ">http://flypp.infy.com/sms/v2010r1_0 ">12345343661t1p1p2DICT test']}> response now i want send

RE: Challenge with installing django on windows 7 64 bit

2011-01-26 Thread Chris Matthews
1) Generally "not a valid archive" means the file was corrupted during the download/copy or the download/copy did not complete. If you used ftp to copy the file and the file mode settings was ASCII (not binary) then you can have a corrupt file (because CR 0x0D gets converted to CRLF 0x0D0A). If

Re: Error filtering using bboverlaps

2011-01-26 Thread bheathr
Great. I missed that part of the documentation. I changed my managers, and it worked. On Jan 26, 1:58 am, Jani Tiainen wrote: > On Wednesday 26 January 2011 05:57:01 B. Heath Robinson wrote: > > > I am getting the following error when I try a complicated filter with a > > join involving bboverl

Re: Long admin emails

2011-01-26 Thread Russell Keith-Magee
On Thu, Jan 27, 2011 at 1:19 PM, Torsten Bronger wrote: > Hallöchen! > > Russell Keith-Magee writes: > >> [...] >> >> Although we now send HTML error mails, we still send the original >> text mail, in exactly the same format as before. We do this by >> sending two MIME enclosures in the message; a

Re: Long admin emails

2011-01-26 Thread Torsten Bronger
Hallöchen! Torsten Bronger writes: > Russell Keith-Magee writes: > >> [...] >> >> Although we now send HTML error mails, we still send the original >> text mail, in exactly the same format as before. We do this by >> sending two MIME enclosures in the message; a text/plain >> enclosure with the r

Re: Long admin emails

2011-01-26 Thread Torsten Bronger
Hallöchen! Russell Keith-Magee writes: > [...] > > Although we now send HTML error mails, we still send the original > text mail, in exactly the same format as before. We do this by > sending two MIME enclosures in the message; a text/plain enclosure > with the raw-text version, and a text/html v

Re: newbie help with console, can't run Django function

2011-01-26 Thread Russell Keith-Magee
On Thu, Jan 27, 2011 at 12:22 PM, Mike Dewhirst wrote: > On 27/01/2011 2:35pm, Casual Coder wrote: > > import django > django.VERSION >> >> (0, 96.406, None) >> > django.get_version() >> >> Traceback (most recent call last): >>   File "", line 1, in >> AttributeError: '

Re: newbie help with console, can't run Django function

2011-01-26 Thread Mike Dewhirst
On 27/01/2011 2:35pm, Casual Coder wrote: import django django.VERSION (0, 96.406, None) django.get_version() Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'get_version' Maybe Django version 0.96 didn't use a get_vers

Re: newbie help with console, can't run Django function

2011-01-26 Thread Casual Coder
>>> import django >>> django.VERSION (0, 96.406, None) >>> django.get_version() Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'get_version' -- You received this message because you are subscribed to the Google Groups "Djan

Re: newbie help with console, can't run Django function

2011-01-26 Thread Casual Coder
Mike I appreciate your answers and am trying them lots of ways. Still not getting that Django linkage in my console. >>> import django >>> django.get_version() Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'get_version' Is there a way

Re: newbie help with console, can't run Django function

2011-01-26 Thread Mike Dewhirst
On 27/01/2011 1:02pm, Casual Coder wrote: Thanks Mike. But Darn I'm not as powerful as I had hoped. I expected DUMPDATA to work the same way, but it doesn't. How did VERSION work? VERSION didn't actually "work". It is a constant which is an attribute of django. Bear in mind that django is

Re: Confusion about the new staticfiles contrib app

2011-01-26 Thread Brian Neal
I can answer one of my own questions now: On Jan 25, 11:46 pm, Brian Neal wrote: ... > My second confusion point: > I am running the dev server with -Wall and I am seeing warnings: > PendingDeprecationWarning: The view at `django.views.static.serve` is > deprecated; use the path `django.contrib.s

Re: newbie help with console, can't run Django function

2011-01-26 Thread Casual Coder
Thanks Mike. But Darn I'm not as powerful as I had hoped. I expected DUMPDATA to work the same way, but it doesn't. How did VERSION work? and why doesn't django-admin.py dumpdata work? >>> django-admin.py dumpdata File "", line 1 django-admin.py dumpdata ^ Sy

Re: Django form(s) for intermediary models

2011-01-26 Thread aa56280
Wow, that is bananas, Ian. I'll give your solution a try and see what happens. -- 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 dja

Re: newbie help with console, can't run Django function

2011-01-26 Thread Casual Coder
On Jan 26, 8:13 pm, Mike Dewhirst wrote: >  >>> from django import VERSION >  >>> VERSION > (1, 3, 0, 'alpha', 1) Ah. That works. I have suddenly become quite powerful. Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: newbie help with console, can't run Django function

2011-01-26 Thread Mike Dewhirst
On 27/01/2011 12:02pm, Casual Coder wrote: I'd like to get handy with using the console. Do I have a setup problem or a usage problem? >>> from django import VERSION >>> VERSION (1, 3, 0, 'alpha', 1) >>> See following pydev console output. Am I not able to run get_version() like that?

newbie help with console, can't run Django function

2011-01-26 Thread Casual Coder
I'd like to get handy with using the console. Do I have a setup problem or a usage problem? See following pydev console output. Am I not able to run get_version() like that? Thanks... >>> import sys; print('%s %s' % (sys.executable or sys.platform, sys.version)) C:\Python25\python.exe 2.5.4

Re: Long admin emails

2011-01-26 Thread Russell Keith-Magee
On Thu, Jan 27, 2011 at 7:10 AM, Torsten Bronger wrote: > Hallöchen! > > I just upgraded from Django 13xxx to the current SVN.  Before the > upgrade, error emails from 500 errors to the admins lokked like > .  I liked that very much, especially > because the traceback wa

Re: problem with compressed egg in mysqldb module

2011-01-26 Thread Cindy
To be specific: mysqldb version 1.2.3 django version 1.2.4 python 2.6 freebsd 8.1 Another question: if django/python is somehow using the wrong method to unzip the egg (since I can "unzip" just fine in the listed directory) is there some way I can configure the correct one? Again, thanks... On J

Re: Challenge with installing django on windows 7 64 bit

2011-01-26 Thread Mike Dewhirst
On 27/01/2011 9:22am, j_syk wrote: Hello- I only develop django on osx and lunix (ubuntu), but I've looked into options for installing it on my windows desktop- even though I've never gotten around to it... I've found http://www.instantdjango.com/ which has all the common files you need to develo

Long admin emails

2011-01-26 Thread Torsten Bronger
Hallöchen! I just upgraded from Django 13xxx to the current SVN. Before the upgrade, error emails from 500 errors to the admins lokked like . I liked that very much, especially because the traceback was easily readable. Now, they look like .

Re: Custom validation in model

2011-01-26 Thread Shawn Milochik
Overriding the clean method of the modelform is the way to go. If you're getting an error about not having 'cleaned_data,' it could be because your custom clean method doesn't return anything -- you're responsible for returning it if you override it that method. Shawn -- You received this me

Custom validation in model

2011-01-26 Thread Mario8k
Hi, Supose that I have a model with a from and to date: class Foo (models.Model): from_date = models.DateField() to_date = models.DateField() What is the correct way to ensure that from_date is always before to_date? For now, I'm using only the admin site. One way, may be, is to use cust

Re: Need some ideas for how to implement a two-part form

2011-01-26 Thread Shawn Milochik
Try using formsets or model formsets. http://docs.djangoproject.com/en/dev/topics/forms/formsets/ As for remembering some information about the form without displaying it, in your case it sounds like the guest form could have a foreign key to the party they're attending. You could exclude that

Re: Challenge with installing django on windows 7 64 bit

2011-01-26 Thread j_syk
Hello- I only develop django on osx and lunix (ubuntu), but I've looked into options for installing it on my windows desktop- even though I've never gotten around to it... I've found http://www.instantdjango.com/ which has all the common files you need to develop in one package. According to the si

Re: Error when adding to many to Many table via Admin

2011-01-26 Thread ara
I fixed the problem; it appears I was using database settings for Django 1.1; as soon as I included the full path for sqlite3, & added a suffix of .db to my database name, all was well. On Jan 26, 4:43 pm, ara wrote: > Hi, > > I am a newbie at Django, & have created my models as follows: > > rom

Re: custom Middleware for Django

2011-01-26 Thread Piotr Kilczuk
Hi, More a Python thing, than Django. You should never put custom code in the django package. Generally you can put SWFUploadMiddleware inside, say, middleware.py in the same directory as your settings.py. Then you'd have to put: 'yourprojectname.middleware.SWFUploadMiddleware' Once you unders

problem with compressed egg in mysqldb module

2011-01-26 Thread Cindy
Hi, all. I'm getting this error, when trying to export my django site to a new place: TemplateSyntaxError: Caught ImproperlyConfigured while rendering: Error loading MySQLdb module: bad local file header in /usr/local/lib/ python2.6/site-packages/MySQL_python-1.2.3-py2.6-freebsd-8.1-RELEASE- amd6

Need some ideas for how to implement a two-part form

2011-01-26 Thread j_syk
I'm working on a project that requires a RSVP form for an event. The first step of the form would ask first & last name, e-mail, attending (yes/no/unsure), and total number of guests attending. Currently I have this form correctly working and submitting to the database. The second step of the for

Error when adding to many to Many table via Admin

2011-01-26 Thread ara
Hi, I am a newbie at Django, & have created my models as follows: rom django.db import models from django.contrib.auth.models import User # Create your models here. class Ingredient(models.Model): #user=models.ForeignKey(User) ingname = models.CharField(max_length=30) def __unicode

custom Middleware for Django

2011-01-26 Thread Rich
I'm new to Django and trying to place a custom middleware file in the Django path. I'm modifying the settings.py file in my project. The swfupload.py is located in django /usr/lib/python2.4/site-packages/django/middleware I had it in the project earlier but ti did not work and this does not work

Re: Django: Object Oriented or Relational Database?

2011-01-26 Thread Adrian Bool
Hi Bruno, On 26 Jan 2011, at 12:55, bruno desthuilliers wrote: > Some will talk about "OO/relational impedance mismatch" (ok, I cheated > - Daniel just did;)), but I don't see it that way as far as I'm > concerned - I'm using a relational model wrapped into an OO > representation, and that's jus

django CMS 2.1 final was just released!

2011-01-26 Thread Jonas Obrist
We are very proud to announce that a few moments ago, the django CMS team released the final release for version 2.1.0. This new version adds new exciting features to our CMS and fixes many issues. Whats new in 2.1? - Frontend-editing. This is probably the most noticeable new feature, allowin

Re: It is a good practice to use logging in the webs applications based on django ???

2011-01-26 Thread Shawn Milochik
On Jan 26, 2011, at 3:11 PM, Ariel wrote: > I would want to know if it is a good practice to use the logging python > module in the web applications based on django ??? The performance is > severily affected ??? > > > Thanks for your attention. > Regards > Ariel It's fantastic practice. In

It is a good practice to use logging in the webs applications based on django ???

2011-01-26 Thread Ariel
I would want to know if it is a good practice to use the logging python module in the web applications based on django ??? The performance is severily affected ??? Thanks for your attention. Regards Ariel -- You received this message because you are subscribed to the Google Groups "Django user

Re: Error when subclassing models.ForeignKey field

2011-01-26 Thread Roman Klesel
Hello again, since no one responded untill now, I'd like to bring this back to attention. If no one knows an answer to my question, maybe some one could give me some hint what I could do? Should I open a bug report? Thanks in advance! Roman -- You received this message because you are subscr

Challenge with installing django on windows 7 64 bit

2011-01-26 Thread Magge
Hi, I am trying to extract the installation files from the Django-1.2.4.tar.gz file that I got from the django website. I tried using winzip, 7z, cygwin and so forth. All these programs complain that the file isnt a valid archive. I used to work with django back in 2009 on Window. The installatio

Re: MySQL behavior about Warning/Exception

2011-01-26 Thread Tom Evans
On Wed, Jan 26, 2011 at 4:57 PM, etienned wrote: > Thanks for your answer. > > I have compared the .cnf on both of my servers and they are identical? > > Then, in my settings.py file, I set my database options to > 'sql_mode' : 'TRADITIONAL' and now I don't have the error anymore. So > that fix my

Re: MySQL behavior about Warning/Exception

2011-01-26 Thread etienned
Thanks for your answer. I have compared the .cnf on both of my servers and they are identical? Then, in my settings.py file, I set my database options to 'sql_mode' : 'TRADITIONAL' and now I don't have the error anymore. So that fix my problem. But that doesn't explain the 2 different behaviors

Re: Django - Verfication of runserver vs browser

2011-01-26 Thread Kimberly Harvey
Thanks, I restarted the whole Django program. Will send feedbacks if any problems this week. On Tue, Jan 25, 2011 at 12:17 AM, raj wrote: > If none of above seems to work, You may be using a browser like google > chrome, which by default ignores the localhost. > > -- > You received this message

Re: Ajax and SSL

2011-01-26 Thread Tom Evans
On Sat, Jan 1, 2011 at 7:17 PM, Jakob H wrote: > Hi, > > I'm using Satchmo to build a store for a Django-powered webpage. > Satchmo provides a convenient middleware > ('satchmo_store.shop.SSLMiddleware.SSLRedirect') which allows me to > add { 'SSL' : True } arguments to my view specifications (in

Re: Confusion about the new staticfiles contrib app

2011-01-26 Thread Brian Neal
On Jan 26, 8:46 am, Jonas Geiregat wrote: > > MEDIA_ROOT is the path to the directory where your files will live. > > MEDIA_URL is the URL the get to those files. > > So if MEDIA_ROOT='/home/you/media' > and MEDIA_URL='site-media/' > > Then if you want to view a file located at /home/you/media/thi

Re: Restrict access to the whole application

2011-01-26 Thread tobik
Well, by an application I meant the 'subfolder' in your django project directory, which you create using manage.py startapp 'appname' (or maybe django.admin.py). That confused me. So if in your case an application is a model inside database, then I understand that you can use standard permissions a

Re: looking cheap Python/Django/mySQL hosting

2011-01-26 Thread James Abel
+1 on http://www.webfaction.com/ . I'm using it and the automation and documentation are good. Fast servers and reasonably priced. -- 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.

Re: Confusion about the new staticfiles contrib app

2011-01-26 Thread Jonas Geiregat
>> > > I don't understand this. One is a URL, the other is a file path. Why > would I set STATIC_URL = MEDIA_ROOT? Or did you make a typo and mean > MEDIA_URL? That might make more sense to me. MEDIA_ROOT is the path to the directory where your files will live. MEDIA_URL is the URL the get t

Re: Restrict access to the whole application

2011-01-26 Thread Brian Bouterse
Maybe this will clear things up, but if not, write back. In my example an "application" is a resource inside of a django project, not a django project itself. Your description of 'use_appname' is correct. An app for me is a model and so I have setup a post_save signal

Re: Restrict access to the whole application

2011-01-26 Thread tobik
Thank you for your answer. It is to much information for me and I am not sure whether I understand it correctly :) So basically you create for each application a corresponding permission which looks something like 'use_appname'. If the user wants to access 'appname' application, he has to have 'us

Re: Confusion about the new staticfiles contrib app

2011-01-26 Thread Brian Neal
On Jan 26, 1:46 am, Jonas Geiregat wrote: > Op 26-jan-2011, om 06:46 heeft Brian Neal het volgende geschreven: > > > Hi - > > I'm trying to cut over my project to use the new staticfiles > > application. I'm using the dev server with DEBUG = True on a recent > > SVN trunk checkout. My STATIC_URL i

Re: forbid clones

2011-01-26 Thread Jaroslav Dobrek
On 26 Jan., 13:29, Chris Matthews wrote: > Have a look at unique_together: > Django | Model Meta options | Django > documentationhttp://docs.djangoproject.com/en/dev/ref/models/options/ > > Jump to unique_togetherý: Options.unique_together¶. Sets of field names that, > ... For convenience, uni

Re: DB-Views or read-only tables in models

2011-01-26 Thread bvdb
On Jan 26, 3:22 am, Russell Keith-Magee wrote: > Django doesn't have a built-in representation of a view. .. > > You can define a Django model as a wrapper around a view by marking it > managed, but that doesn't make the model read-only -- it just prevents > Django from trying to create the model

Re: looking cheap Python/Django/mySQL hosting

2011-01-26 Thread CrabbyPete
http://www.asmallorange.com/ On Jan 26, 12:36 am, GSV wrote: > for small project. > > Thank you -- 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,

Re: looking cheap Python/Django/mySQL hosting

2011-01-26 Thread Praveen Krishna R
*webfaction.com is also good, you can go live with your app in minutes.* *See http://djangofriendly.com for a list of django friendly web hosts... * On Wed, Jan 26, 2011 at 4:20 PM, Jonas Geiregat wrote: > > > > > for small project. > > > > I use djangoeurope.com. They have server in Paris and Zu

Re: Restrict access to the whole application

2011-01-26 Thread Brian Bouterse
I've used a post_save signal to create a per-object permission such as 'use application X' This permission is checked at application use time. Hereis the code I wrote to do, I think, exactly what you want. It is part of a django based connec

Re: looking cheap Python/Django/mySQL hosting

2011-01-26 Thread Jonas Geiregat
> for small project. > I use djangoeurope.com. They have server in Paris and Zurich. -- 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

Re: copying sqlite database file between projects

2011-01-26 Thread Ion Ray Studios
Yup. That did it. The errors were a result of setttings.py pointing to the wrong database. Too much mucking about with too many things at the same time... On 25/01/11 16:36, Michael wrote: I believe table names are all lower-case, so try 'sample_app_person' -- You received this message bec

Re: Django: Object Oriented or Relational Database?

2011-01-26 Thread bruno desthuilliers
On 26 jan, 12:41, Adrian Bool wrote: > > I'm defining the DB in Python; using objects and inheritance.  As such, when > I'm doing this I'm thinking in an object orientated (OO) manner - a service > uses a number of resources so I create a Service object with with either > foreign key or many-to

Re: forbid clones

2011-01-26 Thread Adrian Bool
Please ignore this dumn-ass p On 26 Jan 2011, at 12:34, Adrian Bool wrote: > > On 26 Jan 2011, at 12:26, Jaroslav Dobrek wrote: > >>> >>> http://docs.djangoproject.com/en/1.2/ref/models/fields/#unique >> Example: >> >> This should be allowed: >> >> car1: manufacturer = "foo", name = "bar" >>

Re: forbid clones

2011-01-26 Thread Adrian Bool
On 26 Jan 2011, at 12:26, Jaroslav Dobrek wrote: >> >> http://docs.djangoproject.com/en/1.2/ref/models/fields/#unique > Example: > > This should be allowed: > > car1: manufacturer = "foo", name = "bar" > car2: manufacturer = "foo", name = "baz" > > This should not be allowed: > > car1: manuf

RE: forbid clones

2011-01-26 Thread Chris Matthews
Have a look at unique_together: Django | Model Meta options | Django documentation http://docs.djangoproject.com/en/dev/ref/models/options/ Jump to unique_together‎: Options.unique_together¶. Sets of field names that, ... For convenience, unique_together can be a single list when dealing ... docs

Re: forbid clones

2011-01-26 Thread Jaroslav Dobrek
> > http://docs.djangoproject.com/en/1.2/ref/models/fields/#unique Although this does help, it leaves one question open: How can we forbid only such pairs of objects that have the same value in all of their attributes. Example: This should be allowed: car1: manufacturer = "foo", name = "bar" c

Re: Customising the Admin Save Models in DJango 1.1

2011-01-26 Thread Adrian Bool
Hu, On 26 Jan 2011, at 07:22, Prof Falken wrote: > I have two models, the first is a 'change request ticket' and the > second reflects the status of that ticket. They are linked by a > ForeignKeyField on the first table. You may find it best to collapse them into a single object; using the 'cho

Re: Django: Object Oriented or Relational Database?

2011-01-26 Thread Adrian Bool
On 26 Jan 2011, at 11:55, Daniel Roseman wrote: > > This is what's known as the object-relational impedance mismatch [1]. > Unfortunately, as you've noticed, OO concepts don't map completely cleanly > onto the relational model, and this is an issue with all systems that attempt > to do it. Dja

Re: forbid clones

2011-01-26 Thread Jaroslav Dobrek
> http://docs.djangoproject.com/en/1.2/ref/models/fields/#unique > Wow, thanks. In this group answers almost come before one is able to submit the posting. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: forbid clones

2011-01-26 Thread Tom Evans
On Wed, Jan 26, 2011 at 11:57 AM, Jaroslav Dobrek wrote: > Hi, > > how can I forbid that clones of a certain type are stored by an admin? > > Example: Suppose there are cars in the database and cars have as only > attribute a name. How can I prevent that two cars that have the same > name are stor

forbid clones

2011-01-26 Thread Jaroslav Dobrek
Hi, how can I forbid that clones of a certain type are stored by an admin? Example: Suppose there are cars in the database and cars have as only attribute a name. How can I prevent that two cars that have the same name are stored? Jaroslav -- You received this message because you are subscribe

Re: method of method

2011-01-26 Thread Jaroslav Dobrek
Thanks to all of you. Now I understand this better. Jaroslav -- 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 django-users+unsubs

Re: Django: Object Oriented or Relational Database?

2011-01-26 Thread Daniel Roseman
On Wednesday, January 26, 2011 11:41:10 AM UTC, aid wrote: > > > Hi, > > I'm creating a DB using Django for managing our companies data - customers, > services, orders, billing etc. I'm using the Django admin interface to > manage the data. > > I seem to be consistently at odds with myself and w

Re: looking cheap Python/Django/mySQL hosting

2011-01-26 Thread Praveen Krishna R
Free hosting @ *http://www.alwaysdata.com/* On Wed, Jan 26, 2011 at 8:36 AM, GSV wrote: > for small project. > > Thank you > > -- > 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.

Customising the Admin Save Models in DJango 1.1

2011-01-26 Thread Prof Falken
Hi all, I'm relatively new to DJango (I've been using it for about three months) and so far I'm loving it - makes a really nice change from PHP... ;) I've run into an issue which my Google foo skills just can't find an answer to - how to I edit the Admin models and the way that they are saved? I

Restrict access to the whole application

2011-01-26 Thread tobik
My first question is whether it is possible to restrict access to the whole application from one place. I could write @login_required over every function but is there a better way? My second question is whether it is possible to use user groups for restricting applications. I want for example that

looking cheap Python/Django/mySQL hosting

2011-01-26 Thread GSV
for small project. Thank you -- 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 django-users+unsubscr...@googlegroups.com. For more

Django: Object Oriented or Relational Database?

2011-01-26 Thread Adrian Bool
Hi, I'm creating a DB using Django for managing our companies data - customers, services, orders, billing etc. I'm using the Django admin interface to manage the data. I seem to be consistently at odds with myself and would be good to hear the community's point of view on this. I'm defining

Re: Django form(s) for intermediary models

2011-01-26 Thread Ian Lewis
Hi, What you want to do here is use a Django "Formset" which contains your ModelForms. Since you want to show one form per person regardless of whether they are a member or not we can't use the modelformset_factory() and will have to do some manipulation of the initial data using the formset_facto