Re: what is wrong with my New Forms code

2007-09-27 Thread Richard Dahl
It is hard to see with the indentation as it is, but it seems you are not returning an http response if the 'if id is none:' You are building the form for model, but it doesnt look like it is returned. The bottom line seems to be indented to correlate to the if request.method not the

what is wrong with my New Forms code

2007-09-27 Thread staff-gmail
I tried the following but it fails in flames with "http response required..." I've followed the documentation - am I called the function correctly by a url with "/mymodel_addedit"Can someone help ? urls.py r'^mymodel/addedit/$', 'myproject.myapp.views.mymodel_addedit'), views.py def

Re: Compiling views.py?

2007-09-27 Thread Kenneth Gonsalves
On 28-Sep-07, at 12:31 AM, Tim Chase wrote: > (whether via hitting the "manage.py runserver" server, or > actually pointing at it via your production web server). Python > will notice that the .pyc is out of date and automatically > rebuild it for you. This happens so quickly, it's almost >

Re: about auth

2007-09-27 Thread Cat
Richard I am currently developing an interface that will need to use role based row level permissions and would be greatful for anything that you are willing to share. Catriona On Sep 28, 8:53 am, Richard Dahl <[EMAIL PROTECTED]> wrote: > If you are interested, I would love to collaborate on

Re: about auth

2007-09-27 Thread Richard Dahl
If you are interested, I would love to collaborate on some ideas of doing this. I have an role-based system working pretty well as of now, but it does not, as of yet integrate with the admin interface. If you have any interest I would be more than willing to share some of what I have

Re: trouble getting django to work with fastcgi?

2007-09-27 Thread Mike Atlas
For what it's worth, the problem is that my host only allows the FCGI file for django to be called "dispatch.fcgi". All other names are invalid. I found this reason b/c it is the same as another host is doing (DreamHost)

Re: about auth

2007-09-27 Thread Lic. José M. Rodriguez Bacallao
I'll do that On 9/27/07, Richard Dahl <[EMAIL PROTECTED]> wrote: > > There is a row-level-permissions branch, but I do not believe it is > actively being developed at this time. I wrote my own role-based permission > system and integrated it into all of my models that require it. I have not >

Re: change list in admin

2007-09-27 Thread Lic. José M. Rodriguez Bacallao
I solve this problem adding a custom manager with get_query_set method overridden to the admin interface. I don't know if this is the right way but it solve my filtering problems in the change list. Any suggestions? class AnyModel(models.Model): ... class Admin: manager =

Re: change list in admin

2007-09-27 Thread jake elliott
hi jose Lic. José M. Rodriguez Bacallao wrote: > how can I limit items in "change list" of the admin interface? the admin will use your model's default manager (the first specified manager) to filter results. more information here:

Re: Compiling views.py?

2007-09-27 Thread James Bennett
On 9/27/07, Prateek Parekh <[EMAIL PROTECTED]> wrote: > Also, i have recently enabled a couple of apps in the settings.py and > urls.py, but i haven't been able to access them in my website. Does > this also require a restart? Any change of any sort to any part of your code, other than HTML in a

Windows XP tips and tricks

2007-09-27 Thread John Travolta
http://windowsfreetips.blogspot.com/ --~--~-~--~~~---~--~~ 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

trouble getting django to work with fastcgi?

2007-09-27 Thread Mike Atlas
Hello, I am trying to get my django app to work using FastCGI on my host, ASmallOrange. Their guides are out of date for doing this correctly. I have established that fastcgi is working in the general case, as this test.fcgi file works from both the command line, and from the web browser

Re: Compiling views.py?

2007-09-27 Thread Prateek Parekh
Thanks a lot for your response. Yes, i am running django on a linux machine and apache server. And, i haven't been able to see the changes that i made in the views.py get reflected on my website. So, i guess, i'll have to restart the apache server. Also, i have recently enabled a couple of apps

Re: Compiling views.py?

2007-09-27 Thread Tim Chase
> i have to quickly make a few changes. I have replaced one > email address in views.py by another. Now, i'd like to know if > i need to recompile this views.py file, and if so what is the > exact command ( will python views.py work). It's non-obvious if you're coming from the compiled-language

change list in admin

2007-09-27 Thread Lic. José M. Rodriguez Bacallao
how can I limit items in "change list" of the admin interface? -- Lic. José M. Rodriguez Bacallao Cupet - Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo. Recuerda: El arca de Noe fue construida por

Re: Compiling views.py?

2007-09-27 Thread eXt
Hi! What you ask about depends on your environment's configuration. If you have an application behind a web server like for example Apache it should be enough to restart that server. If your applications is started with ./manage.py runserver it should automatically read newer version of file

Compiling views.py?

2007-09-27 Thread Prateek Parekh
Hi, I am quite new to django framework, and was looking at an application developed by someone else. And, i have to quickly make a few changes. I have replaced one email address in views.py by another. Now, i'd like to know if i need to recompile this views.py file, and if so what is the exact

Re: Add field in models django 0.96

2007-09-27 Thread Xan
On Sep 26, 11:33 pm, DJango Fett <[EMAIL PROTECTED]> wrote: > Here are the steps I would use to add a field to an existing model > without having to write your own SQL and without the risk of getting > your model code out of sync with your database table. This code uses > the same objects in

Re: ***SPAM*** Re: Deployment issues: ViewDoesNotExist error

2007-09-27 Thread Thomas Guettler
... > However, if I mimic the wsgi script as follows: > > cd /home/missed/django/projectsmt/ > python > > >>> import os, sys > >>> sys.path.insert(0, '/home/missed/django') > >>> sys.path.insert(0, '/home/missed/django/projectsmt') > >>> os.environ['DJANGO_SETTINGS_MODULE'] =

Re: about auth

2007-09-27 Thread Richard Dahl
There is a row-level-permissions branch, but I do not believe it is actively being developed at this time. I wrote my own role-based permission system and integrated it into all of my models that require it. I have not attempted to integrate the permission system into the admin interface though.

Re: about auth

2007-09-27 Thread Lic. José M. Rodriguez Bacallao
yes, I know I can do something like that but, how can I do it in the admin interface? On 9/27/07, Tim Chase <[EMAIL PROTECTED]> wrote: > > > > hi people, I got a little question, how can I make some users add news > > (model News), modify only news owned by him or even delete his news, not > >

Re: about auth

2007-09-27 Thread Tim Chase
> hi people, I got a little question, how can I make some users add news > (model News), modify only news owned by him or even delete his news, not > others users news, but only admins can publish all of them? http://www.djangoproject.com/documentation/authentication/#permissions The stock

Re: about auth

2007-09-27 Thread Alex Koshelev
You may write special admin interface or wait when low-level permission will be placed in django. On 27 сент, 16:54, "Lic. Jos M. Rodriguez Bacallao" <[EMAIL PROTECTED]> wrote: > hi people, I got a little question, how can I make some users add news > (model News), modify only news owned by him

Re: Django deployment à lá Capistrano

2007-09-27 Thread r
On Sep 27, 8:36 am, "Jon Atkinson" <[EMAIL PROTECTED]> wrote: > Is anything happening with this project, or has it died on the vine? > Just a noob here, but why would Django need a Capistrano-like thing? Rails needs it in order to marshal 5 mongrel processes per application, etc etc, for

Re: fixtures (yaml)

2007-09-27 Thread Russell Keith-Magee
On 9/27/07, AniNair <[EMAIL PROTECTED]> wrote: > > Hi.. > I am trying to load some initial data using yaml. My model in utils ... > I tried model: utils.Month too, but the result is the same It then > says invalid model identifier utils.Month . Please advice. Add a sample object using the

great new site

2007-09-27 Thread [EMAIL PROTECTED]
http://spielwelt6.knightfight.de/?ac=vid=121044096 --~--~-~--~~~---~--~~ 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

fixtures (yaml)

2007-09-27 Thread AniNair
Hi.. I am trying to load some initial data using yaml. My model in utils is from django.db import models class Months(models.Model): id=models.CharField(primary_key=True, max_length=3) m_name=models.CharField(max_length=15) class Admin: pass My yaml file is - fields:

Re: django and postgres

2007-09-27 Thread Nimrod A. Abing
It's a bad idea to use the 'postgres' user account since this account is the Postgresql *superuser* account. Which means, with this account it is possible to do some serious damage to the system catalogs. You should create a separate Postgres user account and create a database for it. First

about auth

2007-09-27 Thread Lic. José M. Rodriguez Bacallao
hi people, I got a little question, how can I make some users add news (model News), modify only news owned by him or even delete his news, not others users news, but only admins can publish all of them? -- Lic. José M. Rodriguez Bacallao Cupet

problem organizing queries

2007-09-27 Thread Dushyant Sharma
hi i am having problem with relating objects. i have models as below class support(): suptype = models.CharField(maxlength=255) class DispMaster(): dmtype=models.ForeignKey(support) class DataDispMaster(): ddmmaster=models.ForeignKey(Master) class Master(): class DataMaster():

Re: django and postgres

2007-09-27 Thread Bruno Tikami
or, if you haven't, add the line local all postgres password be aware that this will allow the user postgres (once password authenticated) to access all the databases. If you don't want it, change 'all' to you porject's database name . On 9/27/07, Kenneth Gonsalves <[EMAIL

Re: Django deployment à lá Capistrano

2007-09-27 Thread Jon Atkinson
Is anything happening with this project, or has it died on the vine? --Jon On 9/13/07, rex <[EMAIL PROTECTED]> wrote: > > Hello. > > I'd be interested in helping with writing a Capistrano replacement for > Django in python (not a port!). > I'm relatively new to django sites, but quite an old

Pyexcelerator VLOOKUP can't parse formula

2007-09-27 Thread pbzRPA
Good day, I am getting an error when trying to parse a VLOOKUP formula to Excel. ws1.write(row_num, 8, Formula("VLOOKUP(G2;Discounts!A2:B28;2;0)")) It seems to have a problem with the exclamation mark. Any hint would help. Thank You PB --~--~-~--~~~---~--~~

Re: url config problem

2007-09-27 Thread Dushyant Sharma
i think you are using windows. try adding "MaxRequestsPerChild 1" (without quotes) to httpd.conf, you can change this setting later after reading how apache handles requests. i think that wouldn't be required for you now. also put your application to the python path (you can try initial

strange behavior of primary_key and ManyToManyField

2007-09-27 Thread zeliboba
hi again I'm writing custom scientific reference management application and encountered a strange thing, cannot understand if it is bug or feature, see example models.py: from django.db import models class Author(models.Model): name = models.CharField(maxlength=50) class

save test database after doctest

2007-09-27 Thread zeliboba
hi all I started to use django recentely (actually python also...) and use doctests for testing my application. For doctest I fill test database with a lot of data. I'm wondering is it possible to keep them and use later to see from web interface if they are really what

Re: admin (svn) - global name 'set' is not defined

2007-09-27 Thread Russell Keith-Magee
On 9/27/07, Michael <[EMAIL PROTECTED]> wrote: > > Hi group, > > Is python 2.3.5 supported by svn? Python 2.3 is officially supported. However, occasionally Python2.3 incompatible constructs accidentially slip in. > under python 2.4 work fine. The problem is that I have some other > software

admin (svn) - global name 'set' is not defined

2007-09-27 Thread Michael
Hi group, Is python 2.3.5 supported by svn? After update to rev 6426 from 5891 got an error whe n trinyg to logon into admin interface as user ( admin work fine): NameError at /admin/ global name 'set' is not defined Request Method: GET Request URL:http://127.0.0.1:8080/admin/

Re: django and postgres

2007-09-27 Thread Kenneth Gonsalves
On 27-Sep-07, at 1:32 PM, Heba Farouk wrote: > psycopg2.OperationalError: FATAL: Ident authentication failed for > user "postgres" edit your pg_hba.conf file and set authentication to 'password' -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/

django and postgres

2007-09-27 Thread Heba Farouk
Hello, i'm using postgres with django on ubuntu 7.04. when i try to syncdb, i got that error: Traceback (most recent call last): File "./manage.py", line 11, in execute_manager(settings) File "/usr/local/lib/python2.5/site-packages/django/core/management/__init__.py", line 264, in

Re: url config problem

2007-09-27 Thread Dushyant Sharma
which os you are using?? is your site-packages directory under system path?? and can you paste lines from httpd.conf, urls.py and settings.py where you have made modifications. On Sep 26, 6:49 pm, swati <[EMAIL PROTECTED]> wrote: > I have configured httpd.conf, you can look at it >